53 Misc. useful linux commands

  1.  cd - goes back to last directory
  2.  reset clears and resets the terminal
  3. if you type  apt update then want to do it again by adding sudo then no need to retype everything, just type  sudo !!  then the  !!  will copy the last command
  4.  history followed by  !nn where nn is the command number show in history, will run that command
  5. To run 2 commands one after the other, but stop if one fail, do  cmd1; cmd2; cmd3 The above will stop if one of these commands fail. If you use  cmd1&& cmd2&& cmd3 then it will not stop if one command fail. so using ; is more safe.
  6.  command  column t| is useful command to format messy output into columns so easier to read