gpt4 book ai didi

linux - 为什么 tar 允许不带连字符的选项?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:47:37 27 4
gpt4 key购买 nike

通读 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/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com