이 질문에는 요약 구문에 대한 좋은 답변이 있지만 중괄호 "{}"에 대한 정보는 없습니다. 맨페이지에서 개요에 대해 알아보세요.
tar 매뉴얼 페이지의 예
이름
tar -- manipulate tape archives
요약
tar [bundled-flags <args>] [<file> | <pattern> ...] tar {-c} [options] [files | directories] tar {-r | -u} -f archive-file [options] [files | directories] tar {-t | -x} [options] [patterns]
중괄호는 "중괄호 내에서 이러한 옵션을 사용하는 경우 이것이 사용 형식입니다"를 의미한다고 생각합니다. 누구든지 이것을 확인할 수 있습니까?
답변1
아, 방금 설명을 다시 읽었고 내 가정이 정확하다고 생각합니다. 서로 다른 옵션의 구체적인 사용법은 다음과 같습니다.
첫 번째 요약 테이블에는 "번들" 옵션 단어가 표시됩니다.
선호하는 사용법을 보여주는 기타 요약 양식
DESCRIPTION
tar creates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip,
and ISO 9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar archives.
The first synopsis form shows a ``bundled'' option word. This usage is provided for compatibility with historical implementations. See
COMPATIBILITY below for details.
The other synopsis forms show the preferred usage. The first option to tar is a mode indicator from the following list:
-c Create a new archive containing the specified items. The long option form is --create.
-r Like -c, but new entries are appended to the archive. Note that this only works on uncompressed archives stored in regular files.
The -f option is required. The long option form is --append.
-t List archive contents to stdout. The long option form is --list.
-u Like -r, but new entries are added only if they have a modification date newer than the corresponding entry in the archive. Note
that this only works on uncompressed archives stored in regular files. The -f option is required. The long form is --update.
-x Extract to disk from the archive. If a file with the same name appears more than once in the archive, each copy will be extracted,
with later copies overwriting (replacing) earlier copies. The long option form is --extract.
In -c, -r, or -u mode, each specified file or directory is added to the archive in the order specified on the command line. By default,
the contents of each directory are also archived.
In extract or list mode, the entire command line is read and parsed before the archive is opened. The pathnames or patterns on the command
line indicate which items in the archive should be processed. Patterns are shell-style globbing patterns as documented in tcsh(1).