通读 man tar
时,您会发现 tar 命令在任何地方都没有连字符。为什么 tar 允许以下两个命令有效:
tar c .
tar -c .
最佳答案
3.3 The Three Option Styles
There are three styles for writing operations and options to the command line invoking tar. The different styles were developed at different times during the history of tar. These styles will be presented below, from the most recent to the oldest.
https://www.gnu.org/software/tar/manual/html_section/tar_21.html
关于linux - 为什么 tar 允许不带连字符的选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40728111/