Learn Difference Between "su" and "su -" Commands in Linux

The su Command - The Linux Information Project (LINFO Exiting From su. There are several ways to exit from su, i.e., to return the login session or terminal window to its former owner, for those situations in which the exit is not automatic (e.g., when su is not used with its -c option). One is to type the word exit and then press the ENTER key. Another is to simultaneously press the CTRL and d keys. How to Switch User Using the "su" Command Nov 10, 2019

Understanding the difference between sudo and su command

linux - How do I log out of `sudo su`? - Super User

exit command in linux is used to exit the shell where it is currently running. It takes one more parameter as 1201 and exits the shell with a return of status N. If n is not provided, then it simply returns the status of last command that is executed. exit n : Using “sudo su” we are going to the root directory and then exit …

Mar 22, 2006 linux - Can't su to user jenkins after installing Jenkins as root, enter su - jenkins. Also, check in /etc/passwd that user jenkins is allowed to logon: there should be something like /bin/bash or /bin/sh, certainly not /bin/false at the end of the line. Hint: You don't use su and sudo at the same time. How to Reset the Root Password in Linux - Make Tech Easier Sep 06, 2018 Linux Commands Tutorial - w3resource Feb 26, 2020