• /bin---权限为 rwxr-xr-x 所有者为root/root 用户bin最先进入的工作目录就是这里。这里放置的是执行目录,但是特殊在这里的命令可以被一般用户使用(root更能使用)。例如 cat chmod date mv cp。但是更多用户可用的命令都是放在/usr/bin下的,放置在这里因为这里的命令和开机过程有关。我们知道开机过程中很多代码都是shell script使用的。用户开机后安装的命令由于自然和开机没有必然关系,所以通过sudo apt-get install 安装的命令都是放在/usr/bin目录下的。

    harvey@ubuntu:~$ type cat
    cat 是 /bin/cat
    harvey@ubuntu:~$ type chmod
    chmod 是 /bin/chmod
    harvey@ubuntu:~$ type date
    date 是 /bin/date
    harvey@ubuntu:~$ type mv
    mv 是 /bin/mv
    harvey@ubuntu:~$ type cp
    cp 是 /bin/cp
    harvey@ubuntu:~$ ls -l -h /bin
    总用量 8.9M
    -rwxr-xr-x root root 937K 3月 bash
    -rwxr-xr-x root root 31K 12月 bunzip2
    -rwxr-xr-x root root 1.8M 11月 busybox
    -rwxr-xr-x root root 31K 12月 bzcat
    lrwxrwxrwx root root 3月 : bzcmp -> bzdiff
    -rwxr-xr-x root root .1K 12月 bzdiff
    lrwxrwxrwx root root 3月 : bzegrep -> bzgrep
    -rwxr-xr-x root root .8K 12月 bzexe
    lrwxrwxrwx root root 3月 : bzfgrep -> bzgrep
    -rwxr-xr-x root root .6K 12月 bzgrep
    -rwxr-xr-x root root 31K 12月 bzip2
    -rwxr-xr-x root root 11K 12月 bzip2recover
    lrwxrwxrwx root root 3月 : bzless -> bzmore
    -rwxr-xr-x root root .3K 12月 bzmore
    -rwxr-xr-x root root 47K 11月 cat
    -rwxr-xr-x root root 15K 12月 chacl
    -rwxr-xr-x root root 55K 11月 chgrp
    -rwxr-xr-x root root 51K 11月 chmod
    -rwxr-xr-x root root 59K 11月 chown
    -rwxr-xr-x root root 11K 4月 chvt
    -rwxr-xr-x root root 124K 11月 cp
    -rwxr-xr-x root root 135K 4月 cpio
    -rwxr-xr-x root root 108K 3月 dash
    -rwxr-xr-x root root 59K 11月 date
    -rwxr-xr-x root root 10K 6月 dbus-cleanup-sockets
    -rwxr-xr-x root root 399K 6月 dbus-daemon
    -rwxr-xr-x root root 10K 6月 dbus-uuidgen
    -rwxr-xr-x root root 51K 11月 dd
    -rwxr-xr-x root root 83K 11月 df
    -rwxr-xr-x root root 104K 11月 dir
    -rwxr-xr-x root root 23K 3月 dmesg
    -rwxr-xr-x root root 15K 5月 dnsdomainname
    -rwxr-xr-x root root 15K 5月 domainname
    -rwxr-xr-x root root 81K 4月 dumpkeys
    -rwxr-xr-x root root 27K 11月 echo
    -rwxr-xr-x root root 47K 10月 ed
    -rwxr-xr-x root root 152K 12月 egrep
    -rwxr-xr-x root root 23K 11月 false
    -rwxr-xr-x root root 11K 4月 fgconsole
    -rwxr-xr-x root root 112K 12月 fgrep
    -rwxr-xr-x root root 36K 3月 findmnt
    -rwxr-xr-x root root 36K 7月 fuser
    -rwsr-xr-x root root 31K 3月 fusermount
    -rwxr-xr-x root root 24K 12月 getfacl
    -rwxr-xr-x root root 156K 12月 grep
    -rwxr-xr-x root root .2K 2月 gunzip
    -rwxr-xr-x root root .8K 2月 gzexe
    -rwxr-xr-x root root 91K 2月 gzip
    -rwxr-xr-x root root 15K 5月 hostname
    -rwxr-xr-x root root .8K 1月 init-checkconf
    -rwxr-xr-x root root 16K 1月 initctl2dot
    -rwxr-xr-x root root 244K 10月 : ip
    -rwxr-xr-x root root 11K 4月 kbd_mode
    -rwxr-xr-x root root 19K 10月 : kill
    -rwxr-xr-x root root 146K 8月 less
    -rwxr-xr-x root root 11K 8月 lessecho
    lrwxrwxrwx root root 3月 : lessfile -> lesspipe
    -rwxr-xr-x root root 16K 8月 lesskey
    -rwxr-xr-x root root .4K 8月 lesspipe
    -rwxr-xr-x root root 47K 11月 ln
    -rwxr-xr-x root root 109K 4月 loadkeys
    -rwxr-xr-x root root 44K 9月 login
    -rwxr-xr-x root root 63K 9月 lowntfs-3g
    -rwxr-xr-x root root 104K 11月 ls
    -rwxr-xr-x root root 44K 3月 lsblk
    -rwxr-xr-x root root .2K 11月 lsmod
    -rwxr-xr-x root root 47K 11月 mkdir
    -rwxr-xr-x root root 31K 11月 mknod
    -rwxr-xr-x root root 35K 11月 mktemp
    -rwxr-xr-x root root 35K 3月 more
    -rwsr-xr-x root root 93K 3月 mount
    -rwxr-xr-x root root 11K 7月 mountpoint
    lrwxrwxrwx root root 3月 : mt -> /etc/alternatives/mt
    -rwxr-xr-x root root 68K 4月 mt-gnu
    -rwxr-xr-x root root 112K 11月 mv
    -rwxr-xr-x root root 188K 12月 nano
    lrwxrwxrwx root root 3月 : nc -> /etc/alternatives/nc
    -rwxr-xr-x root root 31K 7月 nc.openbsd
    lrwxrwxrwx root root 3月 : netcat -> /etc/alternatives/netcat
    -rwxr-xr-x root root 117K 3月 netstat
    -rwxr-xr-x root root 15K 5月 nisdomainname
    -rwxr-xr-x root root 59K 9月 ntfs-3g
    -rwxr-xr-x root root 11K 9月 ntfs-3g.probe
    -rwxr-xr-x root root 63K 9月 ntfs-3g.secaudit
    -rwxr-xr-x root root 18K 9月 ntfs-3g.usermap
    -rwxr-xr-x root root 27K 9月 ntfscat
    -rwxr-xr-x root root 31K 9月 ntfsck
    -rwxr-xr-x root root 31K 9月 ntfscluster
    -rwxr-xr-x root root 35K 9月 ntfscmp
    -rwxr-xr-x root root 43K 9月 ntfsdecrypt
    -rwxr-xr-x root root 22K 9月 ntfsdump_logfile
    -rwxr-xr-x root root 39K 9月 ntfsfix
    -rwxr-xr-x root root 55K 9月 ntfsinfo
    -rwxr-xr-x root root 32K 9月 ntfsls
    -rwxr-xr-x root root 27K 9月 ntfsmftalloc
    -rwxr-xr-x root root 31K 9月 ntfsmove
    -rwxr-xr-x root root 39K 9月 ntfstruncate
    -rwxr-xr-x root root 39K 9月 ntfswipe
    lrwxrwxrwx root root 3月 : open -> openvt
    -rwxr-xr-x root root 15K 4月 openvt
    lrwxrwxrwx root root 3月 : pidof -> /sbin/killall5
    -rwsr-xr-x root root 35K 11月 ping
    -rwsr-xr-x root root 40K 11月 ping6
    -rwxr-xr-x root root 35K 5月 plymouth
    -rwxr-xr-x root root 31K 5月 plymouth-upstart-bridge
    -rwxr-xr-x root root 99K 10月 : ps
    -rwxr-xr-x root root 31K 11月 pwd
    lrwxrwxrwx root root 3月 : rbash -> bash
    -rwxr-xr-x root root 39K 11月 readlink
    -rwxr-xr-x root root 55K 11月 rm
    -rwxr-xr-x root root 39K 11月 rmdir
    lrwxrwxrwx root root 3月 : rnano -> nano
    -rwxr-xr-x root root 1月 running-in-container
    -rwxr-xr-x root root 19K 3月 run-parts
    -rwxr-xr-x root root 64K 5月 sed
    -rwxr-xr-x root root 32K 12月 setfacl
    -rwxr-xr-x root root 39K 4月 setfont
    -rwxr-xr-x root root 12K 4月 setupcon
    lrwxrwxrwx root root 3月 : sh -> dash
    lrwxrwxrwx root root 3月 : sh.distrib -> dash
    -rwxr-xr-x root root 27K 11月 sleep
    -rwxr-xr-x root root 71K 10月 : ss
    lrwxrwxrwx root root 3月 : static-sh -> busybox
    -rwxr-xr-x root root 63K 11月 stty
    -rwsr-xr-x root root 36K 9月 su
    -rwxr-xr-x root root 23K 11月 sync
    -rwxr-xr-x root root 15K 3月 tailf
    -rwxr-xr-x root root 301K 3月 tar
    -rwxr-xr-x root root 11K 3月 tempfile
    -rwxr-xr-x root root 59K 11月 touch
    -rwxr-xr-x root root 23K 11月 true
    -rwxr-xr-x root root 15K 3月 ulockmgr_server
    -rwsr-xr-x root root 68K 3月 umount
    -rwxr-xr-x root root 27K 11月 uname
    -rwxr-xr-x root root .2K 2月 uncompress
    -rwxr-xr-x root root .7K 4月 unicode_start
    -rwxr-xr-x root root 104K 11月 vdir
    -rwxr-xr-x root root .1K 1月 : vmmouse_detect
    -rwxr-xr-x root root 3月 which
    -rwxr-xr-x root root 27K 2月 whiptail
    -rwxr-xr-x root root 15K 5月 ypdomainname
    -rwxr-xr-x root root .9K 2月 zcat
    -rwxr-xr-x root root .7K 2月 zcmp
    -rwxr-xr-x root root .5K 2月 zdiff
    -rwxr-xr-x root root 2月 zegrep
    -rwxr-xr-x root root 2月 zfgrep
    -rwxr-xr-x root root .1K 2月 zforce
    -rwxr-xr-x root root .9K 2月 zgrep
    -rwxr-xr-x root root .8K 2月 zless
    -rwxr-xr-x root root .5K 2月 zmore
    -rwxr-xr-x root root .9K 2月 znew
  • /boot---权限为rwxr-xr-x 用户为root/root 主要防止开机会用到的文件,包括linux内核文件以及开机菜单和开机所需配置文件(包括grub这个引导装载程序)
    harvey@ubuntu:/boot$ ls -l
    总用量
    -rw-r--r-- root root 1月 : abi-3.11.--generic
    -rw-r--r-- root root 1月 : config-3.11.--generic
    drwxr-xr-x root root 3月 : grub
    -rw-r--r-- root root 3月 : initrd.img-3.11.--generic
    -rw-r--r-- root root 11月 memtest86+.bin
    -rw-r--r-- root root 11月 memtest86+_multiboot.bin
    -rw------- root root 1月 : System.map-3.11.--generic
    -rw-r--r-- root root 3月 : vmlinuz-3.11.--generic
  • /dev---权限为rwxr-xr-x 用户为root/root 所有设备和接口设备都以文件的形式保存在这个目录中,只要访问该目录下的文件等同于访问某个设备
     harvey@ubuntu:/$ ls -l /dev
    总用量
    crw------T root root , 3月 autofs
    drwxr-xr-x root root 3月 block
    drwxr-xr-x root root 3月 bsg
    crw------T root root , 3月 btrfs-control
    drwxr-xr-x root root 3月 bus
    lrwxrwxrwx root root 3月 cdrom -> sr0
    lrwxrwxrwx root root 3月 cdrw -> sr0
    drwxr-xr-x root root 3月 char
    crw------- root root , 3月 console
    lrwxrwxrwx root root 3月 core -> /proc/kcore
    drwxr-xr-x root root 3月 cpu
    crw------- root root , 3月 cpu_dma_latency
    drwxr-xr-x root root 3月 disk
    drwxr-xr-x root root 3月 dri
    lrwxrwxrwx root root 3月 dvd -> sr0
    lrwxrwxrwx root root 3月 dvdrw -> sr0
    crw------- root root , 3月 ecryptfs
    crw-rw---- root video , 3月 fb0
    lrwxrwxrwx root root 3月 fd -> /proc/self/fd
    crw-rw-rw- root root , 3月 full
    crw-rw-rwT root fuse , 3月 fuse
    crw------- root root , 3月 hidraw0
    crw------- root root , 3月 hpet
    drwxr-xr-x root root 3月 input
    crw-r--r-- root root , 3月 kmsg
    srw-rw-rw- root root 3月 log
    brw-rw---- root disk , 3月 loop0
    brw-rw---- root disk , 3月 loop1
    brw-rw---- root disk , 3月 loop2
    brw-rw---- root disk , 3月 loop3
    brw-rw---- root disk , 3月 loop4
    brw-rw---- root disk , 3月 loop5
    brw-rw---- root disk , 3月 loop6
    brw-rw---- root disk , 3月 loop7
    crw------- root root , 3月 loop-control
    drwxr-xr-x root root 3月 mapper
    crw------- root root , 3月 mcelog
    crw------- root root , 3月 mei
    crw-r----- root kmem , 3月 mem
    drwxr-xr-x root root 3月 net
    crw------- root root , 3月 network_latency
    crw------- root root , 3月 network_throughput
    crw-rw-rw- root root , 3月 null
    crw-r----- root kmem , 3月 port
    crw------- root root , 3月 ppp
    crw------- root root , 3月 psaux
    crw-rw-rw- root tty , 3月 ptmx
    drwxr-xr-x root root 3月 pts
    brw-rw---- root disk , 3月 ram0
    brw-rw---- root disk , 3月 ram1
    brw-rw---- root disk , 3月 ram10
    brw-rw---- root disk , 3月 ram11
    brw-rw---- root disk , 3月 ram12
    brw-rw---- root disk , 3月 ram13
    brw-rw---- root disk , 3月 ram14
    brw-rw---- root disk , 3月 ram15
    brw-rw---- root disk , 3月 ram2
    brw-rw---- root disk , 3月 ram3
    brw-rw---- root disk , 3月 ram4
    brw-rw---- root disk , 3月 ram5
    brw-rw---- root disk , 3月 ram6
    brw-rw---- root disk , 3月 ram7
    brw-rw---- root disk , 3月 ram8
    brw-rw---- root disk , 3月 ram9
    crw-rw-rw- root root , 3月 random
    crw-rw-r--+ root root , 3月 rfkill
    lrwxrwxrwx root root 3月 rtc -> rtc0
    crw------- root root , 3月 rtc0
    brw-rw---- root disk , 3月 sda
    brw-rw---- root disk , 3月 sda1
    brw-rw---- root disk , 3月 sda2
    brw-rw---- root disk , 3月 sda3
    brw-rw---- root disk , 3月 sda5
    brw-rw---- root disk , 3月 sda6
    brw-rw---- root disk , 3月 sda7
    crw-rw---- root disk , 3月 sg0
    crw-rw----+ root cdrom , 3月 sg1
    lrwxrwxrwx root root 3月 shm -> /run/shm
    crw------- root root , 3月 snapshot
    drwxr-xr-x root root 3月 snd
    brw-rw----+ root cdrom , 3月 sr0
    lrwxrwxrwx root root 3月 stderr -> /proc/self/fd/
    lrwxrwxrwx root root 3月 stdin -> /proc/self/fd/
    lrwxrwxrwx root root 3月 stdout -> /proc/self/fd/
    crw-rw-rw- root tty , 3月 tty
    crw--w---- root tty , 3月 tty0
    crw-rw---- root tty , 3月 tty1
    crw--w---- root tty , 3月 tty10
    crw--w---- root tty , 3月 tty11
    crw--w---- root tty , 3月 tty12
    crw--w---- root tty , 3月 tty13
    crw--w---- root tty , 3月 tty14
    crw--w---- root tty , 3月 tty15
    crw--w---- root tty , 3月 tty16
    crw--w---- root tty , 3月 tty17
    crw--w---- root tty , 3月 tty18
    crw--w---- root tty , 3月 tty19
    crw-rw---- root tty , 3月 tty2
    crw--w---- root tty , 3月 tty20
    crw--w---- root tty , 3月 tty21
    crw--w---- root tty , 3月 tty22
    crw--w---- root tty , 3月 tty23
    crw--w---- root tty , 3月 tty24
    crw--w---- root tty , 3月 tty25
    crw--w---- root tty , 3月 tty26
    crw--w---- root tty , 3月 tty27
    crw--w---- root tty , 3月 tty28
    crw--w---- root tty , 3月 tty29
    crw-rw---- root tty , 3月 tty3
    crw--w---- root tty , 3月 tty30
    crw--w---- root tty , 3月 tty31
    crw--w---- root tty , 3月 tty32
    crw--w---- root tty , 3月 tty33
    crw--w---- root tty , 3月 tty34
    crw--w---- root tty , 3月 tty35
    crw--w---- root tty , 3月 tty36
    crw--w---- root tty , 3月 tty37
    crw--w---- root tty , 3月 tty38
    crw--w---- root tty , 3月 tty39
    crw-rw---- root tty , 3月 tty4
    crw--w---- root tty , 3月 tty40
    crw--w---- root tty , 3月 tty41
    crw--w---- root tty , 3月 tty42
    crw--w---- root tty , 3月 tty43
    crw--w---- root tty , 3月 tty44
    crw--w---- root tty , 3月 tty45
    crw--w---- root tty , 3月 tty46
    crw--w---- root tty , 3月 tty47
    crw--w---- root tty , 3月 tty48
    crw--w---- root tty , 3月 tty49
    crw-rw---- root tty , 3月 tty5
    crw--w---- root tty , 3月 tty50
    crw--w---- root tty , 3月 tty51
    crw--w---- root tty , 3月 tty52
    crw--w---- root tty , 3月 tty53
    crw--w---- root tty , 3月 tty54
    crw--w---- root tty , 3月 tty55
    crw--w---- root tty , 3月 tty56
    crw--w---- root tty , 3月 tty57
    crw--w---- root tty , 3月 tty58
    crw--w---- root tty , 3月 tty59
    crw-rw---- root tty , 3月 tty6
    crw--w---- root tty , 3月 tty60
    crw--w---- root tty , 3月 tty61
    crw--w---- root tty , 3月 tty62
    crw--w---- root tty , 3月 tty63
    crw--w---- root tty , 3月 tty7
    crw--w---- root tty , 3月 tty8
    crw--w---- root tty , 3月 tty9
    crw------- root root , 3月 ttyprintk
    crw-rw---- root dialout , 3月 ttyS0
    crw-rw---- root dialout , 3月 ttyS1
    crw-rw---- root dialout , 3月 ttyS10
    crw-rw---- root dialout , 3月 ttyS11
    crw-rw---- root dialout , 3月 ttyS12
    crw-rw---- root dialout , 3月 ttyS13
    crw-rw---- root dialout , 3月 ttyS14
    crw-rw---- root dialout , 3月 ttyS15
    crw-rw---- root dialout , 3月 ttyS16
    crw-rw---- root dialout , 3月 ttyS17
    crw-rw---- root dialout , 3月 ttyS18
    crw-rw---- root dialout , 3月 ttyS19
    crw-rw---- root dialout , 3月 ttyS2
    crw-rw---- root dialout , 3月 ttyS20
    crw-rw---- root dialout , 3月 ttyS21
    crw-rw---- root dialout , 3月 ttyS22
    crw-rw---- root dialout , 3月 ttyS23
    crw-rw---- root dialout , 3月 ttyS24
    crw-rw---- root dialout , 3月 ttyS25
    crw-rw---- root dialout , 3月 ttyS26
    crw-rw---- root dialout , 3月 ttyS27
    crw-rw---- root dialout , 3月 ttyS28
    crw-rw---- root dialout , 3月 ttyS29
    crw-rw---- root dialout , 3月 ttyS3
    crw-rw---- root dialout , 3月 ttyS30
    crw-rw---- root dialout , 3月 ttyS31
    crw-rw---- root dialout , 3月 ttyS4
    crw-rw---- root dialout , 3月 ttyS5
    crw-rw---- root dialout , 3月 ttyS6
    crw-rw---- root dialout , 3月 ttyS7
    crw-rw---- root dialout , 3月 ttyS8
    crw-rw---- root dialout , 3月 ttyS9
    crw------T root root , 3月 uhid
    crw-r----- root root , 3月 uinput
    crw-rw-rw- root root , 3月 urandom
    drwxr-xr-x root root 3月 v4l
    crw-rw---- root tty , 3月 vcs
    crw-rw---- root tty , 3月 vcs1
    crw-rw---- root tty , 3月 vcs2
    crw-rw---- root tty , 3月 vcs3
    crw-rw---- root tty , 3月 vcs4
    crw-rw---- root tty , 3月 vcs5
    crw-rw---- root tty , 3月 vcs6
    crw-rw---- root tty , 3月 vcs7
    crw-rw---- root tty , 3月 vcsa
    crw-rw---- root tty , 3月 vcsa1
    crw-rw---- root tty , 3月 vcsa2
    crw-rw---- root tty , 3月 vcsa3
    crw-rw---- root tty , 3月 vcsa4
    crw-rw---- root tty , 3月 vcsa5
    crw-rw---- root tty , 3月 vcsa6
    crw-rw---- root tty , 3月 vcsa7
    crw------- root root , 3月 vga_arbiter
    crw------T root root , 3月 vhost-net
    crw-rw----+ root video , 3月 video0
    crw-rw-rw- root root , 3月 zero
  • /home---权限为rwxr-xr-x 用户root/root ,默认用户的主目录,下面的所有的文件夹基本都是用户的文件夹,对应用户的权限为rwxr-xr-x
     harvey@ubuntu:/home$ ls -l
    总用量
    drwxr-xr-x harvey harvey 3月 : harvey
    drwx------ root root 3月 : lost+found
  • /lib---权限为rwxr-xr-x 用户root/root,linux是用c写成的,很多功能都是用类来实现的,这里的类库就是系统启动的时候或/bin和/sbin下面的命令会用到的函数库。尤其重要的是/lib/modules目录下面是内核相关的驱动程序,文件的结尾是[.so.版本号]
  •  harvey@ubuntu:/$ ls -l /lib
    总用量
    drwxr-xr-x root root 2月 : apparmor
    drwxr-xr-x root root 2月 : brltty
    lrwxrwxrwx root root 3月 : cpp -> /etc/alternatives/cpp
    drwxr-xr-x root root 2月 : firmware
    drwxr-xr-x root root 2月 : hdparm
    drwxr-xr-x root root 2月 : init
    -rwxr-xr-x root root 3月 klibc-bhN-zLH5wUTKSCGch2ba2xqTtLE.so
    lrwxrwxrwx root root 3月 : libbrlapi.so.0.5 -> libbrlapi.so.0.5.
    -rw-r--r-- root root 4月 libbrlapi.so.0.5.
    lrwxrwxrwx root root 3月 : libcryptsetup.so. -> libcryptsetup.so.4.0.
    -rw-r--r-- root root 4月 libcryptsetup.so.4.0.
    -rw-r--r-- root root 1月 : libdevmapper-event.so.1.02.
    -rw-r--r-- root root 1月 : libdevmapper.so.1.02.
    lrwxrwxrwx root root 3月 : libfuse.so. -> libfuse.so.2.8.
    -rw-r--r-- root root 3月 libfuse.so.2.8.
    lrwxrwxrwx root root 3月 : libip4tc.so. -> libip4tc.so.0.0.
    -rw-r--r-- root root 3月 libip4tc.so.0.0.
    lrwxrwxrwx root root 3月 : libip6tc.so. -> libip6tc.so.0.0.
    -rw-r--r-- root root 3月 libip6tc.so.0.0.
    lrwxrwxrwx root root 3月 : libipq_pic.so. -> libipq_pic.so.0.0.
    -rw-r--r-- root root 3月 libipq_pic.so.0.0.
    lrwxrwxrwx root root 3月 : libipq.so. -> libipq.so.0.0.
    -rw-r--r-- root root 3月 libipq.so.0.0.
    lrwxrwxrwx root root 3月 : libiptc.so. -> libiptc.so.0.0.
    -rw-r--r-- root root 3月 libiptc.so.0.0.
    -rw-r--r-- root root 3月 libiw.so.
    -rw-r--r-- root root 1月 : liblvm2app.so.2.2
    lrwxrwxrwx root root 3月 : libnewt.so.0.52 -> libnewt.so.0.52.
    -rw-r--r-- root root 2月 libnewt.so.0.52.
    lrwxrwxrwx root root 3月 : libnl-.so. -> libnl-.so.200.3.
    -rw-r--r-- root root 4月 libnl-.so.200.3.
    lrwxrwxrwx root root 3月 : libnl-genl-.so. -> libnl-genl-.so.200.3.
    -rw-r--r-- root root 4月 libnl-genl-.so.200.3.
    -rw-r--r-- root root 10月 libnss_mdns4_minimal.so.
    -rw-r--r-- root root 10月 libnss_mdns4.so.
    -rw-r--r-- root root 10月 libnss_mdns6_minimal.so.
    -rw-r--r-- root root 10月 libnss_mdns6.so.
    -rw-r--r-- root root 10月 libnss_mdns_minimal.so.
    -rw-r--r-- root root 10月 libnss_mdns.so.
    lrwxrwxrwx root root 3月 : libply-boot-client.so. -> libply-boot-client.so.2.0.
    -rw-r--r-- root root 5月 libply-boot-client.so.2.0.
    lrwxrwxrwx root root 3月 : libply.so. -> libply.so.2.0.
    -rw-r--r-- root root 5月 libply.so.2.0.
    lrwxrwxrwx root root 3月 : libply-splash-core.so. -> libply-splash-core.so.2.0.
    -rw-r--r-- root root 5月 libply-splash-core.so.2.0.
    lrwxrwxrwx root root 3月 : libply-splash-graphics.so. -> libply-splash-graphics.so.2.0.
    -rw-r--r-- root root 5月 libply-splash-graphics.so.2.0.
    -rw-r--r-- root root 10月 : libproc-3.2..so
    lrwxrwxrwx root root 3月 : libsysfs.so. -> libsysfs.so.2.0.
    -rw-r--r-- root root 8月 libsysfs.so.2.0.
    lrwxrwxrwx root root 3月 : libulockmgr.so. -> libulockmgr.so.1.0.
    -rw-r--r-- root root 3月 libulockmgr.so.1.0.
    -rw-r--r-- root root 4月 libx86.so.
    lrwxrwxrwx root root 3月 : libxtables.so. -> libxtables.so.7.0.
    -rw-r--r-- root root 3月 libxtables.so.7.0.
    drwxr-xr-x root root 2月 : linux-sound-base
    drwxr-xr-x root root 2月 : lsb
    drwxr-xr-x root root 2月 : modules
    drwxr-xr-x root root 2月 : plymouth
    drwxr-xr-x root root 2月 : recovery-mode
    drwxr-xr-x root root 2月 : resolvconf
    drwxr-xr-x root root 3月 : security
    drwxr-xr-x root root 4月 systemd
    drwxr-xr-x root root 11月 terminfo
    drwxr-xr-x root root 2月 : udev
    drwxr-xr-x root root 2月 : ufw
    drwxr-xr-x root root 2月 : x86_64-linux-gnu
    drwxr-xr-x root root 2月 : xtables
  • /sbin---权限为rwxr-xr-x 用户/组为root/root,为系统开机运行需要的设置环境的命令,包括开机、修复、还原系统的命令。只有和开机直接相关的文件才会直接放在/root目录下,和服务相关的放在/usr/sbin中,本机自己安装的执行文件放在/usr/local/sbin中。常见命令 fdisk ifconfig init
     harvey@ubuntu:/$ type ifconfig
    ifconfig 是 /sbin/ifconfig
    harvey@ubuntu:/$ type init
    init 是 /sbin/init
    harvey@ubuntu:/$ type fdisk
    fdisk 是 /sbin/fdisk
    harvey@ubuntu:/$ ls -l /sbin
    总用量
    -rwxr-xr-x root root 12月 acpi_available
    -rwxr-xr-x root root 3月 agetty
    -rwxr-xr-x root root 2月 alsa
    -rwxr-xr-x root root 3月 alsactl
    -rwxr-xr-x root root 12月 apm_available
    -rwxr-xr-x root root 8月 apparmor_parser
    -rwxr-xr-x root root 3月 badblocks
    -rwxr-xr-x root root 3月 blkid
    -rwxr-xr-x root root 3月 blockdev
    -rwxr-xr-x root root 7月 bootlogd
    -rwxr-xr-x root root 4月 brltty
    -rwxr-xr-x root root 12月 brltty-setup
    -rwxr-xr-x root root 12月 capsh
    -rwxr-xr-x root root 3月 cfdisk
    -rwxr-xr-x root root 4月 cryptsetup
    -rwxr-xr-x root root 3月 ctrlaltdel
    -rwxr-xr-x root root 3月 debugfs
    -rwxr-xr-x root root 11月 depmod
    -rwxr-xr-x root root 9月 dhclient
    lrwxrwxrwx root root 3月 : dhclient3 -> dhclient
    -rwxr-xr-x root root 9月 dhclient-script
    -rwxr-xr-x root root 1月 : dmsetup
    -rwxr-xr-x root root 1月 dosfsck
    -rwxr-xr-x root root 1月 dosfslabel
    -rwxr-xr-x root root 3月 dumpe2fs
    -rwxr-xr-x root root 3月 e2fsck
    -rwxr-xr-x root root 3月 e2image
    lrwxrwxrwx root root 3月 : e2label -> tune2fs
    -rwxr-xr-x root root 3月 e2undo
    -rwxr-xr-x root root 3月 fdisk
    -rwxr-xr-x root root 3月 findfs
    -rwxr-xr-x root root 3月 fsck
    -rwxr-xr-x root root 3月 fsck.cramfs
    lrwxrwxrwx root root 3月 : fsck.ext2 -> e2fsck
    lrwxrwxrwx root root 3月 : fsck.ext3 -> e2fsck
    lrwxrwxrwx root root 3月 : fsck.ext4 -> e2fsck
    lrwxrwxrwx root root 3月 : fsck.ext4dev -> e2fsck
    -rwxr-xr-x root root 3月 fsck.minix
    lrwxrwxrwx root root 3月 : fsck.msdos -> dosfsck
    -rwxr-xr-x root root 7月 fsck.nfs
    lrwxrwxrwx root root 3月 : fsck.vfat -> dosfsck
    -rwxr-xr-x root root 3月 fsfreeze
    -rwxr-xr-x root root 7月 fstab-decode
    -rwxr-xr-x root root 3月 fstrim
    -rwxr-xr-x root root 12月 getcap
    -rwxr-xr-x root root 12月 getpcaps
    -rwxr-xr-x root root 3月 getty
    lrwxrwxrwx root root 3月 : halt -> reboot
    -rwxr-xr-x root root 5月 hdparm
    -rwxr-xr-x root root 3月 hwclock
    -rwxr-xr-x root root 3月 ifconfig
    -rwxr-xr-x root root 9月 : ifdown
    -rwxr-xr-x root root 9月 : ifquery
    -rwxr-xr-x root root 9月 : ifup
    -rwxr-xr-x root root 1月 init
    -rwxr-xr-x root root 4月 initctl
    -rwxr-xr-x root root 11月 insmod
    -rwxr-xr-x root root 3月 installkernel
    lrwxrwxrwx root root 3月 : ip -> /bin/ip
    lrwxrwxrwx root root 3月 : ip6tables -> xtables-multi
    lrwxrwxrwx root root 3月 : ip6tables-restore -> xtables-multi
    lrwxrwxrwx root root 3月 : ip6tables-save -> xtables-multi
    -rwxr-xr-x root root 3月 ipmaddr
    lrwxrwxrwx root root 3月 : iptables -> xtables-multi
    lrwxrwxrwx root root 3月 : iptables-restore -> xtables-multi
    lrwxrwxrwx root root 3月 : iptables-save -> xtables-multi
    -rwxr-xr-x root root 3月 iptunnel
    -rwxr-xr-x root root 3月 isosize
    -rwxr-xr-x root root 3月 iwconfig
    -rwxr-xr-x root root 3月 iwevent
    -rwxr-xr-x root root 3月 iwgetid
    -rwxr-xr-x root root 3月 iwlist
    -rwxr-xr-x root root 3月 iwpriv
    -rwxr-xr-x root root 3月 iwspy
    -rwxr-xr-x root root 4月 kbdrate
    -rwxr-xr-x root root 7月 killall5
    -rwxr-xr-x root root 9月 : ldconfig
    -rwxr-xr-x root root 9月 : ldconfig.real
    -rwxr-xr-x root root 3月 logsave
    -rwxr-xr-x root root 3月 losetup
    lrwxrwxrwx root root 3月 : lsmod -> /bin/lsmod
    lrwxrwxrwx root root 3月 : lspcmcia -> pccardctl
    -rwxr-xr-x root root 2月 MAKEDEV
    -rwxr-xr-x root root 3月 mii-tool
    -rwxr-xr-x root root 1月 mkdosfs
    -rwxr-xr-x root root 3月 mke2fs
    -rwxr-xr-x root root 3月 mkfs
    -rwxr-xr-x root root 3月 mkfs.bfs
    -rwxr-xr-x root root 3月 mkfs.cramfs
    lrwxrwxrwx root root 3月 : mkfs.ext2 -> mke2fs
    lrwxrwxrwx root root 3月 : mkfs.ext3 -> mke2fs
    lrwxrwxrwx root root 3月 : mkfs.ext4 -> mke2fs
    lrwxrwxrwx root root 3月 : mkfs.ext4dev -> mke2fs
    -rwxr-xr-x root root 3月 mkfs.minix
    lrwxrwxrwx root root 3月 : mkfs.msdos -> mkdosfs
    lrwxrwxrwx root root 3月 : mkfs.ntfs -> mkntfs
    lrwxrwxrwx root root 3月 : mkfs.vfat -> mkdosfs
    -rwxr-xr-x root root 2月 mkhomedir_helper
    -rwxr-xr-x root root 9月 mkntfs
    -rwxr-xr-x root root 3月 mkswap
    -rwxr-xr-x root root 1月 mntctl
    -rwxr-xr-x root root 11月 modinfo
    -rwxr-xr-x root root 11月 modprobe
    -rwxr-xr-x root root 1月 mountall
    -rwxr-xr-x root root 3月 mount.fuse
    lrwxrwxrwx root root 3月 : mount.lowntfs-3g -> /bin/lowntfs-3g
    lrwxrwxrwx root root 3月 : mount.ntfs -> mount.ntfs-3g
    lrwxrwxrwx root root 3月 : mount.ntfs-3g -> /bin/ntfs-3g
    -rwxr-xr-x root root 3月 nameif
    -rwxr-xr-x root root 3月 nfnl_osf
    -rwxr-xr-x root root 9月 ntfsclone
    -rwxr-xr-x root root 9月 ntfscp
    -rwxr-xr-x root root 9月 ntfslabel
    -rwxr-xr-x root root 9月 ntfsresize
    -rwxr-xr-x root root 9月 ntfsundelete
    -rwxr-xr-x root root 12月 on_ac_power
    -rwxr-xr-x root root 2月 pam_tally
    -rwxr-xr-x root root 2月 pam_tally2
    -rwxr-xr-x root root 8月 parted
    -rwxr-xr-x root root 8月 partprobe
    -rwxr-xr-x root root 3月 pccardctl
    -rwxr-xr-x root root 3月 pivot_root
    -rwxr-xr-x root root 3月 plipconfig
    -rwxr-xr-x root root 5月 plymouthd
    lrwxrwxrwx root root 3月 : poweroff -> reboot
    -rwxr-xr-x root root 3月 rarp
    -rwxr-xr-x root root 3月 raw
    -rwxr-xr-x root root 1月 reboot
    lrwxrwxrwx root root 3月 : reload -> initctl
    -rwxr-xr-x root root 3月 resize2fs
    -rwxr-xr-x root root 7月 resolvconf
    lrwxrwxrwx root root 3月 : restart -> initctl
    -rwxr-xr-x root root 11月 rmmod
    -rwxr-xr-x root root 3月 route
    -rwxr-xr-x root root 10月 : rtacct
    -rwxr-xr-x root root 10月 : rtmon
    -rwxr-xr-x root root 1月 runlevel
    -rwxr-xr-x root root 12月 setcap
    -rwxr-xr-x root root 4月 setvtrgb
    -rwxr-xr-x root root 3月 sfdisk
    -rwxr-xr-x root root 9月 shadowconfig
    -rwxr-xr-x root root 1月 shutdown
    -rwxr-xr-x root root 3月 slattach
    lrwxrwxrwx root root 3月 : start -> initctl
    -rwxr-xr-x root root 7月 startpar
    -rwxr-xr-x root root 4月 start-stop-daemon
    lrwxrwxrwx root root 3月 : status -> initctl
    lrwxrwxrwx root root 3月 : stop -> initctl
    -rwxr-xr-x root root 7月 sulogin
    -rwxr-xr-x root root 3月 swaplabel
    lrwxrwxrwx root root 3月 : swapoff -> swapon
    -rwxr-xr-x root root 3月 swapon
    -rwxr-xr-x root root 3月 switch_root
    -rwxr-xr-x root root 10月 : sysctl
    -rwxr-xr-x root root 10月 : tc
    -rwxr-xr-x root root 1月 telinit
    -rwxr-xr-x root root 3月 tune2fs
    -rwxr-xr-x root root 7月 udevadm
    -rwxr-xr-x root root 7月 udevd
    -rwxr-xr-x root root 7月 umount.udisks
    -rwxr-sr-x root shadow 2月 unix_chkpwd
    -rwxr-xr-x root root 2月 unix_update
    -rwxr-xr-x root root 1月 upstart-socket-bridge
    -rwxr-xr-x root root 1月 upstart-udev-bridge
    -rwxr-xr-x root root 2月 ureadahead
    -rwxr-xr-x root root 4月 vstp
    -rwxr-xr-x root root 3月 wipefs
    -rwxr-xr-x root root 6月 wpa_action
    -rwxr-xr-x root root 7月 wpa_cli
    -rwxr-xr-x root root 7月 wpa_supplicant
    -rwxr-xr-x root root 3月 xtables-multi
  • /usr---权限rwxr-xr-x 用户/组为root/root 全称是UNIX Software Resource,放置系统默认的软件,类似windows的C:\Winodws和C:\Program files\,系统刚安装好后占硬盘空间最多。/usr/bin一般用户可用的和开机无关的命令。/usr/sbin系统运行不正常使用的命令。
  • /var 包含log

