go this webside --- https://www.cyberciti.biz/faq/linux-unix-command-open-file-linenumber-function/ by the way the answer is -- vi +/searchTermHere fileName