!["man 7 regex"에서 "7"의 의미는 무엇입니까? [복사]](https://linux55.com/image/73841/%22man%207%20regex%22%EC%97%90%EC%84%9C%20%227%22%EC%9D%98%20%EC%9D%98%EB%AF%B8%EB%8A%94%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%20%5B%EB%B3%B5%EC%82%AC%5D.png)
Shell을 입력하면 man regex
로드됩니다.
REGEX(3) Linux Programmer's Manual REGEX(3)
NAME
regcomp, regexec, regerror, regfree - POSIX regex functions
SYNOPSIS
........
입력할 때 man 7 regex
다른 매뉴얼 페이지가 표시됩니다.
REGEX(7) Linux Programmer's Manual REGEX(7)
NAME
regex - POSIX.2 regular expressions
DESCRIPTION
........
여기서 무슨 일이 일어나고 있는 걸까요?
답변1
이에 대한 자세한 내용은 에서 확인할 수 있습니다 man man
. 매뉴얼 페이지는 여러 섹션으로 나누어져 있습니다. 이런 방식으로 항목은 유사한 항목과 함께 그룹화되며 다른 위치에서 동일한 이름을 사용할 수 있습니다(예: stat
여러 섹션에 존재함).
내 이전 Fedora에 정의된 섹션은 다음 man man
과 같습니다.
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conven‐
tions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]