'pushd'에 해당하는 글 1건

[root@www home]# mkdir test1 test2 test3
[root@www home]# cd test1/
/home/test1


[root@www test1]# pushd .
/home/test1 /home/test1
[root@www test1]# cd /home/test2
[root@www test2]# pushd .
/home/test2 /home/test2 /home/test1
[root@www test2]# cd /home/test3
[root@www test3]# pushd .
/home/test3 /home/test3 /home/test2 /home/test1
[root@www test3]# popd
/home/test3 /home/test2 /home/test1
[root@www test3]# pwd
/home/test3
[root@www test3]# popd
/home/test2 /home/test1
[root@www test2]# pwd
/home/test2
[root@www test2]# popd
/home/test1
[root@www test1]# pwd
/home/test1
[root@www test1]# popd
-bash: popd: directory stack empty
[root@www test1]# dirs
/home/test1

저작자 표시 비영리 동일 조건 변경 허락
신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret