what does the command 'wc' do?
Answers were Sorted based on User's Feedback
Answer / samrat biswal
wc -l <file_name> will display the number of lines present
in that file or the record count
wc -w <file_name> will display the number of words present
in that file
wc -c <file_name> will display the number of character
present in that file
Is This Answer Correct ? | 12 Yes | 0 No |
Answer / payal
wc command counts the number of lines,words and characters
present in a file.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / amit
wc command generally used for count the no. of words(-w),
counts the no of lines(-l), count the no of character(-c)
example
wc -c<b
where b is the file. wc command check the character from
file b.similrly use the -l at the position of -c then it
counts the no of lines present in the file b.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / abdessa
wc command counts the number of lines,words and characters
present in a file
Is This Answer Correct ? | 1 Yes | 0 No |
Enumerate some of the most commonly used network commands in unix?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is “chmod” command?
what is the difference between pipe(|) and tee command..
Explain how to use grep command to list find the records of a file containing 10 different strings?
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
7 Answers Alcatel, Cisco, Infosys, University Exams,
How to rename files and folders?
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
What does the metacharacter mean?
what do you understand bythe term 'de-mountable volumes'?
What are bash commands?
How do you execute a UNIX command in the background?