English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

going back two steps or directories

2007-02-10 20:58:59 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

You can go up two with cd ../..

There is not any back button like a web browser. Your shell may have history, press up arrow a few times in bash for example.

2007-02-10 21:02:53 · answer #1 · answered by John Mahowald 5 · 0 0

In csh there is the command popd 2. The shell keeps a history stack, pushing new ones on or popping them off.

Or, you can write a shell script. The one I wrote uses either cd 2 or cd -- to change 2 directories back, maintains a history of previous directories, and lets you set nicknames for long strings

2007-02-10 23:48:20 · answer #2 · answered by sofarsogood 5 · 0 0

The command you want is "cd" (without the quotes)
For complete details open a console and enter the following command

man cd

Also go to "The Linux Documentation Project" web-site, the have tons of info on Linux
http://www.tldp.org/

2007-02-10 21:09:09 · answer #3 · answered by Anonymous · 0 0

hi
cd ../..
make an alias of this and use this or
directly use the above command to go back two steps if exists

2007-02-10 21:07:23 · answer #4 · answered by Ravi Gupta ~A.K.A~ "D'M 3 · 0 0

fedest.com, questions and answers