Many of us just use cd, cd .., cd <dir> to navigate through the file system in Linux. Directory or file-system navigation can be simplified by using following commands -
1) Many times we are in some directory say /home/user/foo and we need to go to the directory /usr/share/bar . After completing tasks in this directory, if one needs to get back to the previous directory, he would type in ‘cd /home/user/foo’ . Won’t it be far easy if we had some kind of back button as in Nautilus or Windows Explorer ? Its already there in Linux. Just type in
$ cd -
and you will reach back to the previous directory.
2) Another important tool to make navigation easier is ‘pushd’ and ‘popd’. Say you are in some directory /home/user/foo1 and then you wish to navigate to /home/user/foo2 and then to /home/user/foo3
After all these you need to back to previous directories. You can use pushd and popd like this :
$ pushd .
$ cd /home/user/foo2
$ pushd .
$ cd /home/user/foo3
Now to get back to previous directories -
pushd actually push its argument directory to a stack and popd changes the current directory to the one on top of the stack.
Hope you enjoyed these tips.
I love showing off my status messages of gtalk. I often set witty messages, latest (probably unheard) news, my latest blog links in my status. Many a times I wish to log those messages to make a life stream. Wouldn’t it be great if I could someday check, what was my status on my last birthday ! Or may be, I would love to remember those moments when I used to impress my girlfriend by weird status messages. Status messages are no more just for “available” , “busy” and “idle”. Its like microblogging now.
Thanks to http://gtalkbots.com . Now I can save all my status messages and even share it to the world. So now I can have my life stream saved without any pain of logging in to the website. I simply had to add firstname.lastname@example.org to my buddy list and register once in the website. Simple !
This bot is intelligent as well. I can save any notes link etc just by messaging “<notes> Anything I want to save.”
This site is even providing widgets for my blog. Check out the two widgets in the side panel of this page. There are two gtalkbots.com widgets on my blog. One of them shows my last 10 status messages and the other one displays the last 10 shared status message of the world.
I can even ‘track’ my friends’ status messages. Isnt all these great ??
Check out my gtalkbots page: http://gtalkbots.com/spsneo
Hope you will also love this service and give a try at least.