Linux Admin Commands

27 September 2017

Below are the list of Linux Admin commands useful Process Monitoring

Monitoring Command

~$ps :list all processes 
$w :List Users processes
$uptime :View the system load
~$top :Monitor the process
~$xload :monitor the system load
~$~$clear :clears the terminal
~$free  :shows how much memory is being used and is free
~$kill : Terminates the process
~$nice :Set the process priorities
~$renice :change process priorities

## Check if a Linux Script is running or not 

~$pgrep(1) -fl <Name of Script>

~$ps -ef :Shows list of files and directories with PID no
~$ps -ef|grep jps :Search jps from linux machine and shows its PID number
~$ps -ef |grep 2490 :Search which PID is for what Process
~$bg :Shows the jobs running in background and suspended jobs

Checking the memory in Linux

~$free - see amount of used and free memory 
Options : -m : memory in megabytes
           -g :memory in gigabytes
            -k :amounts in Kilobytes
            -t :Displays line showing column totals
             -c :Count the result  times .Need to pass the -s option
             -S 1:Contnously display the result  second apart

Back up and Remote Storage Commands

~$mt :control a tape device
~$dump :Backup a Disk
~$restore :Restore a dump
~$tar :read and writes tape archives
~$cd record :Burn a CD
~$rsync :mirror a set of files 

Linux and Unix exit code

It is used to check Check if a Linux command executed successfull

Share: Twitter Facebook Google+ LinkedIn
comments powered by Disqus