what does the command 'wc' do?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the command to view process running?

812


What is the command to find maximum memory taking process on the server?

890


How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?

982


What is ‘ps’ command for?

860


What is the unix command to confirm a remote host is alive or not?

806


Describe the usage and functionality of the command rm –r * in unix?

1542


Can you explain a little bit about command substitution?

828


How does pipe () work?

786


What is sed awk grep?

823


What is the significance of the 'tee' command?

831


What does pipe () return?

781


Using unix command how to display no of records in oracle?

843


Write a command that will display files in the current directory, in a colored, long format.

933


how to sort the content of the file based on numeric values

1516


What command is used to switching between users in unix?

775