Use of Dash “-” in Command-Line Parameters

最后发布时间:2022-08-13 20:00:31 浏览量:

https://www.baeldung.com/linux/dash-in-command-line-parameters

The “-” in the above command is actually an alias for /dev/stdin. Therefore, we can also replace the “-” with /dev/stdin, and nothing will change:

Well, /dev/stdin is a symbolic link to /proc/self/fd/0. The /proc/self/fd/0, in turn, is a symbolic link to the standard input of our current shell process, which is our terminal.

快捷入口
Linux 思维导图 浏览PDF 下载PDF
分享到:
标签