We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/16/08


Tagged

Shell Bash configuration


Versions (?)


My .bash_login


Published in: Bash 


  1. # display login messages
  2. echo -e "\nuptime: $(uptime | cut -b 14-27)"
  3. echo -e "\nlast:"
  4. last -3 | head -n $(expr $(last -3 | wc -l) - 2)

Report this snippet 

You need to login to post a comment.