例如,如果您想要查看名为/path/to/directory的目录的总大小,可以使用命令du -sh /path/to/directory...
print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize --time show time of the last modification of any file in the directory, or any of its subdirectories --time=WORD show...
usage: du -shbkm [ file | directory] -h: 很有用的参数, 将显示的结果以human readable的方式打印,如20K,1.3M,4.5G等 -s :summarize,如果要查看的是目录,则显示其总体占有空间,而不是显示其所有子目录及其文件占用的空间 如 du -s /domain 则显示domain这个目录及其子目录总共占用了多少空,而不是显示...
The output from above command show the size of each file, directory and with the total size used in your system in human readable size ( -h ). Get the total size of current directory. The du command can be use to determine the total size of file in current directory. The example belo...
pwd is a shell builtin--pwd是一个内置命令的shell ➜~type cd--内部命令 cd is a shell builtin--cd是一个内置命令的shell 2.路径切换及查看 2.1 cd命令 绝对是我们必常用的命令;英文全拼:(change directory)命令用于切换当前工作目录。 #语法格式: cd [dirName] 其中 dirName 表示法可为绝对路径或相对...
Sector Sizes: 512 bytes logical, 4096 bytes physical 它告诉我们 drive 的物理布局是 4096 字节,但是为了向后兼容,驱动程序公布了 512 字节。 重复数据删除 根据经验,不要重复数据删除。就是不要。如果您确实需要注意磁盘空间,请使用其他增加容量的方法。我的几个老客户在使用重复数据删除时遇到了很大的麻烦。
--tabsize=COLS assume tab stops at each COLS instead of 8 -u with -lt: sort by, and show, access time; with -l: show access time and sort by name; otherwise: sort by access time, newest first -U do not sort; list entries in directory order -v natural sort of (version) numbers...
type in the command df and the name of the folder or file. For example,ifyou want to know the disk space used by the documents folder in Linux, you can use the command “du Documents”. You can also use the command “ls -lah” to view the file sizes of all the files in a ...
When used without options, it displays disk usage for the current working directory.The syntax for du is:du [options] [path]Useful du options:-h –Display file sizes in human-readable format like K for Kilobytes rather than a byte count. Much easier to parse. -s –Only show the total ...
see SIZE format below--direct show statistics for a file instead of mount point--total produce a grand total-h,--human-readable print sizes in human readable format (e.g., 1K 234M 2G)-H,--si likewise, but use powers of 1000 not 1024-i,--inodes list inode information instead of blo...