Our Sponsors

CMD – Linux

cat View filecontent Concatenate file from start to standard output (terminal screen by default). Usually takes filename as a parameter.
cat > file
(Enter text at command line and then CTRL-D to write to file.)
cd Change directories.
chmod Changing file modes (permission)
clear Equivalent of CLS command in MS-DOS and in Windows command prompt.
cp cp oldfile newfile
Make a copy of the file oldfile in the current directory. The copy is named
crontab -e Schedule -tasks
dd create ISO images and floppy images
df -h Print disk partitions (with human readable switch) 
du Display usage in kilobytes for contents of the current directory or for a specified file or directory.
du /bin
Show how much disk space is used by the /bin directory.
fdisk Command line disk partitioning program in Linux.
find The find utility is used much in the same way as many Windows people used the DIR command.
findnic Send network traffic from a specified network adapter
grep Search for a string from standard input or from a file. This is a powerful command.
ls /home -Rla | grep StringToSerach
history | tail View Last 10 commands
History normally list your past commands, used with tail it will filter to show only the last 10
less Display the contents of a specified file one screen at a time. Use the arrow keys to move up and down through the file.less myfile
Display the contents of the file myfile.
ll Same as ls ?al
ls LiSt files in a directory.
lsmode shows information about all loaded modules  
lspci List PCI devices
man Displays the manual page for a specified command. Press the spacebar to go to the next screen of text. Press q to exit from the display when you are finished. 
man cat
Display the manual page for the command cat.
Exit wit q
mkdir Makes a directory.
mkdir /data
Creates directory /data for the configs.
modinfo Displays the option of a loaded module. modinfo e1000   Will produce a list of possible setting on the Network adapter as flow controlWith vmkload_mod -l you can  list all loaded
mount|umount mount/umount CDs, floppies, local partitions, and remote directories to a selected local directory.
more Display the contents of a specified file one screen at a time.
more | less These commands are almost the same, and usually act in a pipe.
mv Moves and/or renames files and/or directories.
nano Edit a file with a bit easier UI that vi.
netstat Shows currently active network connections
passwd Changes the password for the userid.
pidof Finds the PID of a named process.pidof vmware-ccagent
ps -ef Show running processes in the service console.
pwd Show the path to the present working directory.
reboot Prints the manual page for a command or a configuration file entered as a parameter to this command.
route Modify or print routing table.
rm This is the equivalent of the MS-DOS or Windows command DEL. In other words, this tool deletes files.
rpm Red Hat Package Manager
scp scp secure copy    Copies files between linux hosts
showmount showmount lists all the clients that have remotely mounted a filesystem from host.
service RedHat-made tool for daemon (service)
su Switch user.
tail -f Like “head”, but start from the end of the file.
Practical command to follow what is happening with a log file is command like
tail -f /var/log/messages.
tail -n
shows n lines of a files
tar Tape ARchive, a command which combines many files into one for backup purposes.
top Shows the running processes in the service console and lists the top consumers of CPU time.
vi Standard UNIX text editor.
vdf -h  Displays free space for all mounted file systems. (VMware)
vmware -v Display ESX Version Number. (VMware)
which shows the path to the executeable
#which nano
/usr/bin/nano
& Run process in background by adding at the end of the command