# tree -a /opt/opt├──magi│ └──2g│ ├──test5.txt│ └──.test6.txt├──test1.txt├──test2.txt├──test3.txt├──.test4.txt└──test.txt2directories,7files
# ls -l . | egrep -c '^-'4
# ls -la . | egrep -c '^-'5
# ls -l | wc -l5
# ls -la | wc -l8
# find . -type f | wc -l7
# tree | tail -12directories,5files
# tree -a | tail -12directories,7files
# find . -type d | wc -l3
# find . -name "*.txt" | wc -l7
# echo *.* | wc1 4 39
# echo */ | wc1 1 6
# echo * | wc1544
# find / -type f | wc -l69769
# find / -type d | wc -l8819
# find / -type d -exec echo dirs \; -o -type l -exec echo symlinks \; -o -type f -links +1 -exec echo hardlinks \; -o -type f -exec echo files \; | sort | uniq -c8779dirs69343files20hardlinks11646symlinks
如对本文有疑问, 点击进行留言回复!!
linux下文本编辑器vim的使用方法(复制、粘贴、替换、行号、撤销、多文件操作)
网友评论