Aliases

Open last modified file in vim

alias Vim="vim `ls -t | head -1`"

Find top 5 big files

alias findbig="find . -type f -exec ls -s {} \; | sort -n -r | head -5"

Grep for a bash process

alias psg="ps -aux ¦ grep bash"

List including hidden files with indicator and color

alias ls=’ls -aF –color=always’

List in long format

alias ll=’ls -l’

To clear all the history and screen

alias hcl=’history -c; clear’

Make basic commands interactive, and verbose

alias cp="cp -iv" # interactive, verbose

alias rm="rm -i" # interactive

alias mv="mv -iv" # interactive, verbose

alias grep="grep -i" # ignore case

Print Friendly, PDF & Email
guest

0 Comments
Inline Feedbacks
View all comments