Windows 11 now has sudo, and it’s safer


If you’ve ever accidentally entered the wrong command in Command Prompt or PowerShell you aren’t alone—everyone does it eventually. Fortunately, one of Linux’s best safeguards is now available for the Windows Terminal.

Sudo is a vital part of Linux’s safety net

What is sudo?

Windows laptop with the Command Prompt open displaying a 'sudo' command. Credit: Lucas Gouveia / Jason Fitzpatrick / How-To Geek

Sudo, which is short for superuser do, or substitute user do, is a feature typically found on Linux systems like Ubuntu or Fedora.

Sudo allows you to run a single command with administrative privileges without actually needing to log in to the root (administrator) account.

linux laptop


What Is “root” on Linux?

The Linux root user can do whatever they choose, period. And that’s a huge double-edged sword.

Despite how minor that seems, it is an important security feature. Sudo puts up a small wall that prevents you from doing something destructive by accident.

Consider the case where you’re following old instructions online. You’re going step by step with your normal user account, then suddenly a command doesn’t run correctly because it requires sudo. Immediately, that forces you to stop and consider carefully what the command is actually doing. Is it acting on a protected file? Is it trying to change services related to security? Why exactly does this command need root privileges?

You also have to enter your sudo password to install applications, which ensures you won’t unknowingly run something malicious.

It encourages a more deliberate approach to invoking root—or administrative—privileges in a way that Run as Administrator on Windows doesn’t

Run as administrator isn’t as safe as sudo

All-or-nothing admin privileges aren’t good

Run as admin option in context menu

Sometimes you need administrative privileges to run something on Windows, just like on Linux. When that happens, you have two options: Log directly into the administrator account or launch Terminal as Administrator.

Most of the time, you right-click then select Run as Administrator. However, while it bears a superficial similarity to how sudo works, it is different in practice.

Once you launch a Terminal is administrator, everything you do within it will be run as administrator. Want to delete something you shouldn’t? Go right ahead. Enter a command without considering the security implications? Sounds good—go right ahead.

It is an all-or-nothing approach that unnecessarily creates the potential for a command to go badly amiss. Sudo, on the other hand, forces you to type sudo every single time you want to use it. So long as you’re not carelessly copy-pasting from the internet, it serves as a constant reminder that the command you’re about to enter has no safeguards.

Using your PC directly from the administrator account is bad practice, and you shouldn’t do it under normal circumstances. The account is disabled by default; I’d recommend you leave it that way.

Sudo makes using the command-line interface in Windows easier

Switching to admin or logging into another account is a drag

Above and beyond the added security and safety benefits, sudo is also just plain convenient in a way that run as administrator isn’t.

Under normal circumstances, regardless of the operating system you’re using, you don’t want to run every single command as administrator. That’s why you don’t normally log into the administrator account on Windows or into Root on Linux.

You should be running everything you can on Windows in a non-administrator terminal, and then only invoke administrative privileges when you actually need them. Unfortunately, because of the way Windows works, that means you need to switch back and forth between two different Terminal windows.

On the other hand, sudo allows you to just invoke administrative privileges on the fly, only as you need them.

It isn’t the biggest convenience feature in the world, but once you get used to it, its absence on Windows is extremely noticeable.

Installing Sudo on Windows

Bringing the best Linux feature to Windows

Fortunately, Microsoft has introduced the sudo command, in all its glory, to Windows 11. To enable it, press Windows+i to open the Settings app.

From there, navigate to System > Advanced, then click the toggle next to Enable Sudo. I’d also recommend that you change how it runs from In a new window to Inline, which is how it behaves normally on Linux.


Small quality of life updates matter

Sudo isn’t a necessary or game-changing feature, but it one thing that Linux unequivocally does better than Windows. If you spend any amount of time working with Windows via the command-line, it is a very welcome improvement.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Google Maps has a long list of hidden (and sometimes, just underrated) features that help you navigate seamlessly. But I was not a big fan of using Google Maps for walking: that is, until I started using the right set of features that helped me navigate better.

