Linux+ Sample Question

Q. You need to modify the PATH element in the /etc/profile file. Which of the following options is the BEST choice to do so?

A. vi /etc/profile [opens text editor]

B. cat /etc/profile [shows content]

C. grep ‘PATH’ /etc/profile [filters content]

D. head -n 25 /etc/profile [shows first 25 lines]


No Googling!!!!!!!!!!!!!