1 / 12

UNIX Overview

UNIX Overview. UNIX. UNIX is a multi-user and multi-tasking operating system. Multi-tasking: Multiple processes can run concurrently. Multi-user: different users can read mails, copy files, and print all at once. Basic Command Suite. Man Pages.

emile
Download Presentation

UNIX Overview

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UNIX Overview

  2. UNIX • UNIX is a multi-user and multi-tasking operating system. • Multi-tasking: Multiple processes can run concurrently. • Multi-user: different users can read mails, copy files, and print all at once.

  3. Basic Command Suite

  4. Man Pages • Manual pages are on-line manuals which give information about most commands • Tells you which options a particular command can take • How each option modifies the behavior of the command • Type man command at the UNIX command line to read the manual for a command • What does the wc (word count) command do? … Type % man wc • Alternatively, % whatiswc • A one-line description of the command, but omits information about options, etc.

  5. More Useful Commands

  6. How to stop a process? • Foreground processes can generally be stopped by pressing CONTROL C (^C). • Background processes can be stopped using the kill command. • Usage: kill SIGNAL <process id list> • kill -9 <process id list> (-9 means no blocked) Or kill <process id list>. • If a foreground process is not stopping by ^C, you can open another session and use the kill command.

  7. Text editors • Different editors: emacs, pico, vi • emacs <filename> • pico <filename> • vi <filename> http://www.thegeekstuff.com/2009/07/top-5-best-linux-text-editors/

  8. The simplest editor: pico or nano • pico <filename> • Full screen editor • Help on the bottom of the screen • nanois an extension to pico

  9. Basic operations in pico • Ctrl + v : to move page down • Ctrl + y : to move page up • Ctrl + o : to save the current buffer • Ctrl + x : to exit with or without saving • Ctrl + g : to get help • Ctrl + r : to open a file • Ctrl + w : to find a string in the current buffer • Ctrl + c : to get the current position in the buffer

  10. UNIX Tutorial Resources • http://www.ee.surrey.ac.uk/Teaching/Unix • http://www.math.utah.edu/lab/unix/unix-tutorial.html • http://www2.ocean.washington.edu/unix.tutorial.html

  11. Get Your Feet Wet • Read man pages to learn other commands such as: • gzip, cat, zcat, diff, find, history, diff, more, less, source • Learn about the Bash shell • http://www.gnu.org/software/bash/manual/bashref.html • Debugger • Debugging a multi-process program is difficult with a debugger such as gdb • It is recommended that you use lots of printf statements during development

More Related