Register now or log in to join your professional community.
A. countw B. wcount C. wc D. count p E. None of the above
wc -l tecmint.txt
(to show # of lines)
wc -w tecmint.txt
(to show # of words)
wc -c tecmint.txt
(Bytes and Characters)
# wc -L tecmint.txt
(Length of Longest Line)
Hi All,
Command "wc" can be used for count of the total number of lines, words, and characters contained in a file.
To calculate number of lines in a file.
#wc -l <filename>
To calculate number of words in a file.
#wc -w <filename>
To calculate number of characters in a file.
#wc -c <filename>
The answer will be C. WC
C.wc
WC
What command is used to count the total number of lines, words, and characters contained in a file?
wc
wc is the answer. If you want to get total number of lines, give -l switch end of the command
Eg: wc -l filename
you can use wc command as suggested by the others
we can use the command "wc"
As per mentioned option,The right option is C
wc