Friday, August 21, 2020
Point of no return 5 Linux commands that require extreme caution
Point of no return 5 Linux commands that require extreme caution Make Money Online Queries? Struggling To Get Traffic To Your Blog? Sign Up On (HBB) Forum Now! Point of no return: 5 Linux commands that require extreme caution Updated On 11/05/2019 Author : Ram kumar Topic : Blogging Short URL : https://hbb.me/2kEZ6JE CONNECT WITH HBB ON SOCIAL MEDIA Follow @HellBoundBlog Programmers tend to love Linux. Why wouldnât they? Itâs free, easy to install, you can mess around with almost any aspect of the source code, and Linux commands are as powerful as they are easy to execute. However, as anyone who has ever gotten married knows, sometimes you have to take the bad with the good. In the case of Linux, itâs those powerful and easy to execute commands. When theyâre doing precisely what you want them to do, theyâre great. When theyâre doing anything else, theyâre potentially pretty disastrous. Here are five to be very, very careful with. Fork bomb: the :(){:|:};: command Whether or not you want to sing the words fork bomb fork bomb to the tune of a Tom Jones song is up to you, but consider this your warning that the fork bomb itself is to be avoided. A fork is a Linux system call that starts with an existing process (the parent) and replicates it to form a new process (the child). A fork bomb is when this command is issued recursively, leading to new processes being created until the systemâs CPU and memory have been exhausted, freezing the system as programs are blocked from running, new processes canât be created and keyboard input goes ignored. A fork bomb can certainly be self-inflicted, but itâs worth noting that itâs also a form of denial of service attack. The system freeze can sometimes be undone by a restart, but often a hard reboot is required which makes the loss of data likely. Format hard drive: the mkfs.ext3 /dev/hda command Good as new is a saying that only applies when the âoldâ version of something didnât have years worth of your work on it. Like your hard drive! The above command formats the hard drive so it uses the ext3 filesystem. There are reasons you could actually want to do this, of course; if youâd like a blank slate from which to work. Otherwise, youâre going to be staring in horror at your computer screen if you execute this command. Implode hard drive: the mv / /dev/null command Donât say they didnât warn you with the name of this command. The file /dev/null is used to discard any data written to it, and once itâs been written to that file, itâs gone for good. Obliterated. Vamoose. Thatâs all fine and good when youâve got stuff you actually want to do away with forever and ever, but slip that mv in and the systemâs root directory is doomed to the black hole of Linux. This will make your system unusable, no way around it, so you probably shouldnât ever type that command unless you happen to be a spy in which caseâ¦cool. .IRPP_button , .IRPP_button .postImageUrl , .IRPP_button .centered-text-area { min-height: 86px; position: relative; } .IRPP_button , .IRPP_button:hover , .IRPP_button:visited , .IRPP_button:active { border:0!important; } .IRPP_button { display: block; transition: background-color 250ms; webkit-transition: background-color 250ms; width: 100%; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; background-color: #3498DB; } .IRPP_button:active , .IRPP_button:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .IRPP_button .postImageUrl { background-position: center; background-size: cover; float: right; margin: 0; padding: 0; width: 30%; } .IRPP_button .centered-text-area { float: left; width: 70%; padding:0; margin:0; } .IRPP_button .ctaText { border-bottom: 0 solid #fff; color: inherit; font-size: 13px; font-weight: bold; letter-spacing: .125em; margin: 0; padding: 0; } .IRPP_button .postTitle { color: #ECF0F1; font-size: 16px; fon t-weight: 600; margin: 0; padding: 0; width: 100%; } .IRPP_button .ctaButton { background: #ECF0F1; color: inherit; border: none; border-radius: 3px; box-shadow: none; font-size: 14px; font-weight: bold; line-height: 26px; margin: 18px 14px 18px 14px; moz-border-radius: 3px; padding: 12px 0; text-align: center; text-decoration: none; text-shadow: none; webkit-border-radius: 3px; width: 80px; position: absolute; } .IRPP_button:hover .ctaButton { background: #e6e6e6; } .IRPP_button .centered-text { display: table; height: 86px; padding:0; margin:0; padding-left: 108px!important; top: 0; } .IRPP_button .IRPP_button-content { display: table-cell; margin: 0; padding: 0; padding-right: 10px; position: relative; vertical-align: middle; width: 100%; } .IRPP_button:after { content: "; display: block; clear: both; } READWhat Are Press Releases - Newbies Simple GuideRecursive delete: the rm -rf command One of the quickest ways to delete a folder and its contents is using the recursive delete command, and when you intend to delete a folder and its contents and you type rm -rf exactly, you wonât be anything but pleased with the clean and speedy results. There are variations to the rm -rf command though and if a typo makes its way into the command you are at risk of losing a lot more than a folder and its contents. For instance, rm -rf / will force delete everything in the root directory, rm -rf . will force delete the current folder and subfolders, and rm -rf * will force delete everything in current directory/working directory. Many of todayâs Linux systems will issue a warning if you issue any of the above commands, but until youâre sure yours will, tread lightly. Kernel panic: the cat /dev/port command This command does one thing, and it causes the kernel panic. The kernel panic is when the core operating system, known as the kernel, crashes due to an internal error. Itâs comparable to the dreaded blue screen of death or Sad Mac. The kernel panic is not quickly or easily recovered from, so unless youâre a true expert at conducting your Linux symphony, avoid, avoid and avoid. Playing it safe Linux can be a lot of fun to tinker with, and self-directed exploration and learning is a major reason a lot of people use and love Linux. It can be easy to step outside of your comfort zone though, and while that is one of the ways you get better, itâs also one of the ways you end up with your head in your hands wondering if time travel is actually possible and if you could go back about 15 minutes. At this point, itâs a no-go on the time travel, so being cautious with those Linux commands is still the best strategy.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.