linux的文件布局的更多相关文章

  1. Linux进程内存布局(翻译)

    Anatomy of a Program in Memory 在一个多任务OS中,每个进程都运行在它自己的内存沙箱中.这个沙箱就是虚拟地址空间,在32位下就是一块容量为4GB的内存地址.内核将这些虚拟 ...

  2. linux 目标文件 bss,data,text,rodata,堆,栈***

    linux目标文件 一个简单的程序被编译成目标文件后的结构如下: 从图可以看出,已初始化的全局变量和局部静态变量保存在 .data段中,未初始化的全局变量和未初始化的局部静态变量保存在 .bss段中. ...

  3. postgresql 文件布局

    我们知道linux中一个思想:一切皆文件,那么在我们安装完postgresql数据库后,她长什么样呢?本文带着你一起揭开她的面纱,看看postgresql的文件布局. 说明:由于安装测试的版本是10. ...

  4. Linux下文件的三种时间戳

    Linux下文件的三种时间标记 三种时间对应关系表 column column column 访问时间 Access atime 修改时间 Modify mtime 状态改动时间 Change cti ...

  5. linux日志文件

    linux日志文件 在系统运行正常的情况下学习了解这些不同的日志文件有助于你在遇到紧急情况时从容找出问题并加以解决. /var/log/messages — 包括整体系统信息,其中也包含系统启动期间的 ...

  6. linux建立文件夹软连接

    linux建立文件夹软连接,并强制覆盖 ln -sfn /home/var/log/httpd/logs logs 这将在当前目录下建立logs软连接,指向/home/var/log/httpd/lo ...

  7. windows与linux之间文件的传输方式总结(转)

    当然,windows与linux之间文件的传输的两种方式有很多,这里就仅仅列出工作中遇到的,作为笔记: 方法一:安装SSH Secure Shell Client客户端 安装即可登录直接拖拉到linu ...

  8. Linux - 日志文件

    Linux日志文件绝大多数存放在/var/log目录,其中一些日志文件由应用程序创建,其他的则通过syslog来创建. Linux系统日志文件通过syslog守护程序在syslog套接字/dev/lo ...

  9. linux下文件结束符

    linux下文件结束符,我试过了所有的linux,发现其文件的结束符都是以0a即LF结束的,这个是操作系统规定的,windows下是\r\n符结束,希望可以帮助大家. -------------转:来 ...

