-
Notifications
You must be signed in to change notification settings - Fork 0
/
0commands.txt
31 lines (26 loc) · 1.37 KB
/
0commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
LINUX:
===========================================
du -hsx * | sort -rh | head -10
du -a /dir/ | sort -n -r | head -n 20 # top file from each folder recursively
du --inodes -S | sort -rh # folders with most files
cut -c-23 oldFile > newFile # Remove columns 24 until the end of the file, and print it to newFile (for some reason it doesn't work if you try to print it to oldFile)
VIM:
===========================================
:exe '%g/25/.,+1d' | exe 'wq' # Remove lines that contain "25", then execute "wq". Ordinary piping doesn't work in this case for some reason.
SLURM:
===========================================
squeue -u nike -o "%.10i %.10j %.24P %.4a %.6C %.6D %.8m %.V %.S %.9Q"
salloc --mem=20G --time=1:0:0 --ntasks=1 --account=def-nike-ab
sacct -j 64074063
seff 64074063
scontrol show j 64074063
Compute Canada:
===========================================
/opt/software/sbin/partition-stats
GIT:
===========================================
git remote add upstream https://github.com/tripleee/sloshy.git # Make tripleee's version of sloshy the upstream branch
git remote -v # See remote branches (upstream and origin)
git fetch --all
git merge upstream/master # Doing this after "git fetch --all" should get the upstream/master changes merged into origin/master or whatever branch we're on).
git reset --hard 0d1d7fc32 # Go to that commit