Code: Select all
alias ifconfig='/sbin/ifconfig'The Guru has spoken.

Still I will leave the above because it demonstrates how to combine several aliases into one alias.
Moderators: b1o, jkerr82508
Code: Select all
alias ifconfig='/sbin/ifconfig'

Code: Select all
source ~/.bashrcCode: Select all
alias restartbash='source ~/.bashrc'Code: Select all
source ~/.bashrc
After that you can simply write Code: Select all
restartbashCode: Select all
expac --timefmt='%d-%m-%Y %T' '%l\t%n' | sort | tail -20Code: Select all
alias lastinstalled='expac --timefmt='%d-%m-%Y %T' '%l\t%n' | sort | tail -20'Code: Select all
alias lastinstalled='expac --timefmt="%d-%m-%Y %T" "%l\t%n" | sort | tail -20'Code: Select all
30-06-2015 12:16:09 perl-json-xs
30-06-2015 12:16:10 perl-net-ssleay
30-06-2015 12:16:10 perl-xml-libxml
30-06-2015 12:16:11 perl-xml-parser
30-06-2015 12:16:12 pidgin
30-06-2015 12:16:15 postgresql-libs
30-06-2015 12:16:15 python2-systemd
30-06-2015 12:16:15 rrdtool
30-06-2015 12:16:15 rxvt-unicode
30-06-2015 12:16:15 rxvt-unicode-terminfo
30-06-2015 12:16:15 screen
30-06-2015 12:16:15 systemd-sysvcompat
30-06-2015 12:16:15 virtualbox-host-modules-lts
30-06-2015 13:25:42 ruby-net-ssh
30-06-2015 13:25:58 ruby-net-ssh-gateway
30-06-2015 14:52:49 lsb-release
30-06-2015 16:13:25 expac
31-05-2014 19:40:38 inputproto
31-05-2014 19:41:00 xvidcore
31-10-2014 15:08:54 libpipeline
Code: Select all
alias lastinstalled='expac --timefmt="%Y-%m-%d %T" "%l\t%n" | sort | tail -20'