一、网卡1、Linux:网络属于内核的功能2、网卡定义:a)RHEL5网卡定义文件:/etc/modprobe.confb)RHEL6网卡定义文件:/etc/udev/rules.d/70-persistent-net.rules3、网卡命名:a)lo:本地回环b)以太网网卡:ethXc)点对点连接网卡:pppX4、网卡配置命令a)ifconfig[ethX]:显示网卡信..
OneofthefilesthattheaverageUnixsysadminrarelylooksat,almostneverchangesandyetdependsoneverytimeheorsherebootsasystemisthe/etc/inittabfile.Thismodestlittlefilecontrolswhathappenswheneverasystemisrebootedorforcedtochangerunlevels.Let‘stakealookattheconfigurat..
Fromtimetotime,peoplewantmetocreateLINUXinitscriptsforthem.Iusuallyjusttakeanexistingoneforanotherserviceandchangeituptoworkformynewapplication,butmostofthemhavebecomesolongthesedaysthatIenduphavingtohackoutatonofcodejusttoreducethemdowntotheverybasicscript..
ThisisourongoingLinuxcommandserieswherewearegoingtoreviewhowwecanusechkconfigcommandefficientlywithit’savailableparameters.TheChkconfigcommandtoolallowstoconfigureservicesstartandstopautomaticallyinthe/etc/rd.d/init.dscriptsthroughcommandline.Let’sseesome..
whileCONDITION;dostatementdone进入循环:条件满足退出循环:条件不满足untilCONDITION;dostatment...done#!/bin/bash#read-p"Inputsomething:"STRINGwhile[$STRING!=‘quit‘];doecho$STRING|tr‘a-z‘‘A-Z‘read-p"Inputsomething:"STRINGdone#!/bin/bash#read-p"Inputsomething:..
1.OpenFileDescriptorsLinux在系统调用,大量的系统调用都依赖于文件描述符,而文件描述符可分配给进程的最大大小由资源限制来定义。因此,如果文件描述符大小不够,或有不正常网络连接(Socket也算)、文件IO没有关闭并释放出文件描述符。也可以说是文件句柄(FileOperator),..
文件管理相关系统编程重要文件标识打开文件标识O_RDONLY:只读方式打开O_WRONLY:只写方式打开O_RDWR:可读写方式打开打开文件操作副标识O_CREAT:若路径中文件不存在则创建,使用Open函数时需同时指定文件权限O_EXCL:若与O_CREAT连用,检查文件是否已经存在,若不存在则建立文..
ConsoleViewPart.javapackagecom.wbq.console;importorg.eclipse.ui.console.ConsolePlugin;importorg.eclipse.ui.console.IConsole;importorg.eclipse.ui.console.IConsoleFactory;importorg.eclipse.ui.console.IConsoleManager;importorg.eclipse.ui.console.MessageConsole..
在linux系统中,我们经常会用crontab来定制任务计划,然而每次执行的时候会产生一个信息发送到/var/spool/clientmqueue/,这些东西一般没什么用,还占用磁盘空间,需要删除由于可能执行的时间太久,文件可能过大,用rm-f*来删除时会提示(-bash:/bin/rm:Argumentlisttoolong)..
linux服务器端设置所需软件包[root@localhost~]#rpm-qa|grepxdmxorg-x11-xdm-1.1.6-14.1.el6.x86_64[root@localhost~]#rpm-qa|grepgdmgdm-2.30.4-39.el6.x86_64gdm-user-switch-applet-2.30.4-39.el6.x86_64pulseaudio-gdm-hooks-0.9.21-14.el6_3.x86_64gdm-plugin-fingerprint..