add note about quota command
continuous-integration/drone/push Build is passing Details

also move the guidelines to the top
This commit is contained in:
Ben Harris 2022-03-23 15:27:28 -04:00
parent a22ade5e54
commit 67c0ad8178
1 changed files with 49 additions and 39 deletions

View File

@ -11,45 +11,6 @@ files tend to keep growing and growing until you run out of disk space all of a
let's take a look at some tools to keep an eye on disk usage.
### du
`du` (short for `d`isk `u`sage) is the go-to tool.
common switches include:
* `-h`: human readable
* `-s`: summarize
* `-c`: total
example:
to see the disk usage of the current directory, run:
du -sh
check the manpage for more information and additional switches
### ncdu
`ncdu` (short for `nc`urses `d`isk `u`sage) is extremely useful for visualizing
disk usage.
call `ncdu` with no args to recurse starting in the current directory or
pass a dir name to start there
try it on your `$HOME` and see which files and dirs are taking up the most
space.
press `?` to see additional keybinds once you've started it up. you can change
the sort order, open a shell, and delete files without closing the program.
### df
`df` (short for `d`isk `f`ree) lists mounted disks with usage, free space,
and capacity. try it out from your shell to get a quick glance at total
disk usage
don't forget to use `-h` to get human readable units.
## tilde.team guidelines
@ -70,3 +31,52 @@ request that you delete large or unnecessary files.
please check with admins if you expect to use a lot of disk
for a short period of time so we can adjust your quota temporarily.
### quota
run `quota` to see your current usage and grace period (if you're over).
add `-s` to print using friendlier units.
### du
`du` (short for `d`isk `u`sage) is the go-to tool.
common switches include:
* `-h`: human readable
* `-s`: summarize
* `-c`: total
example:
to see the disk usage of the current directory, run:
du -sh
check the manpage for more information and additional switches
### ncdu
`ncdu` (short for `nc`urses `d`isk `u`sage) is extremely useful for visualizing
disk usage.
call `ncdu` with no args to recurse starting in the current directory or
pass a dir name to start there
try it on your `$HOME` and see which files and dirs are taking up the most
space.
press `?` to see additional keybinds once you've started it up. you can change
the sort order, open a shell, and delete files without closing the program.
### df
`df` (short for `d`isk `f`ree) lists mounted disks with usage, free space,
and capacity. try it out from your shell to get a quick glance at total
disk usage
don't forget to use `-h` to get human readable units.