Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 923 Bytes

system-admin.md

File metadata and controls

55 lines (40 loc) · 923 Bytes

System admin

Print info of current node (not the whole cluster)

# Print number of processing unit available
$ nproc --all

# About the processor
$ lscpu

# Show disk free space. 
# -h flag renders the sizes, i.e., GB
# -T shows what kind of filesystem each resource is
$ df -Th

# Print available memory
$ free -m

# Read from /proc
$ cat /proc/cpuinfo
$ cat /proc/meminfo

# System monitor
$ htop

# View process
$ ps ux

# Show disk usage 
$ du -sh <filename>

Run jobs

# Note that this is running on login node 
$ nano test.sh
$ chmod 744 test.sh
$ ./test.sh

Power managements

$ systemctl halt
$ systemctl power-off
$ shutdown
$ systemctl reboot

$ systemctl suspend     # save current system state to RAM
$ systemctl hibernate   # save current system state to disk