bash commands collection

Find files with specific patterns

1
2
3
4
# This command find files with name has `news20` in the current directory and all of its sub-directories.
find . -name '*news20*'
# This command find and delete files with name has `news20` in the current directory and all of its sub-directories.
find . -name '*news20*' -delete

Show file size

1
ls -l --block-size=M
1
2
# show the disk usage of each directories under the path [dir]
du -h --max-depth=1 [dir]

pbs tricks

1
2
3
# delete all jobs on sever
qselect -u <username> | xargs qdel
qstat -u <username> | wc -l
Ph.D. student

My research interests lie at the intersection of statistical modeling and optimization.