Presentation is loading. Please wait.

Presentation is loading. Please wait.

COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner.

Similar presentations


Presentation on theme: "COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner."— Presentation transcript:

1 COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner  Commands for study

2 COMP1070/2002/lec4/H.Melikian The software architecture of the UNIX operating system

3 COMP1070/2002/lec4/H.Melikian UNIX Kernel v Process management - creating, suspending, terminating and maintaining v Unix provides three primary IPC (interprocces communication ) v Pipe ( resides in main memary), v Named pipe( named also as FIFO permanent communication canals resided on the disk), v BSD Socket ( communication canals in network or on Internet)

4 COMP1070/2002/lec4/H.Melikian Unix Shell v The UNIX shall is a program that start running when you log on and interprets the commands you enter. v UNIX shall prompt such as $ appear in a screen when you log in and command line follows the prompts. $ command [[-] option(s)] [option argts] [ command argt’s] Shell is case sensitive, space between command, command options, option argts and arguments Example (listing of current directory contents) $ ls $ ls –la $ ls –la f*

5 COMP1070/2002/lec4/H.Melikian Correcting Mistakes For each key combinations like - press and hald key down while pressing second key (D) down or ( erase the previous character and move cursor to its position) - erase the entire current line and move cursor to the beginning of the line - terminate the current command and move to next line

6 COMP1070/2002/lec4/H.Melikian Some useful commands v passwd ( yppasswd or nipasswd) v man - man [ops][-s section] command list or - man –k keyword_list $ man –s2 read To get a short description of what any particular unix command does, you can use the whatis command. $ whatis man $ whatis login mkdir setenv The whereis command allows you to search along certain path to locate the utility programs and command such as shell programs

7 COMP1070/2002/lec4/H.Melikian List of command to study and practice Log into any UNIX machine and discover yourself the true meaning of following commands in detail. whoami set alias/unalias hosthame setenv write uname telenet mail echo passwd elm exit cp talk login lpr diff ls ssh more mv who cat cp cal uptime

8 COMP1070/2002/lec4/H.Melikian Editors Pico Emacs Vi Ed

9 COMP1070/2002/lec4/H.Melikian General keystroke commands and cursor movement commands ^Shift 6 – Begin to mark a section for cutting ^C- reports coursers line and character # ^G - help ^J - justify the selected text ^K – cut out the selected text ^O- Saves, writes out the text ^R – Reads the text from file and pastes the current position of cursor ^T - Checks Spelling ^U – Pasts the current line of text ^V -Scroll page down on the Help page ^W - Whereis ( search for character strings) ^X – Exit ^Y Scroll one page up in the Help page ^F-Move forward a ch ^B_ Move backward a ch ^P- Move previous line ^N-Move the next line ^E- Move to the end of ^V- Move to next page ^Y- Move to prev page

10 COMP1070/2002/lec4/H.Melikian HW #1 Write a short description of the following UNIX commands using man utility then send it to me. echo, mail, talk, ps, head, wc. Assigned 09/11/02 Due 09/14/02 by midnight PS. To submit you have to use the fallowing command % mail melikian < assignment.txt Where assignment.txt is the file with your hw.


Download ppt "COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner."

Similar presentations


Ads by Google