![]() Just remember to start with df command to see which file system needs a cleanup the most. By doing this, you will get a better idea of which files you can delete to free up disk space. You can get more information done by combining df and du command with other arguments. df –help - it displays a list of available options and what they can be used for.Ĭombining Commands and Cleaning Disk Space. ![]() du -h - time /home/user/Desktop - this informs the last modification date of the displayed folders and files.du -m /home/user/Desktop - the -m option provides us with folder and file sizes in Megabytes (we can use -k to see the information in Kilobytes).du -sh /home/user/Desktop - the -s option will give us the total size of a specified folder (Desktop in this case).du -h /home/user/Desktop - just like with df, the option -h displays information in a human-readable format.du /home/user/Desktop - this command line allows users to see into the disk usage of their Desktop folders and files (subdirectories are included as well).Let’s take a look at real-world use of the du command with the Desktop directory: With the du command, you need to specify which folder or file you want to check. It will show you details about the disk usage of files and directories on a Linux computer or server. df - help - it lists down other useful options that you can use, complete with their descriptions.Ĭheck Disk Usage in Linux Using the du CommandĪnother important command is du, short for Disk Usage.df /home - it allows you to view information about a specific file system in a readable format (in this case /home file system).df -T - this option will show the file system type (a new column will appear). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |