Skip to content

Instantly share code, notes, and snippets.

@stokito
Last active April 4, 2023 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stokito/9fb9b7be94d29b4037c40eb5f8abc8aa to your computer and use it in GitHub Desktop.
Save stokito/9fb9b7be94d29b4037c40eb5f8abc8aa to your computer and use it in GitHub Desktop.
Ubuntu command line tools to make life easier
alias ll='ls -alF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
  • mc - a Noron Comander like file manager sudo apt install -y mc
  • mcedit - an editor sudo update-alternatives --set editor /usr/bin/mcedit. Now you can use sudo -e /file to edit as admin
  • ranger - ls alternative for a faster navigation. sudo apt install -y ranger
  • thefuck - use it for sudo install sudo apt install thefuck; echo 'eval $(thefuck --alias)' >> .bash_profile
  • history lookup sudo apt install fzf See https://github.com/junegunn/fzf

Also install the alisases into ~/.bash_aliases

See also edit_file.sh to edit root files in gedit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment