Some Linux and Unix Commands
 Command   Usage   Description 
 cat   cat file_name.txt   Display (output) contents of file_name.txt to screen 
 chfn   chfn -options (options = f,o,p,h,u,v)   change finger setting in /etc/passwd file  
 chgrp   chown new_group filename   change group of filename to new_group  
 chmod   chmod u=rwx filename or chmod 777 filename   change mode filename to (r-read,w-write,e-execute)  
 chown   chown new_owner filename   change ownership of filename to new_owner  
 cp   cp f1 f2   copy file f1 to f2 
 du   du    disk usage (storage used) 
 finger   finger -s   ginger username, display user\s login name etc.  
 grep   ps -ef | grep ora   globally search for a regular expression and print matching lines 
 gzip   gzip   File compression utility (zip); IETF RFC -1952  
 gunzip   gunzip   File de-compression utility (unzip) 
 hostname    hostname    Show server/host name  
 iostat   iostat -d 5    I/O statistics (I/O stats once in 5 seconds)  
 mkdir   mkdir files   Make directory named files in current directory 
 motd   motd "New Storage Has Been Added"   Message of the day (system/broadcast message) 
 mpstat   mpstat   Microprocessor statistics 
 netstat   netstat   Network statistics 
 pwd   pwd   Print Working Directory (current directory) 
 rmdir   rmdir files   Remove directory named files in current directory 
 sar   sar -u 5 10   System Activity Report (CPU utilization every 5 seconds display 10 lines)  
 systat   systat   System statistics 
 tail   tail -n 10 any_filename   List last 10 lines of file "any_filename"  
 top   top   Top CPU processes 
 tr    tr '\0' ' ' < /u01/data/fname.txt > /u01/data/fname1.txt    Remove non-numeric characters and save as fname1.txt 
   tr '\137' ' ' < /u01/data/fname1.txt > /u01/data/fname2.txt    Remove non-alpha characters and save as fname2.txt  
 uname   uname -n   Unix Name 
 uucp   uucp   unix to unix copy 
 uud   uud   unix - unix decode 
 uue   uue   unix - unix encode 
 vmstat   vmstat   Virtual memory statistics 
 wc   wc -l   Word Count 
 zcat   zcat file_name.gz | wc -l   List content of zip file: example to show lines in a zipped file  
    zcat file_name.gz | wc -c   List content of zip file and display the character count  

Top


© 2012 - 2022 Kayshav.com All Rights Reserved

Last Revised On: February 18th, 2019



  12601