answersLogoWhite

0

wc is used to count the characters/words/lines in a file or files. You might use it to see how productive you've been (did you finish that 5000 word essay you were supposed to write) or to see how productive some one else has been...

The options control characters/words/lines: with no options it gives all three:

$ wc notes

56 219 1607 notes

There are 56 lines, 219 words, 1607 characters.

$ wc -l notes

56 notes

I just wanted to know how many lines.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write the UNIX command to display the number of characters lines and words in the files myfile1txt myfile2txt and myfile3txt?

Use the 'wc' command: wc myfile[123].txt


What is the output of ls wc -l command?

wc -l filename It will return no of lines in the provided file. wc stands for word count.


What is the Unix command to count the number of files in current directory?

find -type f | wc -l


Unix command to count how many users have logged on to the unix system?

The 'uptime' command will tell you exactly how many users are on the system. There are other variations of this, including counting the number of words from the 'users' command, etc., but this is the easiest.


How many processes are running in a system find Unix command?

PS -e|cut -d " " -fname|wc -l


What is a filter in Unix?

A Unix filter is a command pattern that allows the output of one command to be "piped" into the input of the next command. Commands like 'ls' which list a directory are not filters since they only generate output. Filter examples are grep, sed, sort, uniq, awk. Commands in Unix are usually filters unless they only create output, like 'ls', 'vi', etc.


List and execute UNIX command to display the number of words in the last 10 lines of any file?

tail -10 anyfile | wc


To count the number of characters in the given text file in unix?

Look at the "wc" command's man page, it will give you a count of all characters, including the newline character.


What is the use of execute command in unix?

There is no traditional 'execute' command in Unix.


Brief description of format command in unix?

There is no standard 'format' command in Unix.


Define the term cat in unix?

'cat' is short for concatenation; it is a Unix utility program to print the contents of 1 or more files on the standard output. It is similar to the 'type' command in Windows.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.