Add layers to your map

See more information on the screen

Layers are an incredibly useful yet underrated feature that can be utilized for all modes of transport. These help add more details to your map beyond the default view, so you can plan your journey better.

To use layers, open your Google Maps app (Android, iPhone). Tap the layer icon on the upper right side (under your profile picture and nearby attractions options). You can switch your map type from default to satellite or terrain, and overlay your map with details, such as traffic, transit, biking, street view (perfect for walking), and 3D (Android)/raised buildings (iPhone) (for buildings). To turn off map details, go back to Layers and tap again on the details you want to disable.

In particular, adding a street view and 3D/raised buildings layer can help you gauge the terrain and get more information about the landscape, so you can avoid tricky paths and discover shortcuts.

Set up Live View

Just hold up your phone

A feature that can help you set out on walks with good navigation is Google Maps’ Live View. This lets you use augmented reality (AR) technology to see real-time navigation: beyond the directions you see on your map, you are able to see directions in your live view through your camera, overlaying instructions with your real view. This feature is very useful for travel and new areas, since it gives you navigational insights for walking that go beyond a 2D map.

To use Live View, search for a location on Google Maps, then tap “Directions.” Once the route appears, tap “Walk,” then tap “Live View” in the navigation options. You will be prompted to point your camera at things like buildings, stores, and signs around you, so Google Maps can analyze your surroundings and give you accurate directions.

Download maps offline

Google Maps without an internet connection

Whether you’re on a hiking trip in a low-connectivity area or want offline maps for your favorite walking destinations, having specific map routes downloaded can be a great help. Google Maps lets you download maps to your device while you’re connected to Wi-Fi or mobile data, and use them when your device is offline.

For Android, open Google Maps and search for a specific place or location. In the placesheet, swipe right, then tap More > Download offline map > Download. For iPhone, search for a location on Google Maps, then, at the bottom of your screen, tap the name or address of the place. Tap More > Download offline map > Download.

After you download an area, use Google Maps as you normally would. If you go offline, your offline maps will guide you to your destination as long as the entire route is within the offline map.

Enable Detailed Voice Guidance

Get better instructions

Voice guidance is a basic yet powerful navigation tool that can come in handy during walks in unfamiliar locations and can be used to ensure your journey is on the right path. To ensure guidance audio is enabled, go to your Google Maps profile (upper right corner), then tap Settings > Navigation > Sound and Voice. Here, tap “Unmute” on “Guidance Audio.”

Apart from this, you can also use Google Assistant to help you along your journey, asking questions about your destination, nearby sights, detours, additional stops, etc. To use this feature on iPhone, map a walking route to a destination, then tap the mic icon in the upper-right corner. For Android, you can also say “Hey Google” after mapping your destination to activate the assistant.

Voice guidance is handy for both new and old places, like when you’re running errands and need to navigate hands-free.

Add multiple stops

Keep your trip going

If you walk regularly to run errands, Google Maps has a simple yet effective feature that can help you plan your route in a better way. With Maps’ multiple stop feature, you can add several stops between your current and final destination to minimize any wasted time and unnecessary detours.

To add multiple stops on Google Maps, search for a destination, then tap “Directions.” Select the walking option, then click the three dots on top (next to “Your Location”), and tap “Edit Stops.” You can now add a stop by searching for it and tapping “Add Stop,” and swap the stops at your convenience. Repeat this process by tapping “Add Stops” until your route is complete, then tap “Start” to begin your journey.

You can add up to ten stops in a single route on both mobile and desktop, and use the journey for multiple modes (walking, driving, and cycling) except public transport and flights. I find this Google Maps feature to be an essential tool for travel to walkable cities, especially when I’m planning a route I am unfamiliar with.


More to discover

A new feature to keep an eye out for, especially if you use Google Maps for walking and cycling, is Google’s Gemini boost, which will allow you to navigate hands-free and get real-time information about your journey. This feature has been rolling out for both Android and iOS users.



Source link