diff --git a/topics/linux/README.md b/topics/linux/README.md index ebde22e..91696aa 100644 --- a/topics/linux/README.md +++ b/topics/linux/README.md @@ -2249,6 +2249,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```