diff --git a/topics/linux/README.md b/topics/linux/README.md index 80a750c76..fc1b5bb2e 100644 --- a/topics/linux/README.md +++ b/topics/linux/README.md @@ -2228,6 +2228,14 @@ $OLDPWD
How to count the number of lines in a file? What about words?
+ +For these we can use `wc` command. + +1. To count the number of lines in file +```wc -l``` + +2. To count the number of words in file +```wc -w```