Not To Use Linux Commands
Not To Use Linux Commands
rm -rf Command
The rm -rf command is one of the fastest way to delete a folder and its contents.
But a little typo or ignorance may result into unrecoverable system damage. The
some of options used with rm command are.
2. :(){:|:&};: Command
The above is actually a fork bomb. It operates by defining a function called :,
which calls itself twice, once in the foreground and once in the background. It
keeps on executing again and again till the system freezes.
:(){:|:&};:
3. command > /dev/sda
The above command writes the output of command on the block /dev/sda. The above
command writes raw data and all the files on the block will be replaced with raw
data, thus resulting in total loss of data on the block.
4. mv folder /dev/null
The above command will move folder to /dev/null. In Linux /dev/null or null
device is a special file that discards all the data written to it and reports that
write operation succeed.
# mv /home/user/* /dev/null
The above command will move all the contents of a User directory to /dev/null,
which literally means everything there was sent to blackhole (null).
Note: You should be very much aware of the source from where you are downloading
packages and scripts. Only use those scripts/applications which is downloaded from
a trusted source.
6. mkfs.ext3 /dev/sda
The above command will format the block sda and you would surely be knowing that
after execution of the above command your Block (Hard Disk Drive) would be new,
BRAND NEW! Without any data, leaving your system into unrecoverable stage.
7. > file
The above command is used to flush the content of file. If the above command is
executed with a typo or ignorance like > xt.conf will write the configuration
file or any other system or configuration file.
8. ^foo^bar
This command, as described in our 10 Lesser Known Linux Commands, is used to edit
the previous run command without the need of retyping the whole command again. But
this can really be troublesome if you didnt took the risk of thoroughly checking
the change in original command using ^foo^bar command.
9. dd if=/dev/random of=/dev/sda
The above command will wipe out the block sda and write random junk data to the
block. Of-course! Your system would be left at inconsistent and unrecoverable
stage.
This command here shows that the threat may be hidden and not normally detectable
sometimes. You must be aware of what you are doing and what would be the result.
Dont compile/run codes from an unknown source.