Exforsys.com
 
Home Tech Articles UNIX
 

Common Unix Commands

 
The following is a listing of some common Unix commands. 
  1. awk [options][filename]  : A pattern matching program
  2. cat [options] filename  : Prints the contents of a file to the screen.
  3. cd [directory] : Change directory.
  4. chmod [options] filename : Modify file or directory permissions.
  5. clear: Clear the screen.
  6. cmp [options] filename1 filename2 : Compare the contents of two files.
  7. compress [options] filename : Compress a file.
  8. cp [options] filename1 filename2 :Copy a file.
  9. crypt [password] : Encrypt and decrypt the contents of a file.
  10. date [options] : Shows the time and date.
  11. diff [options] filename1 filename2    Shows differences in files.
  12. emacs [options] filename        A Unix text editor.
  13. file [options] filename                                       Classify files by type.
  14. finger [options] username                              Display information about  local and remote users.
  15. ftp [options] host File Transfer Protocol.
  16. grep [options] string filename    Search file for string.
  17. head [options] filename Display the first lines of a file.
  18. ispell [options] filename Check the spelling of a file.
  19. kill [options] pid Kill a process.
  20. less [options] A more powerful more.
  21. lp [options] filename Print a file.
  22. ls [options] [filename] Displays the contents of a directory.
  23. man [options] command The Unix help command.
  24. mh any mh command A Unix mail program.
  25. mkdir [options] directory Make directory
  26. more [options] filename Displays file contents.
  27. mv [options] filename target Move file to target.
  28. nice [-n] command [arguments] Execute command with a lower
  29. CPU scheduling priority.
  30. passwd [options] Changes your Unix password.
  31. ps [options] Prints information about active processes.
  32. pwd Prints the current directory.
  33. rlogin [options] hostname Establishes a remote login session.
  34. rm [options] filename Deletes a file.
  35. rmdir [options] directory Deletes a directory.
  36. rsh [options] hostname [command] Connects to the specified hostname and executes the
  37. specified command.
  38. script [filename] Writes everything printed on your screen to filename.
  39. sed [options] filename A stream editor.
  40. sort [options] filename Sorts contents of a file.
  41. tail [options] filename Displays last lines of file.
  42. tar key [options] filename(s) Tape archiver. Compresses and stores files.
  43. telnet [hostname [port]] Communicates with another host.
  44. touch [options] [date] filename Creates an empty file.
  45. uncompress filename.Z Uncompresses a file.
  46. uudecode filename Converts a uuencoded file.
  47. uuencode [filename] newfilename Converts a file to ASCII.
  48. vi [options] filename A Unix text editor.
  49. view [options] filename Read only version of vi.
  50. w [options] [user] Displays the current activity on the system.
  51. wc [options] filename(s) Counts lines, words, and characters in files.
  52. whereis [options] filename Locates source/binary and man pages for filename.
  53. which [filename] Locates executable files.
  54. who [options] [filename] Displays information about current system users.
  55. zcat [filename.Z] A compression program.


Read Next: Teach Yourself Shell Programming in 24 Hours



 

 

Comments


itzsug said:

  :) nice and useful
June 12, 2004, 6:33 pm

kkomaha said:

  good one
July 7, 2004, 10:51 am

kkomaha said:

  good one
July 7, 2004, 10:55 am

jaideepgholkar said:

  very good one
July 24, 2004, 12:31 am

shankar Reddy said:

  good one
December 5, 2006, 1:05 am

Amit.... said:

  very good!
July 18, 2008, 1:14 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2010 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape