Quick reference table: Linux disk related commands

Sometimes I forget about it. A collection of commands compiled for you.

Disk space

Check the capacity of the disk drive

$ df -h

--H option to display MB or GB instead of bytes

Check the capacity of the directory

$ du -d 1 -h

--- d + hierarchy, with the disk space of the directory from the current location --H option to display MB or GB instead of bytes

Setting

Disk & partition information

View disk & partition information

lsblk

Create a SWAP file

I summarized it in another article https://qiita.com/katzueno/items/0a63b46c69602ecdeae5

Increase the disc

How to set after disk capacity with EBS of AWS EC2 (Amazon Linux & Amazon Linux 2) https://qiita.com/katzueno/items/4ceb93cc14bbab4e3064

Recommended Posts

Quick reference table: Linux disk related commands
[Linux] Group related commands
python datetime format quick reference table
Linux commands related to character code
Quick reference table under Proxy environment
Linux commands
Linux commands
linux commands
Linux commands
Linux commands
Network Linux commands
Verbalize Linux commands
Linux user commands
New Linux commands! !!
Basic LINUX commands
Various Linux commands
Typical Linux commands (7)
Frequently used Linux commands
Frequently used Linux commands
Frequently used linux commands
Linux commands to remember
New Linux commands! !! Part 2