Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-20-2005, 05:13 AM   #1
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


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:


or something like that.

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

Rep: Reputation: 63
cd -


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 PM.

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