1,su command (su is switch user, which is shorthand for switching users)Format: Su-l USERNAME (-L is login, which is the shorthand for landing, where l can be omitted)If you do not specify username (user name), the default is root, so the command to
1, Su Command function: The role of SU is to change the identity of other users, except for superuser, you need to type the user's password. How to use: Su [-FMP] [-C command] [-s Shell] [--help] [--version] [-] [USER [ARG]] Parameter description:
1. The command for user Switching in the Linux system is SU, and the syntax is:su [-FMP] [-C command] [-s Shell] [--help] [--version] [-] [USER [ARG]]Parameter description-F, –fast: Do not need to read the boot file (such as CSH.CSHRC, etc.), only
We recommend that you use Su-root when you switch users, or you may find that some commands do notFor the difference between Su, Su-and sudo please look down1. Command functionThe role of SU is to change to the identity of other users, except the
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.1. Command functionThe role of SU is to change to the identity of other users, except the superuser, who needs to type the user's password.2.
Linux su commandWe recommend that you use Su-root when you switch users, or you may find that some commands do notFor the difference between Su, Su-and sudo please look down1. Command functionThe role of SU is to change to the identity of other
Linux study notes -- usage and differences of su and sudo commands
Abstract: This article mainly introduces the functions of the su and sudo commands and the differences between them. And usage
I. Differences between the two
Su is used for
In the previous two sections, we introduced the basic knowledge of users and user groups and how to manage users and user groups. Next let's take a look at other user-related commands.Finger tool for viewing user informationChfn tool for changing
Linux Learning notes--su, sudo command usage and differencesSummary: The main features of the SU and sudo commands are described and the difference between the two. And how to use itOne: The difference between the twoSu is used for switching between
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.