Go Job Hunting at the LQ Job Marketplace
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, 06: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, 06:26 AM   #2
Senior Member
Registered: Jul 2004
Location: France
Distribution: Arch Linux
Posts: 1,897

Rep: Reputation: 61
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 08:58 PM
long directory and pwd luegner Slackware 4 11-21-2003 01:57 AM
Browsing /mnt directory takes LONG time Rodzilla Mandriva 11 11-19-2003 11:38 AM
Copying Long Filenames from Win2k to a Linux Samba directory brianabroad Linux - General 0 10-30-2003 01:41 AM
How to back up or Mirror a directory cli_man Linux - Software 1 09-02-2002 02:44 AM

All times are GMT -5. The time now is 06:51 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