Count words, lines, and characters in any text file with a single command. 텍스트 파일의 단어, 줄, 문자 수를 한 번의 명령으로 셉니다.
bash
wc <FILE_PATH>
Arguments / 인수:
#NameDescription설명1FILE_PATHPath to the file to count셀 파일의 경로
bash
wc /home/user/document.txt
Output / 출력:
text
42 350 2100 /home/user/document.txt
Format / 형식: LINES WORDS CHARACTERS FILENAME
( 줄 수 단어 수 문자 수 파일명)
wc (exit code non-zero) — wc 오류 메시지 (종료 코드 0이 아님)