반응형

공식 메뉴얼

 

모르는 커맨드가 있을 경우
man [모르는 커맨드]
  • man: manunal을 줄인 말입니다.

 

공식 메뉴얼 예시
man date
  • date에 대한 커맨드 메뉴얼을 출력합니다.
DATE(1)                                             User Commands                                             DATE(1)

NAME
       date - print or set the system date and time

SYNOPSIS
       date [OPTION]... [+FORMAT]
       date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

DESCRIPTION
       Display the current time in the given FORMAT, or set the system date.

       Mandatory arguments to long options are mandatory for short options too.

       -d, --date=STRING
              display time described by STRING, not 'now'

       --debug
              annotate the parsed date, and warn about questionable usage to stderr

       -f, --file=DATEFILE
              like --date; once for each line of DATEFILE

       -I[FMT], --iso-8601[=FMT]
              output date/time in ISO 8601 format.  FMT='date' for date only (the default), 'hours', 'minutes', 'sec‐
              onds', or 'ns' for date and time to the indicated precision.  Example: 2006-08-14T02:34:56-06:00

       -R, --rfc-email
              output date and time in RFC 5322 format.  Example: Mon, 14 Aug 2006 02:34:56 -0600
 Manual page date(1) line 1 (press h for help or q to quit)

전체적인 메뉴얼 세부적 분석
DATE(1)                          User Commands                         DATE(1)

1. 섹션, 메뉴얼 이름: DATE(1)에서 1은 공식 메뉴얼의 전체 내용 중 몇 번째 섹션에 해당하는 곳인지를 말합니다.

대부분 유닉스 계열의 운영체제는 아래와 같은 여러 섹션으로 구성된 공식 메뉴얼을 갖고 있습니다.

Section Description
1 General commands
2 System calls
3 Library functions
4 Special files and drivers
5 File formats and conventions
6 Games and screensavers
7 Miscellanea
8 System administration commands and daemons

NAME
       date - print or set the system date and time

2. NAME: 커맨드의 이름과 커맨드에 대한 간단한 설명입니다.


SYNOPSIS
       date [OPTION]... [+FORMAT]
       date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]

3. SYNOPSIS: 어떻게 커맨드를 실행할 수 있는지, 사용 가능한 형식(인자, 옵션들의 조합)을 보여줍니다.

지금 보면 대괄호 안에 있는 것들(-jRu)이 사용 가능한 옵션을 나타냅니다.

그리고 대괄호 없는 new_date 같은 것이 인자입니다.


DESCRIPTION
       Display the current time in the given FORMAT, or set the system date.

       Mandatory arguments to long options are mandatory for short options too.

       -d, --date=STRING
              display time described by STRING, not 'now'

       --debug
              annotate the parsed date, and warn about questionable usage to stderr

       -f, --file=DATEFILE
              like --date; once for each line of DATEFILE

       -I[FMT], --iso-8601[=FMT]
              output date/time in ISO 8601 format.  FMT='date' for date only (the default), 'hours', 'minutes', 'sec‐
              onds', or 'ns' for date and time to the indicated precision.  Example: 2006-08-14T02:34:56-06:00

       -R, --rfc-email
              output date and time in RFC 5322 format.  Example: Mon, 14 Aug 2006 02:34:56 -0600

4. DESCRIPTION: 커맨드에 대한 좀더 자세한 설명과 각 옵션에 대한 설명입니다.

반응형

'Etc > UNIX' 카테고리의 다른 글

[UNIX] 인자와 옵션의 차이점  (0) 2021.07.05

+ Recent posts