find the total of files in the directory

There is a command in linux console to count total files in the directory. ls | wc -l The result will show a number. Actually the wc command is to print newline, word, and byte counts for each file. Here are the option for wc command -c,…

search file by content using grep

in any Linux, there are lots of rich command that we can use it through the console / command mode. Like searching for the text inside the file. Here is my example. $grep ‘text’ *.doc And many others.