![]() ![]() Or, you can use the whoami command to determine the account you are using. Many systems end their command prompt with a dollar sign (" $") if you're logged in as a normal user and a pound sign (" #") if you're root. One way to remind yourself if you are root or not is to check your command prompt. It is easy to forget you're currently the root user, and you might inadvertently run a command thinking you are only a mere mortal. If successful, you are switched to the root user and can run commands with full system privileges.īe careful while logged in as root. From the command line, type: suĮnter the password once prompted for the password. There is a special command named su (for "super user," or "switch user") that lets you run commands as the root account temporarily. If you know root's password, you can use it to log into the root account from the command line. The root account is similar to any other account in that it has a username ("root") and a password. Do your research, and always double-check every command before pressing Enter. A single careless or malformed command, run as root, can make the entire operating system unusable. If you need to perform tasks as the root user, make sure you fully understand the commands you are running, and what consequences they have. ![]() Logging in as root (or executing commands with root privileges) is necessary for many tasks. On every Linux system, the root account is a special user with administrative rights.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |