#14:15 01/07/2015
#################
#8:38 12/10/2015
#http://superuser.com/questions/198817/recursively-count-all-the-files-in-a-directory
find . -type f | wc -l
[root@tcx13 opt]# find / | wc -l
44393
=>Ket luan: có 44.392 file và folder (thuc chat la 1 loai file dac biet)
(Dem ca file an - hidden file)
#Tim hieu ve cac loai file tren linux
#Source: http://www.linuxnix.com/2010/02/file-types-in-linux.html
#
root@ol7 /opt/script# find . | wc -l
18 <<nho -1 (con 17)
root@ol7 /opt/script# tree -La 10 /opt/script/
/opt/script/
+-- .1
+-- 2
¦ +-- .2
¦ +-- 3
+-- banner
+-- banner-edit
+-- banner-view
+-- fwdelete
+-- fwedit
+-- fwrestart
+-- fwrestore
+-- fwsave
+-- fwstatus
+-- fwstop
+-- fwview
+-- ipas
+-- time-force-update
1 directory, 16 files
1+16=17
No comments:
Post a Comment