use command du display estimate file space usage size of subdirectories [oracle@ahjcyl-db backup]$ pwd/backup[oracle@ahjcyl-db backup]$ du -sh15G .[oracle@ahjcyl-db backup]$ du -h –max-depth=1 /backup/626M /backup/archivedlog5.8G /backup/…
du -ah --max-depth=1 这个是我想要的结果 a表示显示目录下所有的文件和文件夹(不含子目录),h表示以人类能看懂的方式,max-depth表示目录的深度. du命令用来查看目录或文件所占用磁盘空间的大小.常用选项组合为:du -sh 一.du的功能:`du` reports the amount of disk space used by the specified files and for each subdirectory (of directory argum…
Linux复制某个目录下结构 结合tree命令把当前目录下的文件夹路径存储到document.txt文件,然后再使用mkdir命令把document.txt文件下的目录输入创建: tree -fid --noreport . > document.txt #d表示只显示目录,f表示完整路径,i表示没有树枝(结构) ###################################--noreport是不显示tree命令的统计结果行 mkdir test && cd test #…