---
title: "Discussion on \"Cheatsheet & Examples: sudo\" | Hashnode"
description: "Discussion on \"Cheatsheet & Examples: sudo\". The sudo command allows a permitted user to execute a command as the superuser (root) or another user, providing elevated (administrator) privileges.\n\nRun a Command as Root\nExample Usage:\nsudo apt update\nWhat it does:\nRuns the apt update command with..."
url: "https://hashnode.com/posts/cheatsheet-examples-sudo/690942d0a27aaff271e59a42"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cheatsheet & Examples: sudo](https://tech.mrleong.net/cheatsheet-examples-sudo?utm_source=hashnode&utm_medium=feed)

The sudo command allows a permitted user to execute a command as the superuser (root) or another user, providing elevated (administrator) privileges. Run a Command as Root Example Usage: sudo apt update What it does: Runs the apt update command with...

Nov 4, 2025 · 4 min read · tech.mrleong.net  
Updated Nov 19, 2025  
Read the article

-   [#cheatsheet](https://hashnode.com/tag/cheatsheet)
-   [#cli](https://hashnode.com/tag/cli)
-   [#sudo](https://hashnode.com/tag/sudo)

## Written by

[Hong](https://hashnode.com/@hongster)

@hongster · Johor Bahru, Malaysia

  
[View profile](https://hashnode.com/@hongster)

Script Monkey @ Innoractive

I work with Linux in the day, ballroom dancing at night. I use Arch, btw.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
