linux#
- 1.
awk- manipulate text - 2.
cat- print input to standard output - 3.
cd- change directories - 4. chsh - change shell
- 5.
cp- copy files or folders - 6.
echo- Print Argument - 7.
grep- search for pattern in file or folders - 8.
head- read from top of file to standard output - 9.
help- read documentation - 10.
less- view files - 11.
ls- list information about files/folders - 12.
lsblk- list filesystem - 13. lscpu
- 14.
man- documentation for various functions - 15.
mkdir- make new directories. - 16.
module- load software on slurm - 17.
mount- mount filesystem - 18.
mv- move files/folders from one place to another. - 19.
pwd- print working directory - 20.
rm- delete files - 21.
rsync- sync files/folders - 22.
sbatch - 23.
scancel - 24.
scp- copy files/folders over ssh - 25.
sed- tranform/replace text! - 26.
seq- sequence of numbers - 27.
setfacl- change file/folder permissions - 28.
sinfo - 29.
sort- sorts lines - 30.
ssh- secure shell protocol - 31.
ssh-keygen- Make SSH key - 32.
tail- read from bottom of file - 33.
tar- compress/uncompress files - 34.
touch- Make File - 35.
trap- 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
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