Execute commands with superuser privileges
sudo / su - / su -i
Add a new user account.
adduser username
Modify an existing user account.
usermod <options> <username>
Set or reset a user’s password.
passwd <username>
Remove a user account.
deluser <username>
List groups a user belongs to.
groups <username>
Change file or directory permissions.
chmod u + r/w/x
Change file or directory ownership.
chown username file.txt/directory_name
Check disk usage of files/directories
du -h
Show available disk space on filesystems
df -h
Mount or unmount filesystems
mount/umount
View queued and running jobs
squeue -u username
View jobs on a specific partition
squeue -p <partition>
Detailed info on a job
scontrol show job jobid
View historical job accounting
sacct -j jobid
Node and partition status
sinfo / sinfo -Nl
Detailed node info
scontrol show node <NODE>
Scheduling diagnostic tool for Slurm
sdiag
CPU, memory, process monitoring
htop/top
Memory usage overview
free -h
Report virtual memory statistics
vmstat
Reboot/Halt the System
sudo init 6/0
Broadcasting Messages to All HPC Users
sudo wall "HPC maintenance will start in 10 minutes. Please save your work."
write username (for target user)