UNIX - jspark85/share GitHub Wiki
dos<->unix
- unix2dos
- dos2unix
Folder
- echo $HOME
pipe
- find . -name vasprun.xml | xargs rm
- find . | xargs touch
History
- !grep
- !cd
Sorting
- ls -ltr
- sort -n
- sort -k 2n
- sort -k2,2 -k1,1
- sort -rk 2n
- sort +1 filename
- sort -u filename
Count
- wc -l
- wc -w
- wc -c
Cut and paste
- cut -c 1-2 POSCAR
- cut -d ' ' -f 1 POSCAR
- paste -d ' ' A B
Weather
- curl wttr.in/london
- curl wttr.in/daejeon
Calendar
- cal
que
- qalter
Disconnecting
- ServerAliveInterval=120 #Keep SSH Sessions From Disconnecting
rsync
- rsync -azP --exclude=WAVECAR --exclude=CHGCAR --exclude=CHG --size-only [email protected]:source destination # You can also add "--delete" but be carefull.
nohup
- nohup mpirun -np 36 ~/bin/vasp_std &
pip
grep
- grep "\" PARCHG