class02 - System Administration Introduction to Unix Session 2 Fri 02 Nov 2007 Reference chapter 1 The Unix Programming Environment Kernighan Pike ISBN

class02 - System Administration Introduction to Unix...

This preview shows page 1 - 13 out of 33 pages.

System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference: chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN 0-13-937681-X Albert Lingelbach, Jr. [email protected]
History of Unix Begun in 1969 at Bell Labs Timesharing / Multiuser One computer, many terminals Programming Typesetting Group Communication
Architecture Kernel Windowing System Gnome Shell Programs
The shell environment tty (teletype) / terminal text only 24 lines, 80 columns default shell: Bourne shell to open a tty: right-click on desktop, choose “Open Terminal” echo print text to the tty try: echo Hellowhat shell is running ?
Simple commands bash compatible with sh , added features: command history with up arrow editable command line backspace (vs. delete) date system date and time who what users are on the system
Flow Control characters ctrl-C stop a running command try: troff ctrl-S / ctrl-Q pause/unpause output try: countdown 1000 end input ctrl-D
Command Arguments / Parameters mis-typed command gold: not found command arguments / parameters try: who am i try: gold coins
User Communication news get local system news (written by the system administrator) try: news write write messages to another user on the system; like IM but local try: pair off using who , find userid of your partner write userid (and your partner does same) exchange messages
Manual Pages You have seen the following commands: date who news write sh bash How to find more about them ? command -? often returns a short command synopsis man command returns the complete manual page reference for the command
Files As in any computer system, data is stored in files Most Unix files are (ASCII) text Many Unix commands manipulate text files
File Naming case sensitive spaces are problematic dot and underscore are useful separators
File Commands – 1 current (“working”) directory pwd print the working directory ls list the files in the working directory cd path change the working directory

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture