日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux shell pushd popd dirs命令

發(fā)布時(shí)間:2025/4/5 linux 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux shell pushd popd dirs命令 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1、dirs

1)功能
顯示當(dāng)前目錄棧中的所有記錄(不帶參數(shù)的dirs命令顯示當(dāng)前目錄棧中的記錄)

2)語法
(1)格式:dirs? [-clpv]? [+n]? [-n]
(2)選項(xiàng)
-c ?? 刪除目錄棧中的所有記錄
-l???? 以完整格式顯示
-p??? 一個(gè)目錄一行的方式顯示
-v??? 每行一個(gè)目錄來顯示目錄棧的內(nèi)容,每個(gè)目錄前加上的編號
+N? 顯示從左到右的第n個(gè)目錄,數(shù)字從0開始
-N?? 顯示從右到左的第n個(gè)日錄,數(shù)字從0開始
注意:dirs始終顯示當(dāng)然目錄, 再是堆棧中的內(nèi)容;即使目錄堆棧為空, dirs命令仍然只顯示當(dāng)然目錄

2、pushd

1)功能
pushd命令常用于將目錄加入到棧中,加入記錄到目錄棧頂部,并切換到該目錄;若pushd命令不加任何參數(shù),則會將位于記錄棧最上面的2個(gè)目錄對換位置

2)語法
(1)格式:pushd? [目錄 | -N | +N]?? [-n]
(2)選項(xiàng)
目錄?? 將該目錄加入到棧頂,并執(zhí)行"cd 目錄",切換到該目錄
+N?? 將第N個(gè)目錄移至棧頂(從左邊數(shù)起,數(shù)字從0開始)
-N??? 將第N個(gè)目錄移至棧頂(從右邊數(shù)起,數(shù)字從0開始)
-n??? 將目錄入棧時(shí),不切換目錄

------------------------------------------------------------------------------------------

pushd

Save and then change the current directory. With no arguments,?pushd?exchanges the top two directories.

SYNTAXpushd [dir | +N | -N] [-n] KEY+N Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -N Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack. -n Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated. dir Makes the current working directory be the top of the stack, and then executes the equivalent of `cd dir'. cds to dir.



3、popd

1)功能
popd用于刪除目錄棧中的記錄;如果popd命令不加任何參數(shù),則會先刪除目錄棧最上面的記錄,然后切換到刪除過后的目錄棧中的最上面的目錄

2)語法
(1)格式:popd? [-N | +N]?? [-n]
(2)選項(xiàng)
+N?? 將第N個(gè)目錄刪除(從左邊數(shù)起,數(shù)字從0開始)
-N??? 將第N個(gè)目錄刪除(從右邊數(shù)起,數(shù)字從0開始)
-n??? 將目錄出棧時(shí),不切換目錄

?-------------------------------------------------------------------------------------------

popd

Remove the top entry from the directory stack, and?cd?to the new top directory.

SYNTAXpopd [+N | -N] [-n]Key+N Remove the Nth directory (counting from the left of the list printed by dirs), starting with zero. -N Remove the Nth directory (counting from the right of the list printed by dirs), starting with zero. -n Suppress the normal change of directory when removing directories from the stack, so that only the stack is manipulated.

When no arguments are given, popd removes the top directory from the stack and performs a cd to the new top directory.?

The elements are numbered from 0 starting at the first directory listed with dirs; i.e., popd is equivalent to popd +0.

參考:http://hi.baidu.com/linuxtrip/item/47a38c8eec00e98f4414cfb7

轉(zhuǎn)載于:https://www.cnblogs.com/davidwang456/p/3784102.html

總結(jié)

以上是生活随笔為你收集整理的linux shell pushd popd dirs命令的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 欧美视频一区二区三区 | va在线视频 | 91一区在线| 在线免费一级片 | 欧美爱爱爱 | 爆操网站 | 国产av国片偷人妻麻豆 | 无码精品一区二区三区在线 | 911国产视频 | 三级黄色图片 | 五月丁香综合激情六月久久 | 欧美一级视频在线观看 | 乱老熟女一区二区三区 | 国产人久久人人人人爽 | 日本在线h | 亚洲毛片一区二区 | 国产精品久久久久久亚洲 | 亚洲一区二区三区四区视频 | 国产精品av久久久久久无 | 国产麻豆免费观看 | 好吊在线视频 | 国产精品免费视频一区 | 性囗交免费视频观看 | 亚洲毛片一区二区三区 | 人人涩| 肥臀浪妇太爽了快点再快点 | 综合伊人久久 | 国产青青操 | 免费黄色欧美 | www.久久久精品 | 欧美乱大交xxxxx潮喷l头像 | youjizz.com中国 | 国产精品日韩一区二区 | 亚洲精品一区二区三区不卡 | 福利视频不卡 | 韩国91视频| 天干夜夜爽爽日日日日 | 一区二区三区小视频 | 久久久久亚洲av无码专区体验 | 久久久久久久久久久久久久国产 | 欧美一区高清 | 国产亚洲性欧美日韩在线观看软件 | 贝利弗山的秘密1985版免费观看 | 成人精品在线观看 | 亚洲成人av电影 | 日本不卡视频一区二区 | 日本中文字幕一区二区 | 久久精品视频5 | 在线观看视频你懂得 | 日韩欧美一区二区在线 | 免费在线播放av | 日韩在线精品 | 青春草视频在线免费观看 | 日日夜夜精品视频免费 | 精品视频99 | 老女人做爰全过程免费的视频 | 99r精品视频 | 亚洲av男人的天堂在线观看 | 精品久久久亚洲 | 小萝莉末成年一区二区 | 麻豆视频精品 | 亚洲欧洲一区 | 97caoporn| 婷婷中文网 | 久久欧美 | 欧美日韩成人一区二区在线观看 | 男女猛烈无遮挡 | 欧美性猛交xxxx黑人交 | 在线看片国产 | 天天爱综合 | 黄色免费视频观看 | av片观看| 美女试爆场恐怖电影在线观看 | zzjj国产精品一区二区 | 福利视频一区 | 色诱av| 无码黑人精品一区二区 | 欧美五月婷婷 | 美女无遮挡网站 | 国产夜夜操 | 骚狐网站 | 日本一二三区视频在线 | 色哟哟欧美精品 | 91porny首页入口 | 久久精品夜 | 国产精品高潮呻吟久久av野狼 | www欧美色 | 色呦呦免费观看 | 国产福利片在线 | 男人亚洲天堂 | 中文字幕一区二区三区乱码人妻 | 深爱五月激情五月 | 国产视频污在线观看 | 一区二区伊人 | 日本特级毛片 | 国产精品骚 | 乱短篇艳辣500篇h文最新章节 | 在线观看欧美视频 | 亚洲50p|