Cheatography
https://cheatography.com
Basic SLURM commands for VT ARC and basic tmux commands
This is a draft cheat sheet. It is a work in progress and is not finished yet.
~/.tmux.conf Example
set -g status-bg red
set -g window-status-current-style bold
set -g default-terminal "screen-256color"
set -g mouse on
setw -g allow-rename off
set-window-option -g automatic-rename off
set-window-option -g window-status-current-style bg=white
set-window-option -g window-status-current-style bright
setw -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key C-s run "for i in $(tmux lsw|awk -F: '{print $1}'); do tmux movew -s \$i; done"
set -g command-alias rw='respawn-window -k'
|
- If this file isn't in your home directory already, you can create it
- Remember when you make changes you must source the file by either:
- Outside of tmux tmux source ~/.tmux.conf
- Inside tmux, ctl-b : source ~/.tmux.conf
|
~/.bash_aliases
## Useful things to add to your ARC ~/.bash_aliases
alias jobstart='squeue -u yourPID --start’
alias myjobs='squeue -o"%.7i %.9P %.8j %.8u %.2t %.10M %.6D %C" -u yourPID'
alias tm='tmux' #Shorthand for tmux
alias tmat='tmux a -t' #shorthand for attaching to sessions
alias tmls='tmux ls' #Shorthand for listing tmux sessions
alias ll='ls -lah'
alias t7='tail -n70'
alias mr='module reset'
alias ml='module load'
alias mls='module list'
**alias sc='cd /scratch/yourPID/'
## Useful things to add to your Workstation ~/.bash_aliases
alias tc='ssh -Y yourPID@tinkercliffs1.arc.vt.edu'
alias owl='ssh -Y yourPID@owl1.arc.vt.edu'
alias ll='ls -lah'
## Useful to add at the end of your submit script
seff $SLURM_JOBID >> runinfo.log
|
|
ARC Job Info/Monitoring
squeue [-u] [--start] [--format=<spec>] |
View information about jobs.-u yourPID will give it specific to user yourPID. --start will give an estimated start time. --format=<spec> can output many different things. See slurm documentation for more |
seff <job-id> |
Resource utilization of a completed job |
jobload <job-id> |
Resource utilization of a running job |
showusage [-v] |
Breakdown of core hours used. -v option will give more detail |
iostat |
Shows CPU & IO stats on the node you are currently logged into |
sinfo |
Shows information about all nodes, which are available, which are in use |
|
|
Tmux
ctl-b |
"I want to do something in tmux" |
tmux ls |
See current tmux sessions |
tmux a -t sessionName |
Attach to tmux session named sessionName |
ctl-b d |
Detach from the current session |
ctl-b c |
create a new "tab" (window) |
ctl-b # |
Switch to tab # |
ctl-b % |
Create left/right split |
ctl-b " |
Create up/down split |
ctl-b arrowKeys |
Move between splits |
ctl-b , |
Rename tab (window) |
|