Disk usage
Disk usage
- Synopsis:
ducommand is used to check the information of disk usage of files and directories on a machine
du [OPTION]... [FILE]...- Disk usage of a directory: To find out the disk usage summary of a /home/ directory tree and each of its sub directories
du /home/- Disk usage in human readable format: To find out the disk usage in human readable format
du -h /home/- Total disk usage of a directory: To find out the total disk usage
du -sh /home/- Total disk usage of all files and directories: To find out the total disk usage of files and directories
du -ah /home/- Total disk usage of all files and directories upto certain depth: print the total for a directory only if it is N or fewer levels below the command
du -ah --max-depth 2 /home/- Total disk usage with excluded files: To find out the total disk usage of files and directories, but excludes the files that matches given pattern.
du -ah --exclude="*.txt" /home/- Help: This command gives information about
du
du --help

Comments
Post a Comment