Science and Tech

Sudo command in Windows, what it is for and what you can do: is it as powerful as in Linux?

The 50 most useful Linux commands you should know

The introduction of sudo in Windows is a significant step toward a more versatile and powerful command-line experience. Its potential is undeniable and promises to open new possibilities for users.

If you are a Linux user, you surely know perfectly well the sudo command, which Allows you to run tasks with administrator privileges. A well-integrated feature that is essential for many users due to its ability to offer full control over the system.

Now, Microsoft has taken a significant step by integrating this command into Windows. Although it is currently only available to users of the Windows 11 Insider program, the news has generated a lot of expectation, since the company is working to integrate its own version of the sudo command natively.

Sudo is short for superuser do and allows you to execute commands as if you were the superuser or system administrator. On Linux, it is an essential tool that speeds up tasks and improves security because it avoids the need to share administrative credentials.

This means that you can perform tasks that would normally be restricted, such as modifying system files, installing software, configuring the firewall or managing users. In short, it allows you to execute commands with elevated privileges, improve security, and speed up administrative tasks with shortcuts.

How does the sudo command work in Windows?

It is important to mention that the arrival of sudo to Windows does not add completely new capabilities, since Windows already has its own sudo system. User account control (UAC) and commands as runes for administrative tasks.

However, Sudo in Windows allows you to perform actions as another user without having to log in to the account. Additionally, it provides a more secure way to grant elevated access to users without providing them with administrator credentials.

The tool follows the same principles as in Linux. To use it, simply type sudo before the command you want to run with administrator privileges. For example, to install a program from the console, you would type: sudo winget install .

How does the sudo command work in Windows?

Howtogeek

Of course, for this to work, you will need to have the feature enabled in Windows settings and have authenticated as an administrator, otherwise you will not be able to use it or take full advantage of it.

Now, to use sudo on this operating system, you need to be enrolled in the Windows Insider program. If you are already part, open the Settingnavigate to the option For programmers and slide the switch to activate the function.

Although the version of sudo on windows is still in development, it seems that Microsoft is betting on a complete implementation that is faithful to the spirit of the command. This means that, in theory, you should be able to perform the same tasks as on Linux, as long as the operating system allows it.

However, it must be taken into account that Windows and Linux are very different operating systems, with different architectures and philosophies. So there may be some differences in how sudo behaves on each platform.

The magic command that leaves Windows 10 like the first day without losing a single file

Microsoft has made it clear that Sudo is a long-term bet. The company is working to integrate the command into PowerShell, its powerful command-line shell, and to add new functionality to make it even more useful.

Although it is still in development, Sudo on Windows promises to improve the efficiency and security of administrative tasks. While it is not as advanced or deeply integrated as in Linux, it is a significant advance for all users working with this operating system.

Known how we work on Computertoday.

Tags: Windows 11, Linux

Source link

About the author

Redaction TLN

Add Comment

Click here to post a comment