How can I view the stack used by `pushd` and `popd`?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I would like to use the recently accessed directories list for logging purposes.
Is the directory stack as used by pushd
and popd
stored somewhere, perhaps as a list of folders in a text file? If so, where?
shell-builtin pushd
add a comment |
up vote
2
down vote
favorite
I would like to use the recently accessed directories list for logging purposes.
Is the directory stack as used by pushd
and popd
stored somewhere, perhaps as a list of folders in a text file? If so, where?
shell-builtin pushd
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I would like to use the recently accessed directories list for logging purposes.
Is the directory stack as used by pushd
and popd
stored somewhere, perhaps as a list of folders in a text file? If so, where?
shell-builtin pushd
I would like to use the recently accessed directories list for logging purposes.
Is the directory stack as used by pushd
and popd
stored somewhere, perhaps as a list of folders in a text file? If so, where?
shell-builtin pushd
shell-builtin pushd
edited 2 days ago
OJFord
5551515
5551515
asked Dec 22 '15 at 9:15
user216125
1244
1244
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
up vote
1
down vote
accepted
it could be in...
printf %s\n "$DIRSTACK[@]" >this_text_file
add a comment |
up vote
1
down vote
No, it's just in memory. the source code lies in bash-4.4/builtins/pushd.def: popd_builtin
add a comment |
up vote
0
down vote
dirs
is the shell builtin you're looking for, see the man page for bash's implementation:
Display the list of currently remembered directories.
Syntax
dirs [+N | -N] [-clpv]
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
it could be in...
printf %s\n "$DIRSTACK[@]" >this_text_file
add a comment |
up vote
1
down vote
accepted
it could be in...
printf %s\n "$DIRSTACK[@]" >this_text_file
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
it could be in...
printf %s\n "$DIRSTACK[@]" >this_text_file
it could be in...
printf %s\n "$DIRSTACK[@]" >this_text_file
answered Dec 22 '15 at 9:37
mikeserv
44.9k565152
44.9k565152
add a comment |
add a comment |
up vote
1
down vote
No, it's just in memory. the source code lies in bash-4.4/builtins/pushd.def: popd_builtin
add a comment |
up vote
1
down vote
No, it's just in memory. the source code lies in bash-4.4/builtins/pushd.def: popd_builtin
add a comment |
up vote
1
down vote
up vote
1
down vote
No, it's just in memory. the source code lies in bash-4.4/builtins/pushd.def: popd_builtin
No, it's just in memory. the source code lies in bash-4.4/builtins/pushd.def: popd_builtin
answered Dec 22 '15 at 9:27
oxnz
29124
29124
add a comment |
add a comment |
up vote
0
down vote
dirs
is the shell builtin you're looking for, see the man page for bash's implementation:
Display the list of currently remembered directories.
Syntax
dirs [+N | -N] [-clpv]
add a comment |
up vote
0
down vote
dirs
is the shell builtin you're looking for, see the man page for bash's implementation:
Display the list of currently remembered directories.
Syntax
dirs [+N | -N] [-clpv]
add a comment |
up vote
0
down vote
up vote
0
down vote
dirs
is the shell builtin you're looking for, see the man page for bash's implementation:
Display the list of currently remembered directories.
Syntax
dirs [+N | -N] [-clpv]
dirs
is the shell builtin you're looking for, see the man page for bash's implementation:
Display the list of currently remembered directories.
Syntax
dirs [+N | -N] [-clpv]
answered 2 days ago
OJFord
5551515
5551515
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f250872%2fhow-can-i-view-the-stack-used-by-pushd-and-popd%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown