|
|
## Tips & tricks
|
|
|
|
|
|
* Displaying directory files in decreasing size
|
|
|
```
|
|
|
$ du -a /scratch/alainm/view/fargo/kokkos/ | sort -r -k1 -n | tee du.log
|
|
|
8816260 /scratch/alainm/view/fargo/kokkos/
|
|
|
3346571 /scratch/alainm/view/fargo/kokkos/dbg
|
|
|
...
|
|
|
0 /scratch/alainm/view/fargo/kokkos/dbg/CMakeFiles/3.18.0/CompilerIdC/tmp
|
|
|
15:08:20 [alainm@castor data]# head -2 du.log
|
|
|
8816260 /scratch/alainm/view/fargo/kokkos/
|
|
|
3346571 /scratch/alainm/view/fargo/kokkos/dbg
|
|
|
15:08:26 [alainm@castor data]#
|
|
|
```
|
|
|
Please not that the du can be demanding on the appliance depending on load and number of files. |
|
|
\ No newline at end of file |