DEV Community

Bash Aliases (aka part 1 of 2000 of how to get more done in less time)

Aniket Kadam on August 05, 2017

Speed. It’s one of the most important things in life. Don’t get me wrong, some things must be done slow to be done right. You want to carefully co...
Collapse
 
brandonwallace profile image
brandon_wallace

Here are some of the aliases and functions I have in my .bashrc.

# View dd progress.
alias dd='dd status=progress '

# Long list almost all files with classification and a humanly-readable size.
function ll(){ 
    ls --color=auto -A -F -l -h --time-style=+"%Y-%m-%d %H:%M:%S"; 
}

# Long listing with the newest files last.
function lt(){ 
    ls --color=auto -A -F -l -h -t -r --time-style=+"%Y-%m-%d %H:%M:%S"; 
}

# Find the biggest files or folders in current directory.
function biggest(){ du -sk * | column -t | sort -nr | head -20; }

# Show current time.
function t(){ date +%H:%M:%S; }

# Grep through history.
function hg(){ history | grep $1; }

alias tree='tree -F --dirsfirst'

alias jan='cal -m 01'
alias feb='cal -m 02'
alias mar='cal -m 03'
alias apr='cal -m 04'
alias may='cal -m 05'
alias jun='cal -m 06'
alias jul='cal -m 07'
alias aug='cal -m 08'
alias sep='cal -m 09'
alias oct='cal -m 10'
alias nov='cal -m 11'
alias dec='cal -m 12'
Enter fullscreen mode Exit fullscreen mode

github.com/brandon-wallace/bashrc/...

Collapse
 
aniketsmk profile image
Aniket Kadam

Nice! Thanks for sharing. Love the calendar.