如果是查看特定目录的总大小,可以使用`du -sh /path/to/directory`。
du -- disk usage,用来查看某个文件或目录占用的磁盘空间数量。 usage: du -shbkm [ file | directory] -h: 很有用的参数, 将显示的结果以human readable的方式打印,如20K,1.3M,4.5G等 -s :summarize,如果要查看的是目录,则显示其总体占有空间,而不是显示其所有子目录及其文件占用的空间 如 du -s /do...
3. Displaying directory size: When used with a directory name as an argument, the size command displays the total size of that directory and all its contents recursively. For example: $ size mydirectory Output: text data bss dec hex filename 980 276 32 1288 508 mydirectory/file1.txt 640 ...
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...
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 -h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G) 1. 2. 3. 4. 5. 6. 7. 8. ...
directories--si like-h,but use powers of1000not1024-s,--summarize display only a totalforeach argument-t,--threshold=SIZEexclude entries smaller thanSIZEifpositive,or entries greater thanSIZEifnegative--time show time of thelastmodification of any fileinthe directory,or any of its sub...
yes Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information Block bitmap differences: +(98304--98560) +(163840--164096) +(229376--229632) + (294912--...
SIZE before printing them. E.g.,`--block-size=M' prints sizes in units of1,048,576bytes. See SIZE format below.-B,--ignore-backups do not list implied entries ending with ~-cwith-lt: sortby,andshow, ctime (timeoflastmodificationoffile status information)with-l:showctimeandsortbyname...
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 ...
Use the udevadm command to show the path and other attributes: 在/dev中找到设备的sysfs位置可能会很困难。 使用udevadm命令显示路径和其他属性: 代码语言:javascript 复制 udevadm info --query=all --name=/dev/sda NOTE The udevadm program is in /sbin; you can put this directory at the end of ...