随机推荐

  1. ArrayList & Vector的源码实现

    #ArrayList & Vector #####前言: 本来按照计划,ArrayList和Vector是分开讲的,但是当我阅读了ArrayList和Vector的源码以后,我就改变了注意,把 ...

  2. android stadio mapping文件的使用

    mapping文件就是在对代码混淆以后,你用来查看混淆前和混淆后的对比文件. 一般用来查看线上的bug; java.lang.NullPointerException: Attempt to invo ...

  3. Pascal小游戏 俄罗斯方块

    俄罗斯方块已经成为了和“Hello World”一样的程序了吧? 不要直接复制,可能需要事先 Format. program cube;uses crt,graph,dos;var gd,gm:sma ...

  4. java中封装的概念

    封装(Encapsulation)是类的三大特性之一, 就是将类的状态信息隐藏在类的内部,不允许外部程序直接访问, 而是通过该类提供的方法来实现对隐藏信息的操作和访问. 简而言之,就是隐藏内部实现,提 ...

  5. Webdriver--获得验证信息

    title:获得当前页面的标题 current_url:获得当前页面的URL text:前面提到过,获得标签对的文本信息 try: couseTitle = driver.find_element_b ...

  6. 解决ubuntu发热严重的问题

    对于双显卡PC安装ubuntu ,风扇狂转,发热严重,原因基本双显卡的优化导致. 解决具体步骤如下: 命令行输入sudo apt-get install bumblebee bumblebee-nvi ...

  7. IPMITool driver

    官网链接: https://docs.openstack.org/ironic/latest/admin/drivers/ipmitool.html IPMITool driver 概述IPMI(In ...

  8. web浏览器中的javascript -- 2

    在html里嵌入javascript: 在html文档里嵌入客户端javascript代码有4种方式: 1.内联,放置在<script>和</script>标签对之间; 2.放 ...

  9. GridView与ListView冲突

    由于GridView与listView都是继承自ScrollView,所以两个控件放在一起时需要重写控件方法   public class MyGridView extends GridView{  ...

  10. hdu 2579 Dating with girls(2) (bfs)

    Dating with girls(2) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Oth ...