Adds disk space commands to linux.
This commit is contained in:
parent
79f35133f0
commit
d184261ab0
16
linux.md
16
linux.md
|
@ -11,3 +11,19 @@ title: Linux
|
|||
sudo visudo
|
||||
|
||||
username ALL=(ALL) NOPASSWD:/sbin/restart whatever
|
||||
|
||||
### Display the amount of available disk space
|
||||
|
||||
$ df
|
||||
|
||||
All File System:
|
||||
|
||||
$ df -a
|
||||
|
||||
Human Readable Format:
|
||||
|
||||
$ df -h
|
||||
|
||||
Largest 10 folder/file in the current directory:
|
||||
|
||||
$ du -hsx * | sort -rh | head -10
|
||||
|
|
Loading…
Reference in New Issue