{"id":254,"date":"2020-08-17T23:00:13","date_gmt":"2020-08-17T23:00:13","guid":{"rendered":"https:\/\/truxgoservers.com\/blog\/?p=254"},"modified":"2020-08-17T23:08:26","modified_gmt":"2020-08-17T23:08:26","slug":"what-it-is-the-sudo-command-and-what-is-it-for","status":"publish","type":"post","link":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/","title":{"rendered":"What it is the SUDO command and what is it for?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">What  is SUDO?<\/h2>\n\n\n\n<p>The &#8220;SUDO&#8221; command is used so that with your ordinary user, that is, with normal user privileges and permissions (non-administrator), you can execute certain commands restricted to other users, usually restricted to the &#8220;superuser&#8221; or system administrator , usually the &#8220;root&#8221; account, but without accessing the system with that account. This command in modern versions works to replace the permissions of any user, not just &#8220;root&#8221;<\/p>\n\n\n\n<p>To make use of sudo, the superuser must first grant you that permission, adding your user account or username in the list of &#8220;sudoers&#8221;, generally configured in the file (or file) \/ etc \/ sudoers<\/p>\n\n\n\n<p>In other words, sudo is a program that based on a control list (\/ etc \/ sudoers) allows (or not) the execution of the user who invoked it on a certain program owned by another user, generally the system administrator &#8216;root&#8217; <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to use it?<\/h2>\n\n\n\n<p>Sudo is run by a normal user, who is supposed to have permissions to execute a certain command. So sudo requires users to authenticate themselves via their password to allow them to execute the command.<\/p>\n\n\n\n<p>Example: <\/p>\n\n\n\n<p>$  <em><strong>sudo \/ sbin \/ ifconfig<\/strong><\/em>                                                                            <br><strong>Password:                                                                                                          <\/strong><br><strong>eth0           Link encap: Ethernet HWaddr 4C: 00: 10: 60: 5F: 21                        <\/strong><br>                    <strong>inet addr: 200.13.110.62 Bcast: 200.13.110.255 Mask: 255.255.255.0        <\/strong><br>                    <strong>inet6 addr: fe80 :: 4e00: 10ff: fe60: 5f21 \/ 64 Scope: Link<\/strong><\/p>\n\n\n\n<p>By default, after doing the above, you will have 5 minutes to use the same command or others to which you are entitled, without having to enter the password again.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is SUDO? The &#8220;SUDO&#8221; command is used so that with your ordinary user, that is, with normal user privileges and permissions (non-administrator), you can execute certain commands restricted to other users, usually restricted to the &#8220;superuser&#8221; or system administrator , usually the &#8220;root&#8221; account, but without accessing the system with that account. This command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,1],"tags":[39,27,60],"class_list":["post-254","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-tutorial","tag-guide","tag-linux","tag-sudo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What it is the SUDO command and what is it for? - Truxgo Server Blog<\/title>\n<meta name=\"description\" content=\"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/\" \/>\n<meta property=\"og:locale\" content=\"es_MX\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What it is the SUDO command and what is it for? - Truxgo Server Blog\" \/>\n<meta property=\"og:description\" content=\"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/\" \/>\n<meta property=\"og:site_name\" content=\"Truxgo Server Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-17T23:00:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-17T23:08:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png\" \/>\n\t<meta property=\"og:image:width\" content=\"722\" \/>\n\t<meta property=\"og:image:height\" content=\"377\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Truxgo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Truxgo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuto\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/\"},\"author\":{\"name\":\"Truxgo\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\"},\"headline\":\"What it is the SUDO command and what is it for?\",\"datePublished\":\"2020-08-17T23:00:13+00:00\",\"dateModified\":\"2020-08-17T23:08:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/\"},\"wordCount\":244,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/SUDO.png\",\"keywords\":[\"Guide\",\"Linux\",\"SUDO\"],\"articleSection\":[\"Linux\",\"Tutorial\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/\",\"name\":\"What it is the SUDO command and what is it for? - Truxgo Server Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/SUDO.png\",\"datePublished\":\"2020-08-17T23:00:13+00:00\",\"dateModified\":\"2020-08-17T23:08:26+00:00\",\"description\":\"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/SUDO.png\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/SUDO.png\",\"width\":722,\"height\":377},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/what-it-is-the-sudo-command-and-what-is-it-for\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What it is the SUDO command and what is it for?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"name\":\"Truxgo Server Blog\",\"description\":\"Cloud Server and Hosting Tutorials.\",\"publisher\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#organization\",\"name\":\"Truxgo Server Blog\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"contentUrl\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/cropped-truxgo-logo-blanco.png\",\"width\":1250,\"height\":278,\"caption\":\"Truxgo Server Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/#\\\/schema\\\/person\\\/8b409c26449db6aa09724b45331e333e\",\"name\":\"Truxgo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g\",\"caption\":\"Truxgo\"},\"sameAs\":[\"https:\\\/\\\/truxgoservers.com\\\/blog\"],\"url\":\"https:\\\/\\\/truxgoservers.com\\\/blog\\\/author\\\/truxgo\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What it is the SUDO command and what is it for? - Truxgo Server Blog","description":"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/","og_locale":"es_MX","og_type":"article","og_title":"What it is the SUDO command and what is it for? - Truxgo Server Blog","og_description":"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.","og_url":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/","og_site_name":"Truxgo Server Blog","article_published_time":"2020-08-17T23:00:13+00:00","article_modified_time":"2020-08-17T23:08:26+00:00","og_image":[{"width":722,"height":377,"url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png","type":"image\/png"}],"author":"Truxgo","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Truxgo","Tiempo de lectura":"1 minuto"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#article","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/"},"author":{"name":"Truxgo","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e"},"headline":"What it is the SUDO command and what is it for?","datePublished":"2020-08-17T23:00:13+00:00","dateModified":"2020-08-17T23:08:26+00:00","mainEntityOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/"},"wordCount":244,"commentCount":0,"publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png","keywords":["Guide","Linux","SUDO"],"articleSection":["Linux","Tutorial"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/","url":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/","name":"What it is the SUDO command and what is it for? - Truxgo Server Blog","isPartOf":{"@id":"https:\/\/truxgoservers.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#primaryimage"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#primaryimage"},"thumbnailUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png","datePublished":"2020-08-17T23:00:13+00:00","dateModified":"2020-08-17T23:08:26+00:00","description":"Guide about the SUDO command, what it is and how this command helps us in Linux, easy and fast guide about SUDO command on Linux.","breadcrumb":{"@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#primaryimage","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/SUDO.png","width":722,"height":377},{"@type":"BreadcrumbList","@id":"https:\/\/truxgoservers.com\/blog\/what-it-is-the-sudo-command-and-what-is-it-for\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truxgoservers.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What it is the SUDO command and what is it for?"}]},{"@type":"WebSite","@id":"https:\/\/truxgoservers.com\/blog\/#website","url":"https:\/\/truxgoservers.com\/blog\/","name":"Truxgo Server Blog","description":"Cloud Server and Hosting Tutorials.","publisher":{"@id":"https:\/\/truxgoservers.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truxgoservers.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/truxgoservers.com\/blog\/#organization","name":"Truxgo Server Blog","url":"https:\/\/truxgoservers.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","contentUrl":"https:\/\/truxgoservers.com\/blog\/wp-content\/uploads\/2020\/08\/cropped-truxgo-logo-blanco.png","width":1250,"height":278,"caption":"Truxgo Server Blog"},"image":{"@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/truxgoservers.com\/blog\/#\/schema\/person\/8b409c26449db6aa09724b45331e333e","name":"Truxgo","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52691a61c58e68677ed4860007c1bb03b14eabe7350747ab3fad3e17825b4b96?s=96&d=mm&r=g","caption":"Truxgo"},"sameAs":["https:\/\/truxgoservers.com\/blog"],"url":"https:\/\/truxgoservers.com\/blog\/author\/truxgo\/"}]}},"_links":{"self":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/254","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/comments?post=254"}],"version-history":[{"count":3,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions"}],"predecessor-version":[{"id":264,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/posts\/254\/revisions\/264"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media\/261"}],"wp:attachment":[{"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/media?parent=254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/categories?post=254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/truxgoservers.com\/blog\/wp-json\/wp\/v2\/tags?post=254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}