Linux 下的軟連結

tolywang發表於2010-03-01

 

[root@MXB2B-TOTEAP1 /]# ln -s    /data/u01/     /u01  

備註:  其中 /data/u01  是實際存在的目標路徑,  /u01  是不存在的一個目錄,僅僅是一個label 名稱。 



[root@MXB2B-TOTEAP1 /]# ls -alh
total 192K
drwxr-xr-x  27 root   root 4.0K Mar 22 19:04 .
drwxr-xr-x  27 root   root 4.0K Mar 22 19:04 ..
-rw-r--r--   1 root   root    0 Mar 22 18:10 .autofsck
-rw-r--r--   1 root   root    0 Mar 22 18:10 .autorelabel
drwxr-xr-x   2 root   root 4.0K Feb 14 13:42 bin
drwxr-xr-x   4 root   root 4.0K Feb 14 12:21 boot
drwxr-xr-x   4 oracle dba  4.0K Mar 22 18:59 data
drwxr-xr-x  11 root   root 3.8K Mar 22 18:12 dev
drwxr-xr-x 105 root   root  12K Mar 22 18:41 etc
drwxr-xr-x   4 root   root 4.0K Mar 22 18:41 home
drwxr-xr-x  11 root   root 4.0K Feb 14 13:42 lib
drwxr-xr-x   7 root   root 4.0K Feb 14 13:42 lib64
drwx------   2 root   root  16K Feb 14 12:16 lost+found
drwxr-xr-x   2 root   root 4.0K Aug  8  2008 media
drwxr-xr-x   2 root   root    0 Mar 22 18:10 misc
drwxr-xr-x   2 root   root 4.0K Aug  8  2008 mnt
drwxr-xr-x   2 root   root    0 Mar 22 18:10 net
drwxr-xr-x   3 root   root 4.0K Feb 15 16:47 opt
dr-xr-xr-x 259 root   root    0 Mar 22 18:09 proc
drwxr-x---  17 root   root 4.0K Mar  3 21:40 root
drwxr-xr-x   2 root   root  12K Feb 14 13:42 sbin
drwxr-xr-x   2 root   root 4.0K Feb 14 12:17 selinux
drwxr-xr-x   2 root   root 4.0K Aug  8  2008 srv
drwxr-xr-x  11 root   root    0 Mar 22 18:09 sys
drwxr-xr-x   3 root   root 4.0K Feb 14 12:24 tftpboot
drwxrwxrwt   7 root   root 4.0K Mar 22 19:02 tmp
lrwxrwxrwx   1 root   root   10 Mar 22 19:04 u01 -> /data/u01/
drwxr-xr-x  16 root   root 4.0K Feb 14 12:20 usr
drwxr-xr-x  26 root   root 4.0K Feb 15 16:46 var
drwxr-xr-x   3 root   root 4.0K Feb 14 12:16 wm
[root@MXB2B-TOTEAP1 /]#

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-630139/,如需轉載,請註明出處,否則將追究法律責任。

相關文章