Edit the bash_profile file.
vi ~/.bash_profileAdd the following codes at the end of bash_profile file.
PATH=$PATH:$HOME/binexport PATHAdd the following codes at the end of bash_profile file. (Useful for Hiporgator users)
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "export CLICOLOR=1export LSCOLORS=ExFxBxDxCxegedabagacadalias ls='ls -GFh'Creat a file named qclear_all move it into the ~/bin folder
Add the following codes in the qclear_all file.
#!/bin/shrm *.out *.log *.err log.lammpsrm -r data savmkdir data savAdd excution permission to this file.
chmod u+x qclear_allRun this command in the terminal
grep 'Step Temp' log.lammps|head -n 1;grep -B1 'Loop time' log.lammps | awk '{if (NR%3==1) print $0}'