Last active
November 7, 2024 19:38
-
-
Save dewomser/637680ef09f77de6e9745531f9b66c96 to your computer and use it in GitHub Desktop.
Bash : Spielerei mit dirs und pushd . Zwischenspeicher für lange Pfade zu Ordnern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Speicher anlegen | |
pushd "/etc";pushd "/usr/bin";pushd "/var/log" | |
# Speicher auflisten | |
dirs -v | |
# Springe zu Nummer | |
cd $(dirs +2) | |
#Lösche den ganzen Mist wieder | |
dirs -c | |
#Lösche einzelne Einträge aber springe dorthin | |
popd +1 | |
#Lese auch: help dirs |
Author
dewomser
commented
Nov 7, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment