In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
How to quickly run the Linux command with administrator authority, many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can get something.
We know that some Linux commands can only be run with sudo permissions, which requires us to add a sudo in front of each time we use these commands, which is very tedious. Today, I'd like to introduce you to a useful tool, SUDO, which only requires us to type the Linux command in uppercase letters, and then it will automatically run with sudo privileges, isn't it?
Install SUDO
First, download the SUDO source code using the Git clone command.
$git clone https://github.com/jthistle/SUDO.git
The above command automatically clones the contents of the SUDO Git repository and saves them in a directory named SUDO under the current path.
Cloning into 'SUDO'...remote: Enumerating objects: 42, done.remote: Counting objects: 100% (42), done.remote: Compressing objects: 100% (29), done.remote: Total 42 (delta 17), reused 30 (delta 12), pack-reused 0Unpacking objects: 100% (42), done.
Then, we change to the SUDO directory.
$cd SUDO/
Then use the following command to install the SUDU tool.
$. / install.sh
The above command adds the following information to the ~ / .bashrc file.
[...] # SUDO-shout at bash to su commands# Distributed under GNU GPLv2, @ jthistle on githubshopt-s expand_aliasesIFS_=$ {IFS} IFS= ":" read-ra PATHS
To prevent unexpected conditions, it also automatically backs up ~. Bashrc and saves it as ~. Bashrc.old so that it can be restored in the event of an accident.
Finally, use the following command to take effect the changes to the ~ / .bashrc file.
$source ~ / .bashrc
Enter the command in uppercase letters to run as the sudo user
Generally speaking, when creating a directory under the root directory, we need to use sudo before the command, as follows:
$sudo mkdir / test_dir
After installing SUDO, we can achieve the same effect directly in uppercase for commands that need to use sudo.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.