linux#
awk
- manipulate textcat
- print input to standard outputcd
- change directories- chsh - change shell
cp
- copy files or foldersecho
- Print Argumentgrep
- search for pattern in file or foldershead
- read from top of file to standard outputhelp
- read documentationless
- view filesls
- list information about files/folderslsblk
- list filesystemman
- documentation for various functionsmkdir
- make new directories.module
- load software on slurmmount
- mount filesystemmv
- move files/folders from one place to another.pwd
- print working directoryrm
- delete filesrsync
- sync files/folderssbatch
- Submit job to Slurmscancel
- Cancel Slurm Jobsscp
- copy files/folders over sshsed
- tranform/replace text!seq
- sequence of numberssetfacl
- change file/folder permissionssinfo
- View information about Slurm nodes and partitions.sort
- sorts linesssh
- secure shell protocolssh-keygen
- Make SSH keytail
- read from bottom of filetar
- compress/uncompress filestouch
- Make Filetrap
- signalled execution
Reset GNOME Terminal Hotkeys#
dconf reset -f /org/gnome/terminal/legacy/keybindings/
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
updalternativesate
to 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