{"id":14789,"date":"2025-08-30T00:49:32","date_gmt":"2025-08-30T00:49:32","guid":{"rendered":"https:\/\/docs.dasharabia.com\/?docs=ubuntu\/accessing-the-ubuntu-terminal\/understanding-sudo-administrator-access"},"modified":"2025-08-30T17:37:26","modified_gmt":"2025-08-30T17:37:26","slug":"understanding-sudo-administrator-access","status":"publish","type":"docs","link":"https:\/\/docs.dasharabia.com\/?docs=ubuntu\/accessing-the-ubuntu-terminal\/understanding-sudo-administrator-access","title":{"rendered":"Understanding sudo (Administrator Access)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <code><strong>sudo<\/strong><\/code> command lets you perform administrative tasks. Ubuntu will ask for your password before executing <em>sudo<\/em> commands:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">bash<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo apt update        <em># Update package lists (requires admin rights)<\/em>\nsudo nano \/etc\/hosts   <em># Edit system-wide configuration file<\/em><\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"><strong>Important:<\/strong> Only use sudo when necessary, and be extra careful with sudo commands as they can affect system-wide settings.<\/mark><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The sudo command lets you perform administrative tasks. Ubuntu will ask for your password before executing sudo commands: bash Important: Only use sudo when necessary, and be extra careful with sudo commands as they can affect system-wide settings.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":14778,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-14789","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/14789","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14789"}],"version-history":[{"count":2,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/14789\/revisions"}],"predecessor-version":[{"id":14792,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/14789\/revisions\/14792"}],"up":[{"embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=\/wp\/v2\/docs\/14778"}],"wp:attachment":[{"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14789"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.dasharabia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=14789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}