#shows line numbers in nano alias nano='nano --const --linenumbers' #pump up brightness for cs:go :P gamma(){ xrandr --output HDMI-1-1 --gamma "$1":"$1":"$1" } #very useful for hex, binary to decimal conversions py(){ python -c "print $1" } #for looping isos mountiso(){ sudo mount -o loop "$1" /mnt/iso } #got this extract function somewhere but can't remember where, it comes very handy function extract() { if [ -f "$1" ] ; then case "$1" in *.tar.bz2) tar xvjf "$1" ;; *.tar.gz) tar xvzf "$1" ;; *.bz2) bunzip2 "$1" ;; *.rar) unrar x "$1" ;; *.gz) gunzip "$1" ;; *.tar) tar xvf "$1" ;; *.tbz2) tar xvjf "$1" ;; *.tgz) tar xvzf "$1" ;; *.zip) unzip "$1" ;; *.ZIP) unzip "$1" ;; *.pax) cat "$1" | pax -r ;; *.pax.Z) uncompress "$1" —stdout | pax -r ;; *.Z) uncompress "$1" ;; *.7z) 7z x -mmt8 "$1" ;; *) echo "don't know how to extract '$1'..." ;; esac else echo "extract: error: $1 is not valid" fi } #my favorite alias upt='sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove && sudo apt clean'
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Discussion on: What are your CLI go to commands and aliases?
For further actions, you may consider blocking this person and/or reporting abuse