cd - # go to previuos directory
pushd level-1/level-2
# do work ...
popd
# now we're back to the directory we started in
alias o="xdg-open" # o stands for open
o file #will open file in default aplication
o .
!! Repeats your last command
sudo !! # repeat last command with sudo
mkdir -p make/new/directory
cd !$
# cd is taking last argument from the previus command
# Renaming/moving files with suffixes quickly:
cp /home/foo/realllylongname.cpp{,-old}
# This expands to:
cp /home/foo/realllylongname.cpp /home/foo/realllylongname.cpp-old
# to do the reverse (going from .cpp-old to .cpp) you'd do
cp /home/foo/realllylongname.cpp{-old