daddygift.blogg.se

Linux clean disk command
Linux clean disk command




linux clean disk command

  • 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).
  • linux clean disk command

    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).df -k - to display file system usage in KB.df -m - this command line is used to display information of file system usage in MB.df -h - it will display the result in a human-readable format.

    linux clean disk command

    Mounted On - tells us the mount point of a particular file system.īy adding a certain option to the df command, you can check the disk space in Linux more precisely.Use% - displays the percentage of disk space that is used.Available - shows how much space is left in the file system.Used - shows how much disk space is used in the particular file system.Size - gives us the total size of the specific file system.FileSystem - provides the name of the file system.






    Linux clean disk command