Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

萌新刚学linux..

cd /dev/fd;ls -Al

ls /dev/fd -Al


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
565 views
Welcome To Ask or Share your Answers For Others

1 Answer

因为你的命令目标不一样啊..

你第二个命令改为 ls /dev/fd/ -Al 看下是不是就一样了?

你第一个命令是进入了 fd 目录里面,打印列表,第二个命令是打印 fd 这个文件夹本身,你在 fd 后面加个斜线,就表示你要打印 fd 目录里面了.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...