Cool tips in Linux


1. In a terminal we enter and come out of many directories available in the file system.  But when we want to go back to the earlier same directory, there is an option available to toggle between directories using the command cd –

Please find the example and screenshot below.

Eg:

root@hostname:~/winshare# pwd

/root/winshare

root@hostname:~/winshare# cd ..

root@hostname:~# cd –

/root/winshare

root@hostname:~/winshare#

 

 

 

 

2. If you are a terminal user and works with terminal for a long time, you need an alarm to get rid of this terminal as you have some personal commitments. Leave is a command which sets alarm in terminal mode. Please see the example below

Eg:

root@:~# leave +1

Alarm set for Fri Jul 27 11:56. (pid 13727)

Just one more minute!

root@:~# Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

Time to leave!

That was the last time I’ll tell you.  Bye.

root@:~#

 

 

 

 

 

Advertisements

One Response to Cool tips in Linux

  1. Elisabete says:

    i was exactly talking about this with a friend yesterday, and now i found about it in your blog. this is awesome.http://www.casaemail.com.br

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: