Mobile
My iOS apps
Other apps
Open source
  • Bandwidth benchmark
  • RAVM virtual machine
  • Big integer division
  • Prime numbers
  • AntiJOP sanitizer
  • TouchWidgets UI lib
  • Networking utils
  • Documentation
  • x86 instructions ref
  • GIT quick ref
  • GPG quick ref
  • Avoid Ubuntu
  • Android malware risks
  • iOS malware risks
  • OS/X security tips
  • Tor blockers
  • Software engineering
  • BASH aliases
  • I.B. pro/con
  • Why 64-bit?
  • Nutrition
  • Blog
  • Contact
    1 at zsmith dot co

    The best BASH aliases

    Document revision 4
    © by
    All rights reserved.

    The list

    Directories

    • alias ..='cd ..'
    • alias ...='cd ../..'
    • alias D='cd ~/Desktop'
    • alias W='cd ~/Downloads'
    • alias V='cd /Volumes' # OS/X
    • alias V2='cd `mount| grep /dev/disk2| sed "s/^.* on //" `'
    • alias V3='cd `mount| grep /dev/disk3|sed "s/^.* on //" `'

    export D=~/Desktop
    export W=~/Downloads
    

    File system

    • alias bc='/usr/bin/bc -l'
    • alias df='/bin/df -h'
    • alias du='/usr/bin/du -h'
    • alias gg='du | grep "G "'
    • alias f='find . -name '
    • alias f~='find ~ -name '
    • alias g=grep
    • alias o=open
    • alias lsusb="system_profiler SPUSBDataType"

    Multimedia

    • alias ll='ls -alh'
    • alias lt='ls -trs'
    • alias l3='ls -lh *.mp3 *.wav *.au *.m4a'
    • alias 3=afplay
    • alias l4='ls -lh *.mp4 *.mov *.mkv'
    • alias 4='mplayer -cache 8192 '

    Networking

    • alias n='lsof -i'
    • alias ns='nslookup -a'
    • alias ww=whois

    Making

    • alias m=make
    • alias em="vi Makefile"
    • alias co="./configure"
    • alias ch="./configure -h"
    • alias MM="./configure && make clean && make && sudo make install"

     
    function smi {
            sudo make clean
            sudo make install
    }
    

    GIT

    • alias UM='git pull origin master'
    • alias AM='git add *.[mhc]'
    • alias S='git status'
    • alias L='git log'
    • alias C='git commit'

    OS/X

     
    function eject {
            diskutil eject /dev/disk$1
    }
    
    function unmount {
            diskutil unmount /dev/disk$1
    }
    
    alias v='diskutil list'   # list volumes
    

    Et cetera

    • alias h=history
    • alias e=vi

    Download

    Link



    © Zack Smith