Basics of OS UNIX LINUX and Shell Programming Set 1 Q1. Which symbol will be used with grep command to match the pattern pat at the beginning of a line? A. ^pat B. $pat C. pat$ D. pat^ E. None of the above Q2. Which command is used to sort the lines of data in a…