When working with a virtual or dedicated server, sometimes there is a need to see disk space usage, this can be done in many ways. As part of this instruction, we will consider basic examples of viewing disk statistics using SSH or WEB-VNC protocols.
Information about free and occupied disk space.
Information about free and used inodes.
This utility is not standard and requires installation, but it allows you to quickly and easily get information about the occupied disk space. You can add a "/" character to the end of the command to display information from the root folder, otherwise the utility will display information about the folder you are currently in. Use the arrows and the Enter key to move between folders.
Display a list of folders with the largest disk consumption.
du -h -d1 2>/dev/null | sort -h
Display a list of files and folders sorted by size.
Count the inodes used by the directory (instead of /path/to/dir is the path to the directory).
find /path/to/dir | wc -l
mc or Midnight Commander is a console file manager. With its help, you can see the file system of the server, move between directories, copy, move, delete files, etc.
All question categories