How do you check which files are consuming more space in Linux?

How do you check which files are consuming more space in Linux?

Linux find largest file in directory recursively using find

  1. Open the terminal application.
  2. Login as root user using the sudo -i command.
  3. Type du -a /dir/ | sort -n -r | head -n 20.
  4. du will estimate file space usage.
  5. sort will sort out the output of du command.
  6. head will only show top 20 largest file in /dir/

How to reduce disk usage in Linux?

How to free up disk space in Ubuntu and Linux Mint Get rid of packages that are no longer required [Recommended] If you read the apt-get commands guide, you might have come across the apt-get command option ‘autoremove’. Uninstall unnecessary applications [Recommended] We all have a few games and/or applications that we hardly use. Don’t trust me? Clean up APT cache in Ubuntu.

How to check and manage disk space in Linux?

How to Check and Manage Disk Space in Linux Using the df command. Open the Terminal and type df, then press Enter. Using the du command. So you have discovered that the disk is virtually full, but what is causing it? du alternative: ncdu. If you prefer a more interactive way to see your hard disk information, ncdu provides an ncurses-based interface to du. Good Housekeeping. GUI-Based Options.

How to visualize disk usage on Linux?

Install Baobab Visual Disk Space Analyzer on Linux

  • launch Baobab as follows.
  • Visualize Disk Usage of Remote Disks. Baobab can analyze local folders as well as remote folders.
  • Nautilus Integration.
  • What Linux command is used to display hard disk space?

    Linux commands to check disk space using: df command – Shows the amount of disk space used and available on Linux file systems. du command – Display the amount of disk space used by the specified files and for each subdirectory. btrfs fi df /device/ – Show disk space usage information for a btrfs based mount point/file system.