What are the options available in su command of UNIX operating system? Some highlight on the features of this su command would also be helpful.
Printable View
What are the options available in su command of UNIX operating system? Some highlight on the features of this su command would also be helpful.
su command is short form of substitute user command. One of the options of su command which is most commonly used is -c option. This option tells su to execute the command that directly follows it on the same line.
For instance
su -c "ls /root"
would display contents of the directory.
One of the main feature of su command is namely su command is usually the simplest and most convenient way to change the ownership of a login session waiting to hear some more feature in this discussion.