Linux Basic Commands
Linux Basic Commands
Contents
Basic Commands for Linux ................................................................................................................................................ 2
Commands for Setting up System ..................................................................................................................................... 3
Commands for Checking System Information .................................................................................................................. 4
Commands for User & Group Management ..................................................................................................................... 4
Software Package Managing Tools ................................................................................................................................... 5
Run Level in inittab ........................................................................................................................................................... 6
10 Most Dangerous Commands – You Should Never Execute on Linux ........................................................................... 6
Commands
Description
Debian Base Redhat Base
Dpkg –s pkgname Rpm –qi pkgname Check a package is installed or not
dpkg –L pkgname rpm –ql pkgname Check the location of a installed package
apt-get purge pkgname yum –y remove pkgname Uninstall a installed package with config
apt-get upgrade yum upgrade Upgrade all software (version & releases)
2. :(){:|:&};:
4. mv folder /dev/null
6. mkfs.ext3 /dev/sda
7. > file
8. ^foo^bar
9. dd if=/dev/random of=/dev/sda
Source : https://www.tecmint.com/10-most-dangerous-commands-you-should-never-execute-on-linux/