{
    "url": "https://delaparra-services.nl/knowledge-hub/sudo",
    "locale": "en",
    "title": "sudo: Knowledge hub | DeLaParra Services",
    "description": "SuperUser Do — Run a command as the root (administrator) user.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/sudo",
        "nl": "https://delaparra-services.nl/nl/kennisbank/sudo"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/sudo.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/sudo.md",
        "json": "https://delaparra-services.nl/knowledge-hub/sudo.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/sudo.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/sudo.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo.csv",
            "encodingFormat": "text/csv",
            "name": "sudo.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo.json",
            "encodingFormat": "application/json",
            "name": "sudo.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo.md",
            "encodingFormat": "text/markdown",
            "name": "sudo.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo.pdf",
            "encodingFormat": "application/pdf",
            "name": "sudo.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo.zip",
            "encodingFormat": "application/zip",
            "name": "sudo.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/sudo/skills.zip",
            "encodingFormat": "application/zip",
            "name": "sudo-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [sudo](<https://delaparra-services.nl/knowledge-hub/sudo>)\n\n  \n\nCategory: CLI commands \n\n# sudo\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is sudo?\n\n \n\nsudo: SuperUser Do — Run a command as the root (administrator) user. ` sudo ` runs a single command with administrator, or root, rights: ` sudo apt update ` or ` sudo systemctl restart nginx `. It asks for your own password, not the root password, and logs what was run. It lets normal users do administrative tasks without logging in as root, which keeps an audit trail and limits mistakes to the commands that really need the extra rights.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about sudo\n\n  \n\n### What should you keep in mind with sudo?\n\n \n\nUse it deliberately. ` sudo ` in front of a wrong command can damage the whole system, so double-check paths, especially with ` rm `, ` chmod ` and ` chown `. Do not run your application as root; create a dedicated user for it. And avoid ` sudo ` for package managers like Composer and npm in your projects, which causes file permission problems and can run untrusted install scripts with root rights.\n\n \n\n## At a glance\n\n   CategoryCLI commands Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More CLI commands terms\n\n \n\n- [scp](<https://delaparra-services.nl/knowledge-hub/scp>) \n- [source](<https://delaparra-services.nl/knowledge-hub/source>) \n- [ssh](<https://delaparra-services.nl/knowledge-hub/ssh>) \n- [tail](<https://delaparra-services.nl/knowledge-hub/tail>) \n- [tar](<https://delaparra-services.nl/knowledge-hub/tar>) \n- [top / htop](<https://delaparra-services.nl/knowledge-hub/top-htop>)\n\n \n\n[All terms starting with S](<https://delaparra-services.nl/knowledge-hub#letter-s>)\n\n \n\n## Skills\n\n \n\n- ### CLI flag safety\n\n \n\nUse before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.\n\n [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) \n- ### Bash Defensive Patterns\n\n \n\nMaster defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring fault tolerance and safety.\n\n [View skill](<https://delaparra-services.nl/skills/bash-defensive-patterns>) [Download zip](<https://delaparra-services.nl/skills/bash-defensive-patterns/download>) \n- ### Docker Destructive Command Guardrails\n\n \n\nUse this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to \"clean up\", \"clear the cache\", \"start fresh\", \"wipe everything\", \"nuke it\", \"reset\", \"force remove\", or \"tear down\" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — \\`docker rm\\`,\n\n [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/sudo/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) \n- [The terminal and PowerShell](<https://delaparra-services.nl/manuals/de-terminal-en-powershell>)\n\n \n\n## Related services\n\n \n\n- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)\n\nIf you want to use a coding agent, we provide all the infrastructure to help it work efficiently.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/sudo)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/sudo#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/sudo",
                "name": "sudo: Knowledge hub | DeLaParra Services",
                "description": "SuperUser Do — Run a command as the root (administrator) user.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/sudo#term",
                    "name": "sudo",
                    "description": "SuperUser Do — Run a command as the root (administrator) user.",
                    "termCode": "sudo",
                    "url": "https://delaparra-services.nl/knowledge-hub/sudo",
                    "inLanguage": "en",
                    "keywords": "CLI commands",
                    "dateModified": "2026-11-25T17:46:30+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/sudo#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/sudo#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/sudo#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is sudo?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "SuperUser Do — Run a command as the root (administrator) user. sudo runs a single command with administrator, or root, rights: sudo apt update or sudo systemctl restart nginx. It asks for your own password, not the root password, and logs what was run. It lets normal users do administrative tasks without logging in as root, which keeps an audit trail and limits mistakes to the commands that really need the extra rights."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with sudo?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Use it deliberately. sudo in front of a wrong command can damage the whole system, so double-check paths, especially with rm, chmod and chown. Do not run your application as root; create a dedicated user for it. And avoid sudo for package managers like Composer and npm in your projects, which causes file permission problems and can run untrusted install scripts with root rights."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/cli-flag-safety#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/bash-defensive-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-destructive-guardrails#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/de-terminal-en-powershell#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/sudo#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "sudo"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/sudo#dataset",
                "name": "sudo",
                "description": "SuperUser Do — Run a command as the root (administrator) user.",
                "url": "https://delaparra-services.nl/knowledge-hub/sudo",
                "identifier": "https://delaparra-services.nl/knowledge-hub/sudo#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/sudo#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "CLI commands",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:30+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "sudo.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sudo.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sudo.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sudo.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sudo.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "sudo-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/sudo/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:30+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}