In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what su instructions can be used in the linux system. I hope you will learn a lot after reading this article. Let's discuss it together.
What is the function of su instruction in linux system?
1. Command function
The function of the su instruction in the linux system is to change to the identity of another user, except for the superuser, who needs to type the user's password.
two。 Mode of use
Su [- fmp] [- c command] [- s shell] [--help] [--version] [-] [USER [ARG]]
3. Parameter description
-f,-fast: no need to read startup files (such as csh.cshrc, etc.), only for csh or tcsh Shell.
-l,-login: after adding this parameter, it is like logging back in. Most of the environment variables (such as HOME, SHELL, USER, etc.) are based on the USER, and
And the working directory will change. If USER is not specified, the default is root.
-m,-p,-preserve-environment: the environment variable is not changed when su is executed.
-c command: the user whose account number is changed to USER, and then change back to the original user after executing the command.
-help display instruction file
-version displays version information
USER: the user account to be changed
ARG: pass in a new Shell parameter.
After reading this article, I believe you have a certain understanding of what su instructions can be used in the linux system. If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.