在命令末尾加 & ,可使改命令在后台运行。
If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0.
查看文件夹大小
5>查看当前目录下所有目录以及子目录的大小:
du -h .“.”代表当前目录下。也可以换成一个明确的路径
-h表示用K、M、G的人性化形式显示
6>查看当前目录下user目录的大小,并不想看其他目录以及其子目录:
du -sh user-s表示总结的意思,即只列出一个总结的值
du -h --max-depth=0 user--max-depth=n表示只深入到第n层目录,此处设置为0,即表示不深入到子目录。
查看文件夹大小技巧
390

被折叠的 条评论
为什么被折叠?



