![]() ![]() What is the meaning of the command “ sudo apt-get install“? sudo apt-get install command is used to download the latest version of your desired application from an online software repository pointed to by your sources.list configuration file and and install that application on your Linux machine. Let us see what this command does, how it does that, and the reason you need to do this every time you need to install an app on your Linux computer.įor those of you in a hurry, here is the short version of the answer! The Short Version of the Answer In this article, I have tried to explain what this command means from a beginner’s perspective avoiding unnecessary “technical terms” and I have tried to keep this article concise so that you can get through the entire article in about 10 to 20 mins max! I guess to beginners, it just feels like a magic spell to get something installed! This can be done by logging out and back in again.I was just happy that I was able to type something in the Terminal and that it actually worked and did what I wanted it to do! I did not pay much attention to what I actually typed in. Once this has been given to the user you will need to reload the group permissions. You will need to replace chewett with the user you want to add sudo privileges to. This user is configured by default to have the sudo privilege. This command requires running as root so you will either need to log in as root or use the pi user. This can be achieved running the following command. To allow a user to run sudo on Raspbian OS you can add them to the group sudo group. However if you create a new Linux user on Raspbian you may want to give it sudo access. The default pi user on Raspbian OS will have been given sudo access. This gives both an appropriate level of security and flexibility with running your computer. This means that any commands you need to run as the superuser, you can prefix with sudo but otherwise you run as your user. Once you have finished running your command with sudo it will return to running as your user. Sudo allows you to run a single or multiple commands as the superuser. Since there will always be times you will want to run something with superuser rights sudo can help. If you accidentally run a malicious script then it will have rights to do anything on your computer unhindered. If you run everything as root then anything you run also has these rights. In addition to accidental issues, there are also malicious programs to consider. This could be you purposely (and wrongly) modifying files or a program you run accidentally changing them. ![]() There are a lot of files you will not want to edit or remove as doing so would cause issues for the computer. Running as root will let you change/delete any files on the filesystem. There are a number of reasons for this and the primary one is security. Instead of logging in as the root user and running your commands it is recommended to use sudo. The super user’s username is typically root on Linux machines. ![]() Sudo is a command that lets you run a command as the “Super User”. This blog post describes how you can enable sudo for any user on the Raspberry Pi OS, Raspbian. ![]()
0 Comments
Leave a Reply. |