[user1:/etc]$pwd
/etc
[user1:/etc/ssh]$ pushd ssh
/etc/ssh /etc
[user1:/usr/local/bin]$ pushd /usr/local/bin
/usr/local/bin /etc/ssh /etc
[user1:/var/log]$ pushd /var/log
/var/log /usr/local/bin /etc/ssh /etc
◆移動履歴で3番目の履歴(/etc)に移動する
[user1:/var/log]$ dirs -v
0 /var/log
1 /usr/local/bin
2 /etc/ssh
3 /etc
[user1:/var/log]$ pushd +3
/etc /var/log /usr/local/bin /etc/ssh
[user1:/etc]$ pwd
/etc
|