
1. The contents of a file can be simply search by targeting only the keyword of the content. By using command less, you can search through a file for a only specific word. For example, to search through more/etc/passwd file for the word ‘passwd‘.
# cd /more/etc/ # less passwd
2. Enter / and the word you want to search. The command will highlight the ‘passwd‘ word and make an easier to search.
/passwd


