latest rants
- 17.Apr.2012
GMail - Temporary Error (500) - Numeric Code 93 - 28.Mar.2012
Drive Genius 3 - Defrag Failed - 27.Nov.2011
Netflix has been down for several hours (November 27, 2011) - 23.Nov.2011
How to install CentOS 6 from a USB drive with UNetbootin - 9.Nov.2011
Funniest Race Start Fail Ever!
Improving work efficiency in UNIX command line
Posted on 2008-01-11 at 13:18:42. Last updated on 2008-01-11 at 13:18:42.
If you find yourself confused with distinguishing directory & file listing in UNIX, you're not alone. I remember when I first installed of Redhat 5.2 in 1998, I got confused with distinguishing file and directory after ls command. It took me a while to find out that the good news is: it is configurable with color-coded directory listing for easier reading and usability if you're a heavy command line user. The second thing is finding where exactly I am located in the current directory without typing pwd all the time.
So here's a little step that you can to do to improve your working efficiency in UNIX command line:- Edit /etc/bashrc and add alias ls="ls -laFG" to make directory listing colored
- For the command prompt, add the following command: if [ -n "$PS1" ]; then PS1='nu@e[31;1m[w] 33[0mn$ '; fi
Comments
- 2011-05-13 06:52:50 Lynda
-
2011-09-06 04:14:23
Jahlin
Haha, shouldn't you be charging for that kind of konwlegde?!
It was dark when I woke. This is a ray of sushnnie.