Linux 碎片

1.  /bin、/sbin、/usr/bin、/usr/sbin的区别

--bin:为binary的简写主要放置一些系统级别的执行文档例如:cat、cp、chmod df、dmesg、gzip、kill、ls、mkdir、more、mount、rm、su、tar等。

--/usr/bin:主要放置一些应用软件工具的必备执行档例如c++、g++、gcc、chdrv、diff、dig、du、eject、elm、free、gnome*、 zip、htpasswd、kfm、ktop、last、less、locale、m4、make、man、mcopy、ncftp、 newaliases、nslookup passwd、quota、smb*、wget等。

--/sbin目录: 主要放置一些系统管理的必备程序例如:cfdisk、dhcpcd、dump、e2fsck、fdisk、halt、ifconfig、ifup、 ifdown、init、insmod、lilo、lsmod、mke2fs、modprobe、quotacheck、reboot、rmmod、 runlevel、shutdown等。 
--/usr/sbin目录: 放置一些网路管理的必备程序例如:dhcpd、httpd、imap、in.*d、inetd、lpd、named、netconfig、nmbd、samba、sendmail、squid、swap、tcpd、tcpdump等
 
 

/  :               this is root directory

/bin :            commands in this dir are all system installed user commands

/sbin:            commands in this dir are all system installed super user commands

/usr/bin:       user commands for applications

/usr/sbin:      super user commands for applications

/usr/local/bin : application user commands

/usr/local/sbin: application super user commands

2.

 

3.

进程之间的通信:

--信号:有发送、处理、阻塞过程;处理(signal()注册处理函数);阻塞(一些函数处理信号集)

--管道:实质上是一个内核缓冲区,无名(pipe)与有名(FIFO) 

--消息队列:

--共享内存:一段共享内存可以被两个及以上的进程映射进自己的地址空间中

posted @ 2017-03-21 00:13  lp3318  阅读(156)  评论(0编辑  收藏  举报