当前位置: 技术问答>linux和unix
find时,符号连接的子目录也进去找,怎么写?
来源: 互联网 发布时间:2016-06-14
本文导语: RT, thanks! | [root@manifold ~]# ll total 184 -rw------- 1 root root 893 Jun 21 08:02 anaconda-ks.cfg drwxr-xr-x 2 root root 4096 Jun 21 00:25 Desktop -rw-r--r-- 1 root root 27019 Jun 21 08:02 install.log -rw-...
RT,
thanks!
thanks!
|
[root@manifold ~]# ll
total 184
-rw------- 1 root root 893 Jun 21 08:02 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 Jun 21 00:25 Desktop
-rw-r--r-- 1 root root 27019 Jun 21 08:02 install.log
-rw-r--r-- 1 root root 3325 Jun 21 07:59 install.log.syslog
-rw-r--r-- 1 root root 2940 Mar 24 10:11 named.root
lrwxrwxrwx 1 root root 15 Jun 24 12:27 software -> /home/software/
-rw-r--r-- 1 root root 170 Jun 24 12:23 test2.sh
-rw-r--r-- 1 root root 110 Jun 24 12:20 test.sh
drwxrwsrwx 2 7068 users 4096 Jun 24 01:41 xml2-0.4
-rw-r--r-- 1 root root 83449 Feb 8 2008 xml2-0.4.tar.gz
[root@manifold ~]# ls -lR /home/software/
/home/software/:
total 32
drwxr-xr-x 2 root root 4096 Jun 24 12:26 manifold
-rw-r--r-- 1 root root 16698 Jun 18 00:21 rpmforge-release-0.3.6-1.el5.rf.i386.rpm
/home/software/manifold:
total 4
-rw-r--r-- 1 root root 0 Jun 24 12:26 test
[root@manifold ~]#
[root@manifold ~]# find -L . -name test
total 184
-rw------- 1 root root 893 Jun 21 08:02 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 Jun 21 00:25 Desktop
-rw-r--r-- 1 root root 27019 Jun 21 08:02 install.log
-rw-r--r-- 1 root root 3325 Jun 21 07:59 install.log.syslog
-rw-r--r-- 1 root root 2940 Mar 24 10:11 named.root
lrwxrwxrwx 1 root root 15 Jun 24 12:27 software -> /home/software/
-rw-r--r-- 1 root root 170 Jun 24 12:23 test2.sh
-rw-r--r-- 1 root root 110 Jun 24 12:20 test.sh
drwxrwsrwx 2 7068 users 4096 Jun 24 01:41 xml2-0.4
-rw-r--r-- 1 root root 83449 Feb 8 2008 xml2-0.4.tar.gz
[root@manifold ~]# ls -lR /home/software/
/home/software/:
total 32
drwxr-xr-x 2 root root 4096 Jun 24 12:26 manifold
-rw-r--r-- 1 root root 16698 Jun 18 00:21 rpmforge-release-0.3.6-1.el5.rf.i386.rpm
/home/software/manifold:
total 4
-rw-r--r-- 1 root root 0 Jun 24 12:26 test
[root@manifold ~]#
[root@manifold ~]# find -L . -name test