how many times the word appears on the file linux code example Example: linux count number of times word appears in file grep -o 'word' filename | wc -l