Disk / Storage
Disk usage
du <option> <path>
Option | Description |
---|---|
-h | Human readable |
-s | Summarize: Display only a total for each argument |
Sort human readable disk usage
du -hs <path> | sort -h -r
Disk free space
df <option>
Option | Description |
---|---|
-h | Disk free space in human readable format |
List block devices
lsblk
List devices UUID (GUID)
lsblk { -f | --fs }
blkid
ls /dev/disk/by-uuid/
ionice
I/O nice / priority
Get I/O priority of process
ionice [-p <PID>]
Set I/O priority of process
Class | Description |
---|---|
0 | None |
1 | Realtime |
2 | Best-effort |
3 | Idle |
# <level> = 0 to 7, only for best-effort and realtime
ionice
{ -c | --class } <class>
[{ -n | --classdata } <level>]
{ <command> | -p <PID> }