#df
Free disk space
df [options]df -hSpace per disk in human-readable sizes
df -hT /One filesystem including its type
df -iInode usage (a disk can be "full" of tiny files)
dfFree disk space
df [options]df -hSpace per disk in human-readable sizes
df -hT /One filesystem including its type
df -iInode usage (a disk can be "full" of tiny files)
duSpace used by folders
du [options] pathsudo du -sh /var/logTotal size of a folder
sudo du -h --max-depth=1 /var 2>/dev/nullSize of each sub-folder (2>/dev/null hides the errors for folders you cannot open)
du -ah . | sort -rh | head -20The twenty biggest items under here
lsblkList disks and partitions
lsblklsblkTree of disks and where they are mounted
lsblk -fAdd file system type and labels
blkidShow disk IDs
sudo blkidsudo blkidUUID and type of every partition
mountAttach a disk
sudo mount device foldermountList what is mounted
sudo mount /dev/sdb1 /mnt/dataMount a partition
sudo mount -o ro /dev/sdb1 /mnt/dataMount it read-only
umountDetach a disk
sudo umount foldersudo umount /mnt/dataSafely unmount
fdiskPartition a disk
sudo fdisk [-l] devicesudo fdisk -lList all disks and partitions
mkfsFormat a partition
sudo mkfs.type devicesudo mkfs.ext4 /dev/sdb1Create an ext4 file system (erases the partition)
fsckCheck a file system
sudo fsck devicesudo fsck /dev/sdb1Check and repair (the disk must be unmounted)
freeMemory use
free [-h]free -hRAM and swap in human-readable sizes
SSH Command is a desktop app for Mac, Windows and Linux that puts a real terminal, SFTP file panes, a sudo switch and a searchable Linux command finder in one window. Type what you want to do, and send the command to your server with one click.
Download free Windows commands with examples SFTP & FTP client