| ... | @@ -85,7 +85,14 @@ In addition to CPU quota, we have limited disc space. Also the number of files i |
... | @@ -85,7 +85,14 @@ In addition to CPU quota, we have limited disc space. Also the number of files i |
|
|
csc-workspaces
|
|
csc-workspaces
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
Use the following command to count files in the current directory:
|
|
Use Lua to see information about the amount of files and the consumed disc space:
|
|
|
|
```bash
|
|
|
|
module load lue
|
|
|
|
lue ./directory
|
|
|
|
lue -c ./directory # count number of files
|
|
|
|
```
|
|
|
|
|
|
|
|
This is better than the command below that causes a lot of I/O traffic and may result in CSC admins complaining to you:
|
|
|
|
|
|
|
|
```bash
|
|
```bash
|
|
|
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo -e $(find {} | wc -l) {}' | sort -n
|
|
find . -maxdepth 1 -type d -print0 | xargs -0 -I {} sh -c 'echo -e $(find {} | wc -l) {}' | sort -n
|
| ... | |
... | |
| ... | | ... | |