So i collected some of them with examples, since its not exact list by any means but should give a jumpstart on some of the common Linux + CentOS commands.
//Common used phrase "yum" means:'Yellowdog Updater Modified'. //List of updated software (security fix): '#yum list updates' //See Installed Packages: '#yum list installed' //Check installed module/package's version: '#<Package Name> -v' Example: To check installed mysql version:'#mysql -v' //Switch User: '#su -' OR '#su - <user Name>' OR '#su root' //To become the root user: '#su - root' //If username not mentioned so byDefault root user is assumed, //In-such case command shortened to: '#su -' or '#su' //Search for any Installed Package: '#yum list <package-name>' Example: '#yum list php' - show info for php package. //Get Full package info of Installed Package: '#yum info <PackageName>' Example: '#yum info php - show full ver. of php package. //Grep command: Search command '#grep <switch> <Search Name>' //Grep With custom Switch: '# rpm -qa | grep php' - Pipe | used for transfer output of rpm command to grep command. //RPM(Redhat Package Manager): Installs already configured and compiled software on system/server. //Search Any Package on Mirrors / Repository: '#yum search <Package Name>' Example: '#yum search bcmath' - Search All bcmath Package available on Mirrors / Repository. //Install Package: '#yum install <Package Name>' Example: '#yum install php-bcmath' - Install php-bcmath package/module. //Remove package: '# yum remove <PackageName>' Example: '#yum remove mysql' - Will remove mysql package. //Connect Via SSH: '#ssh <USER><HOST>' Example: '#ssh [email protected]' //List Command: '#ls' - List all files & folders on current working directory. Example: '#ls -al' - Show all files include hidden ones, with all attributes associate with. //Present Working Directory: '#pwd' - Show Current working directory. Example: '#pwd' - w'll output like : /Users/Chandan-Bora/desktop //Manual Pages: '#man <Command Name>' - Show MANUAL for specific command. Example: '#man ls' Output will like: NAME ls -- list directory contents SYNOPSIS ls [[email protected]] [file ...] //Copy File: '#cp <Source File with Path> <Destination File with Path>' Example: '#cp home/Chandan-Bora/Desktop/info.php var/www/html/' - Copy "info.php" from desktop to 'www folder'. //Ping Command: '#ping <Switch><URL OR IP>' Example:'#ping chandanbora.com', Custom switches are also available. For more on Ping and switches, visit link.
“Did i miss any other common command ? just let me know, i’ll keep update above list.” 🙂
Let me know, in-case mentioned command’s Syntax/Manual needs update.