Scan QR code or get instant email to install app
Download ITEXAM Prep app now
Scan QR code or get instant email to install app
Question:
The sudo command, also known as "substitute user do" or "superuser do", is used to execute a command with a different privilege level than the user who is currently logged in. Typically, this entails executing a command with root or superuser permissions. The su command switches to a different user, again the default is root. With sudo, you have to type sudo before each command, while you don't have to do that with su. Following the best practices, you should use sudo if you only need to run one command and su if you need to run multiple. If you know what is in a file but can't recall the name of the file, you can still find it by using the grep command, which searches for patterns in a file. A manual is displayed using the man command. For instance, man grep would explain how to use the grep command.