chayan 91 Questions 0 Answers 0 Best Answers 0 Points View Profile 0 chayan Asked: December 7, 2017 How to count the total number of lines, words, and characters contained in a file in Unix? 0 How to count the total number of lines, words, and characters contained in a file in Unix? Share Facebook 0 Answers Voted Oldest Recent Random B Mathur 33 Questions 198 Answers 3 Best Answers 36 Points View Profile B Mathur Begginer Added an answer on January 7, 2018 at 11:41 pm Using wc command you can count number of lines, words, characters of a file. wc welcome.txt Output: 2 20 124 welcome.txt 1st number represent number of lines. 2nd number represent number of words. 3rd number represent number of bytes. 0 Reply Share Share Share on Facebook Share on Twitter Share on LinkedIn Share on WhatsApp Leave an answerCancel replyYou must login or register to add a new answer.