--------------------------------Linux Guide----------------------------------
by Ingo Blechschmidt (c) 2002
-----------------------------------------------------------------------------
------------------------- Verzeichnisse schnell wechseln
------------------------- Mit Jun 27 14:37:54 MEST 2001
------------------------- Verzeichnisse Directories schnell wechseln alias
-----------------------------------------------------------------------------
Sie wechseln oft das Verzeichnis. Dieser Artikel zeigt einige Befehle
auf, die das Wechseln schneller ermöglichen.
-----------------------------------------------------------------------------
* Sie wollen nur kurz in ein anderes Verzeichnis wechseln.
Für diese Aufgabe gibt es zwei Möglichkeiten:
* cd -. Dieser Befehl wechselt in das letzte
Verzeichnis.
* popd. Nach vorherigem pushd .
genügt die bloße Eingabe von popd und Sie sind
wieder im Ausgangsverzeichnis. Vorteil von dieser Methode: Sie können
auch in mehrere Verzeichnisse wechseln. Siehe den verwandten Artikel.
* Sie wollen erreichen, dass ein cd ghi gleich nach
/abc/def/ghi wechselt. Abhilfe:
--------CODE--------: DIRPATH
** It proves what they say, give the public what they want to see and
** they'll come out for it.
** -- Red Skelton, surveying the funeral of Hollywood mogul
** Harry Cohn
Today is Pungenday, the 32nd day of Confusion in the YOLD 3167.
Hail Eris, Hack Linux!
iblech@ingo:~ > echo "export DIRPATH=/abc/def" >> .bashrc
iblech@ingo:~ > exit
logout
Welcome to SuSE Linux 6.1 (i386) - Kernel 2.2.3 (tty2) (0 users).
ingo login: iblech
password:
** Either CONFESS now or we go to "PEOPLE'S COURT"!!
Today is Pungenday, the 32nd day of Confusion in the YOLD 3167.
All Hail Discordia!
iblech@ingo:~ > cd ghi
/abc/def/ghi
iblech@ingo:/abc/def/ghi > exit
logout
--------/CODE--------
* Aliases:
--------CODE--------: aliases
# alias ghi="cd /abc/def/ghi"
--------/CODE--------
Nun langt ein bloßes ghi und Sie sind im
Zielverzeichnis, /abc/def/gi.
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
This document is distributed under the terms of the GNU Free Documentation
License.