find . -mtime -10 -exec ls -lh {} \; 這樣寫(xiě)可行么。
老師,我輸入find . -mtime -10 -exec ls -lh {} \; 這條指令后會(huì)出現(xiàn)文件顯示重復(fù),情況如下:
[root@localhost ~]# find . -mtime -10 -exec ls -lh {} \;
總用量 48K
-rw-------. 1 root root 1.3K 3月?? 4 18:47 anaconda-ks.cfg
drwxr-xr-x. 2 root root 4.0K 3月?? 5 17:18 chao
-rw-r--r--. 1 root root? 25K 3月?? 4 18:47 install.log
-rw-r--r--. 1 root root 7.4K 3月?? 4 18:46 install.log.syslog
-rw-r--r--. 1 root root 7.4K 3月?? 4 18:46 ./install.log.syslog
總用量 0
-rw-------. 1 root root 1.3K 3月?? 4 18:47 ./anaconda-ks.cfg
-rw-r--r--. 1 root root 25K 3月?? 4 18:47 ./install.log
-rw-------. 1 root root 833 3月?? 5 01:12 ./.bash_history
2016-03-06
install.log.syslog
上下兩個(gè)是不同的文件名
?./install.log.syslog
anaconda-ks.cfg
上下兩個(gè)是不同的文件名
./anaconda-ks.cfg
2016-03-06
沒(méi)有重復(fù)啊文件名前面多了/ .