Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

A Guide to Unix Using Linux Fourth Edition
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
CIS 118 – Intro to UNIX Shells 1. 2 What is a shell? Bourne shell – Developed by Steve Bourne at AT&T Korn shell – Developed by David Korn at AT&T C-shell.
Chapter One The Essence of UNIX.
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
Chapter 2 Accessing Your System and the Common Desktop Environment.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
Introduction to Unix (CA263) Introduction to Shell Script Programming By Tariq Ibn Aziz.
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
2 $ command Command Line Options ls –a –l hello hi Command Arguments.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Agenda What is Computer Programming? The Programming Process
Chapter Seven Advanced Shell Programming. 2 Lesson A Developing a Fully Featured Program.
Welcome to CSE  Name: Di Cao   Classroom: DL357  Class Time: T 8:30am - 9:18am  Office.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Introduction to Shell Script Programming
Introduction to Unix/Linux Chapter One The Essence of UNIX.
Chapter 3 Mastering Editors
UNIX Unbounded 5th Edition Amir Afzal Chapter 3 Getting Started
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Unix Shells Based on Glass & Abels’ Book CS240 Computer Science II.
Agenda Overview of Seneca Computer System –File Servers / Student Computer Accounts –Telnet application –How to Logon to Learn / Phobos accounts How to.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Linux Operations and Administration
CS465 - UNIX The Bourne Shell.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Lesson 9-Setting and Using Permissions. Overview Describing file permissions. Using execute permissions with a file. Changing file permissions using mnemonics.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #4  Unix software architecture  Correcting mistakes  System setups  Useful commands for the beginner.
Before we start…Getting Started. UST Outline History Getting Started Basic commands (command line) Operations on Files and Directories Input and Output.
De Anza College Instructor: Clare Nguyen
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Chapter 0 A “Quick-Start” into the UNIX Operating System.
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Chapter Three The UNIX Editors.
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
Introduction to Programming Using C An Introduction to Operating Systems.
Chapter Six Introduction to Shell Script Programming.
Introduction to UNIX. 2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
Introduction to Unix (CA263) Command File By Tariq Ibn Aziz.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
Linux Administration Working with the BASH Shell.
A “Quick-Start” into the UNIX Operating System
Introduction to UNIX.
SUSE Linux Enterprise Desktop Administration
Introduction to Shells
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
SQL and SQL*Plus Interaction
Unix Shells.
Guide To UNIX Using Linux Third Edition
Chapter 1 The Essence of UNIX and Linux
An Introduction to Computers and Visual Basic
INTRODUCTION TO UNIX: The Shell Command Interface
An Introduction to Computers and Visual Basic
Linux Shell Script Programming
Presentation transcript:

Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz

Objectives After reading this chapter, you should be able to: –Understand the computing environment in which you will practice –Practice your first Unix session by logging on and off your computer network –Experiment with a few Unix commands to develop a “feel” for Unix –Acknowledge responsibilities and concern of computer use

The Unix Language ASCII, American Standard Code for Information Interchange Originally, ASCII used only 7 bits (0 and 1) providing 128 characters Extended ASCII uses 8 bits to store 256 characters. For example English letter “H” has a decimal code 72. In term of bits, H is

Case Sensitivity Unix is case sensitive. So beware of Shift and CapLock.

Control Characters Many command employ control characters. The beep, sound that computer make, is signifies as ^G. Activate ^G by holding down control and press G. A useful control character is ^L, which usually clear your window. To correct error use Backspace, or ^H Pressing ^C usually cancels command, its “kill” control sequence. If not respond then use ^Z as a last ditch to suspend your command. Suspended processes linger and thus consume system memory. Sometime ^D (exit) can help, it might log you out.

Syntax and Semantics Writing command correctly and in a specific spelling and order (syntax). If you made error in writing statement you will get syntax error. The choice of usage and meaning (semantics)

Logging In The username, also referred as login name, user account, or user ID is typically chosen for you and is usually abstracted from your real name. Your password is special combination of characters, number, and symbols that you create to protect your account.

Command Window Command Prompt, is used to enter UNIX command. You are running a shell, which is a program that will interpret your instructions for Unix. Unix usually comes with three shell, Bourne and Korn shell uses the dollar sign ($), while C shell uses the (%) sign. Your system might be customized with entirely different prompt. Cursor, used to type commands

Command Window Command Line, place where you type command using cursor and terminate command by pressing Enter key Editing the command, Before press Enter you can edit the command line. Use Backspace or Delete to correct error. Typically ^A and ^E which put you at the beginning and end of the command line.

Command Options Unix command has the following form: – command options arguments –For example print command lp (laser printer) has one option d (for destination), which has it’s own argument, the printer name hp2040 and command argument Data.txt. –$>lp –d hp2040 data.txt

Command Options Unix command has the following form: – command options arguments –who is a command has a command option am I, which modify the behavior of who, restricting its report to only your identity. –$>who am i

Finding Help There’s a special Unix command called man, which means manual. To find help on a particular command, enter man command –$> man lp

Finding your shell The shell is a UNIX program that helps you to communicate with Unix’s core program. The shell run on the top of UNIX’s core. To determine your current shell, enter echo $SHELL. The dollar sign ($) tells Unix to look of the value of SHELL, which is an environment variable. –$> echo $SHELL

Logout With C–shells the command log out will end your session. In GUI environment you must choose a menu option such as exit, log out, or KillTWM.

Error Message If you make mistake, Unix will usually respond with an error message: –$> sl –sl: command not found

Protecting Your Account Change your password –$> passwd –Passwd: Changing password for taziz –Old password: –New password: –Re-enter new password: –$>

Fun With Unix What’s Today –$> date –Sat Mar 26 13:43:21 EST 2008

Unix Command Cal, On what day were you born –$> cal Banner, Print big version in ASCII –$> banner TARIQ Finger, to see who is sharing my last name –$> finger aziz Lynx, a text based web browser –$> lynx (Type G for go)

Unix Command History will show your previous commands –$>History Repeat 10 th Commandyou used before –$>!10 Customizing some of the command name alias customname command –$>alias dir ls –$>dir –UnixBook Mail Courses –$>ls –UnixBook Mail Courses

Compound Commands In Unix, the semicolon (;) can connect two command lines. –$> who am i; who

Piping in Unix Pipe one command’s output into another –$> who | wc –l –$> ls | wc -l

Command Summary aliascustomize a command banneroutput an big sized message calshow calendar dateshow current date echooutput the value of a variable fingeroutput information about a user historyshow commands recently entered lpprint hard copy lslist file lynxinvoke text-based Web browser manfind help on a Unix command moreview contents of text file passwdreset Unix password scinvoke spreadsheet calculator timeshow current time wccount words in a file whoshows users currently logged on