How can you count the number of characters and lines in a file?



How can you count the number of characters and lines in a file?..

Answer / Namita Mishra

To count the number of characters in a file, use the wc -c command. To count the number of lines, use the wc -l command. The wc (word count) command provides the total number of characters, words, and lines in a file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

What is unix orphan process?

1 Answers  


What is unix operating system explain various components of unix operating system?

1 Answers  


What are the basic responsibilities of a shell?

3 Answers  


How the Kernel handles the fork() system call in traditional Unix and in the System V Unix, while swapping?

1 Answers  


How to reverse a string in Unix?

1 Answers  


What are the essential features of the unix operating system?

1 Answers  


Which unix shell is best?

1 Answers  


What does cd mean in unix?

1 Answers  


Is a form of interprocess communication in unix?

1 Answers  


What is ps1 and ps2 in unix?

1 Answers  


What is unix shell scripting used for?

1 Answers  


what is wrong with this interactive shell script?

1 Answers  


Categories