A Summary of Some Useful UNIX Commands
Total Page:16
File Type:pdf, Size:1020Kb
CS 350 Spring 2002 2/17/02
A summary of some useful UNIX commands:
The following are useful UNIX commands with suggested or sample flags. Run the “man” command against these commands for full meaning (the items in <...> are arguments, all file names and directory names may need to be prefixed by a path name to uniquely identify them: man
How to get rid of suspended or hung processes: First list all processes running under your user id (my_user_id), for example bf12345 ps -eaf | grep my_user_id examine the list for the hung process, suppose it is: 16309 now do: kill -9 16309 editors: pico
Check out Barnes and Noble at the Town-Square mall for books on UNIX and C/C++. I found “UNIX Made Easy”, by Lurnix (Osborne, McGraw-Hill publ.) useful. There must be a book called “UNIX for Dummies” out there. An excellent book on C is: “The C Programming Language” by Kernighan and Ritchie (Prentice Hall). As I mentioned an excellent book on both C and UNIX is “An Introduction to ANSI C on UNIX”, by Paul Wang, Wadsworth Publishing Co.