Bash - Directory stack

Bash Liste Des Attaques Ovh

About

The directory stack permits to navigate and come back in the directory tree.

Management

Display

Bash - dirs (list of remembered directories)

Add

Directories are added to the list with the pushd command;

Rotate

See pushd

Remove

The popd command removes entries from the list.

Example

Go away and returns

# we are now in /
pushd /aDir/
# we are now in /aDir/
popd
# we are now back in the starting current directory /





Discover More
Bash Liste Des Attaques Ovh
Bash - Tilde (~) Expansion

The tilde expansion replaces the tilde with a path value which is dependent of the syntax. If the tilde expansion fails, the word is unchanged. If a word begins with an unquoted tilde character (~),...
Bash Liste Des Attaques Ovh
Bash - dirs (list of remembered directories)

Stack/list of remembered directories. You can change of directories and return to the directory from which you came. Without options, displays the list of currently remembered directories. ...
Bash Liste Des Attaques Ovh
What is pushd (Push Directory) in Bash?

Adds a directory to the top of the directory stack, or rotates the stack, making the new top of the stack the current working directory. dirs With no arguments, exchanges the top two directories...



Share this page:
Follow us:
Task Runner