{"id":359,"date":"2010-08-13T05:48:03","date_gmt":"2010-08-13T11:48:03","guid":{"rendered":"http:\/\/blog.supportpro.com\/2010\/08\/hide-the-commands-in-shell\/"},"modified":"2026-06-22T00:05:38","modified_gmt":"2026-06-22T06:05:38","slug":"hide-the-commands-in-shell","status":"publish","type":"post","link":"https:\/\/www.supportpro.com\/blog\/hide-the-commands-in-shell\/","title":{"rendered":"How to Hide Commands in the Linux Shell"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"359\" class=\"elementor elementor-359\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"penci-section penci-disSticky penci-structure-10 elementor-section elementor-top-section elementor-element elementor-element-385751bb elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"385751bb\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"penci-ercol-100 penci-ercol-order-1 penci-sticky-ct    elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5ec2c042\" data-id=\"5ec2c042\" data-element_type=\"column\">\n\t\t\t<div class=\"theiaStickySidebar elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-45750822 elementor-widget elementor-widget-text-editor\" data-id=\"45750822\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.6.5 - 27-04-2022 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#818a91;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#818a91;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<h1>Introduction<\/h1><p class=\"isSelectedEnd\">When working on a Linux server, there may be situations where you do not want commands typed into the terminal to be displayed on the screen. This can be useful when entering sensitive information, demonstrating commands in a shared environment, or performing administrative tasks where command visibility should be minimized.<\/p><p>Linux provides a simple way to temporarily disable command echoing using the <code dir=\"ltr\">stty<\/code> command. In this article, we&#8217;ll explain how to hide commands entered in the shell and how to restore normal terminal behavior afterward.<\/p><h2>Hiding Commands in the Shell<\/h2><p>You can hide the commands entering in the shell by using stty command<br \/>stty -echo<br \/>Now all the commands that you type will be invisible. To disable this, you can use the command<br \/>stty echo<\/p><h2>Conclusion<\/h2><p>The <code dir=\"ltr\">stty -echo<\/code> command provides a quick and simple way to hide commands and user input in a Linux shell. Whether you&#8217;re entering sensitive information or performing administrative tasks, this feature can help improve privacy during terminal sessions. When finished, simply run <code dir=\"ltr\">stty echo<\/code> to restore normal command visibility.<\/p><p>\u00a0<\/p><p>If you require help, <a href=\"https:\/\/www.supportpro.com\/requestquote.php\">contact SupportPRO Server Admin<\/a><\/p><p>Partner with\u00a0SupportPRO\u00a0for 24\/7 proactive cloud support that keeps your business secure, scalable, and ahead of the curve.<\/p><p><!--HubSpot Call-to-Action Code --><!-- [if lte IE 8]><![endif]--><a href=\"https:\/\/cta-redirect.hubspot.com\/cta\/redirect\/2725694\/3350a795-db50-482f-9911-301930d1b1be\"><img id=\"hs-cta-img-3350a795-db50-482f-9911-301930d1b1be\" style=\"border-width: 0px;\" src=\"https:\/\/no-cache.hubspot.com\/cta\/default\/2725694\/3350a795-db50-482f-9911-301930d1b1be.png\" alt=\"Contact Us today!\" \/><\/a><!-- end HubSpot Call-to-Action Code --><br \/><img src=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png\" sizes=\"(max-width: 904px) 100vw, 904px\" srcset=\"https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup.png 904w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-291x300.png 291w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-768x791.png 768w, https:\/\/www.supportpro.com\/blog\/wp-content\/uploads\/2022\/09\/Free-server-checkup-585x602.png 585w\" alt=\"guy server checkup\" width=\"904\" height=\"931\" \/><\/p><p><!-- wp:paragraph --><\/p><p><!-- \/wp:paragraph --><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Introduction When working on a Linux server, there may be situations where you do not want commands typed into the terminal to be displayed on the screen. This can be&hellip;<\/p>\n","protected":false},"author":4,"featured_media":17604,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"","_lmt_disable":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/359"}],"collection":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":9,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":17605,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/posts\/359\/revisions\/17605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media\/17604"}],"wp:attachment":[{"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.supportpro.com\/blog\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}