LinuxQuestions.org
Review your favorite Linux distribution.
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 05-20-2005, 05:13 AM   #1
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
how to get back quickly to directory with long path name


if I am in

/home/user1/asdfasdf/sdfsd/fdsfs/fsdf/sdfsdf/sdf

and then do a "cd /root" real quick, how do I get back to where I was without typing in that whole long path again? I can't use the bash history since I may have gotten there in many other ways other than a "cd /home/user1/asdfasdf/sdfsd/fdsfs/fsdf/sdfsdf/sdf".

I'm looking for a command like:

goback
returndir

or something like that.

Thanks.
 
Old 05-20-2005, 05:26 AM   #2
theYinYeti
Senior Member
 
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
cd -
 
  


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
How to rsynce the actual directory path instead of just the directory at the end of Niceman2005 Linux - General 5 04-08-2005 07:58 PM
long directory and pwd luegner Slackware 4 11-21-2003 12:57 AM
Browsing /mnt directory takes LONG time Rodzilla Mandriva 11 11-19-2003 10:38 AM
Copying Long Filenames from Win2k to a Linux Samba directory brianabroad Linux - General 0 10-30-2003 12:41 AM
How to back up or Mirror a directory cli_man Linux - Software 1 09-02-2002 01:44 AM


All times are GMT -5. The time now is 02:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration