Posts

Showing posts from May, 2011

Deadly Commands

Run these commands and you will die mkfs.ext3 /dev/sda will format all data from the device specified after the mkfs command. mv ~ /dev/null will erase everything from your root directory.  Basically /dev/null does not exists and anything written to it is actually discarded from the system. dd if=/dev/random of=/dev/port run this command if you are eager to freeze your Linux system. :(){:|:&};: is a forkbomb command, once you run it, it will let you system freeze and you will have no other way except to have it hard reboot ( Please don’t run this command if you are feeling curiosity, consequences can be bitter ) rsync -r –delete /home/backup such commands has a delete switch  that can be used to destroy parts of the file system. shutdown -h now shuts your system down and you will have to hard reboot it, don’t run this command if you are hosting your servers in any data center or colocation. run shutdown -r now instead. any_command> / dev / sda This command...

RPM

Command Description # rpm -ivh [package.rpm] install a rpm package # rpm -ivh --nodeps [package.rpm] install a rpm package ignoring dependencies requests # rpm -U [package.rpm] upgrade a rpm package without changing configuration files # rpm -F [package.rpm] upgrade a rpm package only if it is already installed   # rpm -e [package] remove a rpm package # rpm -qa show all rpm packages installed on the system # rpm -qa | grep httpd show all rpm packages with the name "httpd" # rpm -qi [package] obtain information on a specific package installed # rpm -qg "System Environment/Daemons" show rpm packages of a group software # rpm -ql [package] show list of files provided by a rpm package installed # rpm -qc [package] show list of configuration files provided by a rpm package installed # rpm -q [package] --w...