{"id":160,"date":"2024-12-19T07:02:52","date_gmt":"2024-12-19T07:02:52","guid":{"rendered":"https:\/\/techkubo.com\/linux\/?p=160"},"modified":"2025-05-28T18:05:19","modified_gmt":"2025-05-28T18:05:19","slug":"linux-sudo-command","status":"publish","type":"post","link":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/","title":{"rendered":"Linux &#8211; sudo Command"},"content":{"rendered":"\n<p>The <code>sudo<\/code> (short for &#8220;superuser do&#8221;) command allows a permitted user to execute a command as the superuser or another user, as specified by the security policy. This is critical for performing tasks that require higher privileges, such as installing software, modifying system files, or managing user accounts.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Initial Example<\/h2>\n\n\n\n<p>To use <code>sudo<\/code>, simply prefix the command you want to run with <code>sudo<\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo command<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">SUDO Paramaters<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>-A<\/code><\/td><td>Use the <code>askpass<\/code> helper to prompt for the password.<\/td><\/tr><tr><td><code>-b<\/code><\/td><td>Run the command in the background.<\/td><\/tr><tr><td><code>-c class<\/code><\/td><td>Run the command with the specified SELinux security context.<\/td><\/tr><tr><td><code>-H<\/code><\/td><td>Set the HOME environment variable to the home directory of the target user.<\/td><\/tr><tr><td><code>-i<\/code><\/td><td>Start a login shell as the target user.<\/td><\/tr><tr><td><code>-K<\/code><\/td><td>Invalidate the timestamp file, forcing a password prompt the next time <code>sudo<\/code> is run.<\/td><\/tr><tr><td><code>-k<\/code><\/td><td>Invalidate the timestamp file, but do not prompt for a password.<\/td><\/tr><tr><td><code>-l<\/code><\/td><td>List the allowed and forbidden commands for the invoking user.<\/td><\/tr><tr><td><code>-n<\/code><\/td><td>Avoid prompting for a password. If a password is required, the command will fail.<\/td><\/tr><tr><td><code>-p prompt<\/code><\/td><td>Use the specified prompt instead of the default password prompt.<\/td><\/tr><tr><td><code>-S<\/code><\/td><td>Read the password from standard input.<\/td><\/tr><tr><td><code>-s<\/code><\/td><td>Run the shell specified by the SHELL environment variable, or the shell listed in the passwd entry of the target user.<\/td><\/tr><tr><td><code>-u user<\/code><\/td><td>Run the command as the specified user (default is root).<\/td><\/tr><tr><td><code>-v<\/code><\/td><td>Update the user&#8217;s timestamp without running a command.<\/td><\/tr><tr><td><code>--help<\/code><\/td><td>Display help information and exit.<\/td><\/tr><tr><td><code>--preserve-env<\/code><\/td><td>Preserve the current environment when running the command.<\/td><\/tr><tr><td><code>--reset-timestamp<\/code><\/td><td>Reset the user&#8217;s timestamp without running a command.<\/td><\/tr><tr><td><code>--version<\/code><\/td><td>Show version information and exit.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Examples<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">1. Running a Command as Superuser<\/h4>\n\n\n\n<p>To run a command with superuser privileges, prefix it with <code>sudo<\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo apt install package_name<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">2. Editing System Files<\/h4>\n\n\n\n<p>If you need to edit system configuration files, you can use <code>sudo<\/code> with a text editor. For example, to edit the <code>hosts<\/code> file with <code>nano<\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo nano \/etc\/hosts<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">3. Switching to Another User<\/h4>\n\n\n\n<p>You can also use <code>sudo<\/code> to run commands as another user with the <code>-u<\/code> option. For example, to switch to the user <code>john<\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo -u john command<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">4. Managing User Privileges<\/h4>\n\n\n\n<p>To manage user privileges, you&#8217;ll often edit the <code>sudoers<\/code> file. This is typically done with the <code>visudo<\/code> command, which ensures syntax correctness. Open the <code>sudoers<\/code> file with:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo visudo<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">5. Running a Command Without Password<\/h4>\n\n\n\n<p>To run a command without being prompted for a password, add the <code>NOPASSWD<\/code> directive in the <code>sudoers<\/code> file. For example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">username ALL=(ALL) NOPASSWD: \/path\/to\/command<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">6. Setting a Timeout for Password Cache<\/h4>\n\n\n\n<p>By default, <code>sudo<\/code> caches your credentials for a period of time. To change this timeout, edit the <code>sudoers<\/code> file and set the <code>timestamp_timeout<\/code> parameter. For example, to set it to 15 minutes:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">Defaults timestamp_timeout=15<\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">7. Viewing Logs<\/h4>\n\n\n\n<p>To view a record of commands run with <code>sudo<\/code>, check the log file, usually found at <code>\/var\/log\/auth.log<\/code>. Use a command like:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;htmlmixed&quot;,&quot;mime&quot;:&quot;text\/html&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;UNIX&quot;,&quot;language&quot;:&quot;HTML&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;html&quot;}\">sudo tail \/var\/log\/auth.log<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Linux Playground<\/h2>\n\n\n\n<iframe src=\"https:\/\/techkubo.com\/playcloud-linux-static.html\" title=\"Try Linux on TechKubo\" width=\"100%\" height=\"500\"><\/iframe>\n","protected":false},"excerpt":{"rendered":"<p>The sudo (short for &#8220;superuser do&#8221;) command allows a permitted user to execute a command as the superuser or another [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-160","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Linux - sudo Command - Linux Command Tutorial<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux - sudo Command - Linux Command Tutorial\" \/>\n<meta property=\"og:description\" content=\"The sudo (short for &#8220;superuser do&#8221;) command allows a permitted user to execute a command as the superuser or another [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Linux Command Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2024-12-19T07:02:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-28T18:05:19+00:00\" \/>\n<meta name=\"author\" content=\"Manong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Manong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\"},\"author\":{\"name\":\"Manong\",\"@id\":\"https:\/\/techkubo.com\/linux\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\"},\"headline\":\"Linux &#8211; sudo Command\",\"datePublished\":\"2024-12-19T07:02:52+00:00\",\"dateModified\":\"2025-05-28T18:05:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\"},\"wordCount\":416,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/linux\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\",\"url\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\",\"name\":\"Linux - sudo Command - Linux Command Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/techkubo.com\/linux\/#website\"},\"datePublished\":\"2024-12-19T07:02:52+00:00\",\"dateModified\":\"2025-05-28T18:05:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/techkubo.com\/linux\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Linux &#8211; sudo Command\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/techkubo.com\/linux\/#website\",\"url\":\"https:\/\/techkubo.com\/linux\/\",\"name\":\"Linux Command Tutorial\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/techkubo.com\/linux\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/techkubo.com\/linux\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/techkubo.com\/linux\/#organization\",\"name\":\"Linux Command Tutorial\",\"url\":\"https:\/\/techkubo.com\/linux\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/linux\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/techkubo.com\/linux\/wp-content\/uploads\/sites\/8\/2025\/01\/cropped-Techkubo-logo-1.png\",\"contentUrl\":\"https:\/\/techkubo.com\/linux\/wp-content\/uploads\/sites\/8\/2025\/01\/cropped-Techkubo-logo-1.png\",\"width\":1617,\"height\":1184,\"caption\":\"Linux Command Tutorial\"},\"image\":{\"@id\":\"https:\/\/techkubo.com\/linux\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/techkubo.com\/linux\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965\",\"name\":\"Manong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/techkubo.com\/linux\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g\",\"caption\":\"Manong\"},\"sameAs\":[\"https:\/\/techkubo.com\"],\"url\":\"https:\/\/techkubo.com\/linux\/author\/manong\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux - sudo Command - Linux Command Tutorial","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:\/\/techkubo.com\/linux\/linux-sudo-command\/","og_locale":"en_US","og_type":"article","og_title":"Linux - sudo Command - Linux Command Tutorial","og_description":"The sudo (short for &#8220;superuser do&#8221;) command allows a permitted user to execute a command as the superuser or another [&hellip;]","og_url":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/","og_site_name":"Linux Command Tutorial","article_published_time":"2024-12-19T07:02:52+00:00","article_modified_time":"2025-05-28T18:05:19+00:00","author":"Manong","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Manong","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#article","isPartOf":{"@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/"},"author":{"name":"Manong","@id":"https:\/\/techkubo.com\/linux\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965"},"headline":"Linux &#8211; sudo Command","datePublished":"2024-12-19T07:02:52+00:00","dateModified":"2025-05-28T18:05:19+00:00","mainEntityOfPage":{"@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/"},"wordCount":416,"commentCount":0,"publisher":{"@id":"https:\/\/techkubo.com\/linux\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techkubo.com\/linux\/linux-sudo-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/","url":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/","name":"Linux - sudo Command - Linux Command Tutorial","isPartOf":{"@id":"https:\/\/techkubo.com\/linux\/#website"},"datePublished":"2024-12-19T07:02:52+00:00","dateModified":"2025-05-28T18:05:19+00:00","breadcrumb":{"@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techkubo.com\/linux\/linux-sudo-command\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/techkubo.com\/linux\/linux-sudo-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techkubo.com\/linux\/"},{"@type":"ListItem","position":2,"name":"Linux &#8211; sudo Command"}]},{"@type":"WebSite","@id":"https:\/\/techkubo.com\/linux\/#website","url":"https:\/\/techkubo.com\/linux\/","name":"Linux Command Tutorial","description":"","publisher":{"@id":"https:\/\/techkubo.com\/linux\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techkubo.com\/linux\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techkubo.com\/linux\/#organization","name":"Linux Command Tutorial","url":"https:\/\/techkubo.com\/linux\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/linux\/#\/schema\/logo\/image\/","url":"https:\/\/techkubo.com\/linux\/wp-content\/uploads\/sites\/8\/2025\/01\/cropped-Techkubo-logo-1.png","contentUrl":"https:\/\/techkubo.com\/linux\/wp-content\/uploads\/sites\/8\/2025\/01\/cropped-Techkubo-logo-1.png","width":1617,"height":1184,"caption":"Linux Command Tutorial"},"image":{"@id":"https:\/\/techkubo.com\/linux\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/techkubo.com\/linux\/#\/schema\/person\/b4fa2f01fa4ff2a4e98276ce47115965","name":"Manong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techkubo.com\/linux\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/21a7455736c21887b8fefe0935012d65?s=96&d=mm&r=g","caption":"Manong"},"sameAs":["https:\/\/techkubo.com"],"url":"https:\/\/techkubo.com\/linux\/author\/manong\/"}]}},"_links":{"self":[{"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/posts\/160"}],"collection":[{"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/comments?post=160"}],"version-history":[{"count":2,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/posts\/160\/revisions"}],"predecessor-version":[{"id":286,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/posts\/160\/revisions\/286"}],"wp:attachment":[{"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/media?parent=160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/categories?post=160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techkubo.com\/linux\/wp-json\/wp\/v2\/tags?post=160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}