Skip to content

Commit d1cb000

Browse files
committed
updated inode check and added similar for usage as suggested in PR
1 parent cd704fa commit d1cb000

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/hpc/06_tools_and_software/08_utils.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ Space Variable /Flushed? Space / Files Space(%) / File
2323
:::tip
2424
Here's how you can see which folders contain the most files:
2525
```bash
26-
echo -e "${RED}The following 5 folders are impacting this quota the most.${NC}"
27-
find $HOME -xdev | cut -d "/" -f 1-4 | sort | uniq -c | sort -nr | head -n 5
26+
du --inodes -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
27+
```
28+
and here's how you can see which ones most contribute to your disk usage:
29+
```bash
30+
du -h -s -- * .[!.]* ..?* 2>/dev/null | sort -hr | head -n 5
2831
```
2932
:::
33+
3034
## `my_slurm_accounts`
3135

3236
`my_slurm_accounts` returns a list of `SLURM` accounts associated with your HPC account:

0 commit comments

Comments
 (0)