如果是查看特定目录的总大小,可以使用`du -sh /path/to/directory`。
The options are used to modify the behavior of the size command, and the file(s) argument specifies the name of the file or directory for which the size information is required. 2. Displaying file size: When used with a file name as an argument, the size command displays the size of t...
它会把符号链接所指向的文件占用磁盘空间的大小也统计进来。帮助文档是这样解释的:Dereference symbolic links(show the disk space used by the file or directory that the link points to instead of the space used by the link)。 我们在download目录下创建一个符号链接,指向本目录下的一个文件。我们看到上面...
--show-labels show also filesystem labels -n, --no-mtab don't write to /etc/mtab --options-mode <mode> what to do with options loaded from fstab --options-source mount options source --options-source-force force use of options from fstab/mtab -o, --options <list> comma-separated ...
--time show time of the last modification of any file in the directory, or any of its subdirectories --time=WORD show time as WORD instead of modification time: atime, access, use, ctime or status --time-style=STYLE show times using style STYLE: ...
七、du -L:这个选项主要是针对符号链接。它会把符号链接所指向的文件占用磁盘空间的大小也统计进来。帮助文档是这样解释的:Dereference symbolic links(show the disk space used by the file or directory that the link points to instead of the space used by the link)。
tion between tests binds more tightly than -o, this is the default anyway, but the parentheses help to show what is going on. find repo/ -exec test -d {}/.svn -o -d {}/.git -o -d {}/CVS ; \ -print -prune Given the following directory of projects and their associated SCM ad...
file or directory debug1: identity file /root/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /root/.ssh/id_ed25519-cert ...
Command (m for help): n Command action e extended p primary partition (1-4) p #建立主分区 Partition number (1-4): 1 #分区号 First cylinder (1-391, default 1): #分区起始位置 Using default value 1 last cylinder or +size or +sizeM or +sizeK (1-391, default 391): 100 #分区结...
By default, thedu command showsthe disk space used by the directory or file`. To findthe apparent size of a directory, use the--apparent-size option. The “apparent size” of a file ishow much data is actually...