-
Notifications
You must be signed in to change notification settings - Fork 74
Useful Linux bash commands
Konstantinos Tsilimparis edited this page Feb 24, 2026
·
5 revisions
srun --mem=4G --cpus-per-task=2 --time=71:00:00 --pty bash
squeue --me
squeue -j <job_id> -o " %.4C %.10m %L"
scancel <job_id>
import socket socket.gethostname()
watch -n 1 "cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/memory.current"
cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/memory.max
dmesg | tail -50
sbatch jupyter_ptk-dev.sh
watch -n 1 cat jupyter-<job_id>.out