5.1. linux#
- 5.1.1.
awk- manipulate text - 5.1.2.
cat- print input to standard output - 5.1.3.
cd- change directories - 5.1.4. chsh - change shell
- 5.1.5.
cp- copy files or folders - 5.1.6.
echo- Print Argument - 5.1.7.
grep- search for pattern in file or folders - 5.1.8.
head- read from top of file to standard output - 5.1.9.
help- read documentation - 5.1.10.
less- view files - 5.1.11.
ls- list information about files/folders - 5.1.12.
lsblk- list filesystem - 5.1.13. lscpu
- 5.1.14.
man- documentation for various functions - 5.1.15.
mkdir- make new directories. - 5.1.16.
module- load software on slurm - 5.1.17.
mount- mount filesystem - 5.1.18.
mv- move files/folders from one place to another. - 5.1.19.
pwd- print working directory - 5.1.20.
rm- delete files - 5.1.21.
rsync- sync files/folders - 5.1.22.
sbatch - 5.1.23.
scancel - 5.1.24.
scp- copy files/folders over ssh - 5.1.25.
sed- tranform/replace text! - 5.1.26.
seq- sequence of numbers - 5.1.27.
setfacl- change file/folder permissions - 5.1.28.
sinfo - 5.1.29.
sort- sorts lines - 5.1.30.
ssh- secure shell protocol - 5.1.31.
ssh-keygen- Make SSH key - 5.1.32.
tail- read from bottom of file - 5.1.33.
tar- compress/uncompress files - 5.1.34.
touch- Make File - 5.1.35.
trap- signalled execution
5.1.36. Reset GNOME Terminal Hotkeys#
dconf reset -f /org/gnome/terminal/legacy/keybindings/
5.1.37. Manging Multiple Compiler Versions#
for personal machines
For example, if you need multiple versions of gcc/g++ on a single machine running Ubuntu 22.04
First install with
sudo apt-get
sudo apt-get install gcc-11 gcc-10 gcc-9 g++-11 g++-10 g++-9 -y
Use the
updalternativesateto create list of multiple gcc and g++ compiler alternativesLarger number = higher priority
here, gcc and g++ 11 is default
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 0
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 0
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 1
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 1
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 2
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 2
Check the available c and c++ compilers list on your system and select desired version by entering relevant selection number:
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
Sanity check
gcc --version
g++ --version