LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2010, 03:22 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Rep: Reputation: 51
Extended 'cd -'.


Hi:

I want to cycle between three directories, always in the same virtual console (VT). Just the case of 'cd -' but with three dirs instead of two dirs. Can this be done by simple means? Any hint will be welcome. Thanks for reading.
 
Old 11-18-2010, 03:28 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Always the same dirs? just use alias

alias d1="cd /var/bob/monkey"
alias d2="cd /var/bob/giraffe"
alias d3="cd /var/bob/moose"
 
1 members found this post helpful.
Old 11-18-2010, 09:42 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,520

Original Poster
Rep: Reputation: 51
Thanks so much.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extended Desktop onto TV Tristan9669 Linux - General 2 07-12-2006 02:03 PM
Can kaddressbook be extended? jhawkinsvalrico Linux - Software 1 03-22-2006 10:01 AM
Extended Desktop Özkan Gümü? Linux - Hardware 4 02-18-2006 03:02 PM
/dev/extended? trscookie Linux - Hardware 3 12-01-2004 12:14 PM
Extended Keyboards davecs Linux - Hardware 7 05-15-2003 02:56 PM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration