[NOTE] Unix Command Book
Basic concepts in ML/AI algorithms, and some simple algorithms implementations. There are so many operators and variants of them; this post only covers the most basic ones.
Environment Setups
- Module loading system
# Modules loc: /usr/share/Modules/modulefiles
module avai
Process and Sessions
- Terminate a process with PID
kill -9 <pid>
pkill -u <uid> -f "<process_name>"
- Terminal Multiplexer
- Zellij: an alternative to tmux and screen. An amazing feature is that you can use SCROLL MOUSE directly in a session.
bash <(curl -L zellij.dev/launch)
Disk Management
- Show volume per folder (depth=1)
$ du -h -d 1 /scratch/users/sx233/
404M /scratch/users/sx233/6980-sp23
4.5G /scratch/users/sx233/conda
- Show mounting FS of target folder and FS capcity
>> df -h --block-size=GB /scratch/users/
Filesystem 1GB-blocks Used Available Use% Mounted on
/dev/mapper/VG00-SCRATCH 2198GB 2198GB 1GB 100% /scratch