See how many files and folders are in the directory, in the terminal input
See how many files are in the directory, enter in the terminal
Look at the number of files under the folder, how many subdirectories, in the terminal input
If you only want to know the number of files, in the terminal input
/bin/ls
-l |
grep
^-|
wc
-l
查看每个磁盘的大小,每个目录的所占大小。
df -hl 比如mac盘,U盘大小
cd /
du -sh * 当前目录下,每个目录所占的大小
df -h 查看整个硬盘大小,-h 表示人可读的
du -d 1 -h 命令进看当前目录下所有文件夹大小,-d 指深度,后面加一个数组
---------- recruit the future great God -----------------------
If you have altruistic heart, willing to help others, willing to share
If you encounter PHP problem, Baidu and asked the other groups still did not get answers
Welcome to join, PHP technical question and answer group, QQ Group: 292626152
Educational developments Help others, you will also get promotion!
In order to cherish everyone's valuable time, please do not chat!
May we help each other and make progress together!
You can fill in when you join, thinkphp,yii ...
How to see how many files are in the Linux folder (Mac same)