Skip to main content

Common UNIX Commands

I just decied to look for a few commonly used UNIX command. A quick Google produces a lot more, but here are a list of more useful commands.

  1. cd - Change Directory. (Just like in dos)
  2. mkdir - Make Directory.
  3. rmdir - Removes a Directory that is empty!
  4. ls - List directory. (Like dir in Windows)
  5. cat – Short for concatenate. It was used to concatenate two filestogether via cat file1 file2 >file3 Didn‘t know that did you. Theechoing out to standard out gave cat a whole new meaning to the users.
  6. more - Just like less. It pages output to the screen.
  7. mv - Move. For moving files and directories around
  8. rm Remove a file. Also rm rf for removing a folder and it‘scontent.
  9. grep - Used to search for text within a stream or files. (man regex)
  10. vi – A text based editor. You‘ll find that it‘s really a symboliclink to vim now a days.
  11. rlogin - Remote login. I hope your admins disabled this!
  12. passwd - Used to change your password.
  13. ps - Used to processes.
  14. nice - Run a program with lower priority so you don't hog CPU.
  15. kill – Terminates a program. You can select what signal you want tokill a program with also. -9
  16. gzip - Compresses files.
  17. gunzip - Uncompresses files.
  18. tee – Pipe your output to standard out and to a file. Nice forwatching a process and logging.
  19. sort - A sort program
  20. sed – Stream Editor. Excellent program to modify files or streams!(man regex)
  21. uniq - Unique program.
  22. awk – An excellent program to parse up streams or files into tokens.It supports a hellva lot of cool things and you can complete writeprograms with it. (man nawk also)
  23. chgrp - Change Group
  24. chown - Change owner
  25. pwd - Current working directory.
  26. find – Used to find programs and you can also execute commands oneach match found.
  27. wc - Word, line, letter count program. For you line counting whores.
  28. which - Finds a location of a program that's in your path.
  29. last - See who last logged in.
  30. du - Disk usage.
  31. df - Disk Free
  32. top – Running processes with CPU and other information thatrefreshes.
  33. watch – Repeats a command and updates the screen with only thechanges
  34. login - Logging in
  35. telnet - Connect to another machine
  36. logout - Logging out
  37. emacs - Using the emacs text editor
  38. cp - Making a copy of a file
  39. chmod - Controlling access to your files
  40. cmp - Comparing two files
  41. compress - Compress a file
  42. pine Using Pine to send and receive email
  43. mush - The mush electronic mail system
  44. talk - Talk to another user
  45. write - Write messages to another user
  46. ftp - Transferring files with ftp
  47. man - Manual pages
  48. quota v Finding out your available disk space quota
  49. ical - Using the Ical personal organizer
  50. finger - Getting information about a user
  51. who - Finding out who's logged on
  52. lpr - Printing
  53. lprm - Removing a print job
  54. lpq - Checking the print queues
  55. ps - Finding your processes
  56. kill - Killing a process
  57. nohup - Continuing a job after logout
  58. nice - Changing the priority of a job
  59. & - What is a background process?
  60. Cntrl-z - Suspending a process
  61. fg - Resuming a suspended process

Comments

Popular posts from this blog

Installing Bugzilla on Windows

Bugzilla is the Bugs/Issues Tracking Tool from The Mozilla Organization. Version 2.18 is the latest stable release. There are couple of resources which guide a User installing Bugzilla on a Unix/linux machine. However, this entry describes a way to install Bugzilla on a Windows machine (W2K to be precise). This document guides you step by step through the installation process. First, get Administrative access to the machine on which you want to install Bugzilla. It should be a simple step. Usually, Users are given Administrative rights on Windows machine. However, if you dont have, contact your Administrator. Get Bugzilla Then download the Bugzilla from http://bugzilla.org/download.html . There are two ways of gettng it - through CVS or direct downloading the tar file. Remember there are no Zip files. However, any zip utility should be able to untar the Bugzilla. I download the tar file and untarred it using WinZip. I placed the untarred 'bugzilla' directory in my c: drive. So...

JSP Performance Tips

Here are a few tips to improve JSP performance that I have been using. If you have your own listing of the tips, plz share. Disable JSP auto reloading feature. Use thread pool for your JSP engine and define the size of thread pool as per application requirement. Use jspInit() method to cache static data Initialize the 'out' object (implicit object) with proper size in the page directive. Set the content length Give 'false' value to the session in the page directive to avoid session object creation. Flush the data partly Use StringBuffer rather than using + operator when you concatenate multiple strings Use include directive instead of include action when you want to include the child page content in the translation phase. Avoid giving unnecessary scope in the 'useBean' action. Use print() method rather than println() method Use ServletOutputStream instead of JSPWriter to send binary data Minimize code in the synchronized block Do not use custom tags if you do no...

How old are the daughters?

Two MIT math graduates bump into each other at Fairway on the upper west side. They hadn't seen each other in over 20 years. The first grad says to the second: "how have you been?" Second: "Great! I got married and I have three daughters now" First: "Really? how old are they?" Second: "Well, the product of their ages is 72, and the sum of their ages is the same as the number on that building over there.." First: "Right, ok.. oh wait.. hmmmm.., I still don't know" second: "Oh sorry, the oldest one just started to play the piano" First: "Wonderful! my oldest is the same age!" Problem: How old are the daughters?