在Linux当中一切都是文件
1.1.1 linux系统目录结构
[[email protected] /]# ll
total 32
lrwxrwxrwx. 1 root root 7 Aug 17 01:00 bin -> usr/bin
dr-xr-xr-x. 5 root root 4096 Nov 9 16:45 boot
drwxr-xr-x. 20 root root 3260 Dec 26 17:07 dev
drwxr-xr-x. 86 root root 8192 Nov 30 20:09 etc
drwxr-xr-x. 5 root root 157 Oct 31 19:03 home
lrwxrwxrwx. 1 root root 7 Aug 17 01:00 lib -> usr/lib
lrwxrwxrwx. 1 root root 9 Aug 17 01:00 lib64 -> usr/lib64
drwxr-xr-x. 2 root root 6 Nov 5 2016 media
drwxr-xr-x. 2 root root 6 Nov 5 2016 mnt
drwxr-xr-x. 2 root root 6 Nov 5 2016 opt
dr-xr-xr-x. 108 root root 0 Dec 26 17:06 proc
dr-xr-x---. 10 root root 4096 Dec 25 10:02 root
drwxr-xr-x. 25 root root 680 Dec 27 11:12 run
lrwxrwxrwx. 1 root root 8 Aug 17 01:00 sbin -> usr/sbin
drwxr-xr-x. 3 root root 20 Oct 31 14:39 src
drwxr-xr-x. 2 root root 6 Nov 5 2016 srv
dr-xr-xr-x. 13 root root 0 Dec 26 17:07 sys
drwxrwxrwt. 23 root root 4096 Dec 27 03:42 tmp
drwxr-xr-x. 13 root root 155 Aug 17 01:00 usr
drwxr-xr-x. 20 root root 278 Nov 9 10:09 var
原文地址:http://blog.51cto.com/sf1314/2055035