DAY 2 COP 3502 Fall term 2004. UNIX Versions NAMESupplier Based on AIXIBM AT&T System V A/UX Apple Computer AT&T System V DynixSequentBSD HP-UXHewlett-PackardBSD.

Slides:



Advertisements
Similar presentations
RH030 Linux Computing Essentials
Advertisements

A Guide to Unix Using Linux Fourth Edition
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
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.
Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
UNIX chapter 04 UNIX Shells Mr. Mohammad Smirat. Introduction The shell is the software that listens to commands typed in at the terminal and translates.
CS 497C – Introduction to UNIX Lecture 36: - Customizing the Environment Chin-Chih Chang
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
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
COMP1070/2002/lec3/H.Melikian COMP1070 Lecture #3 v Operating Systems v Describe briefly operating systems service v To describe character and graphical.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Introduction to Shell Script Programming
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Second edition Your UNIX: The Ultimate Guide Das © 2006 The McGraw-Hill Companies, Inc. All rights reserved. UNIX – The Shell The Shell The agency that.
An Introduction to UNIX System --- Cosc513 Presentation n Instructor: Morteza Anvari n Author: Yonghong Pan n ID#: n Date: Jan.29, 2001.
Chapter 6: Shell Programming
An Introduction to Unix Shell Scripting
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
Chapter 4 UNIX Common Shells Commands By C. Shing ITEC Dept Radford University.
UNIX/LINUX Shells Shell is an UNIX/LINUX command interpreter. Shell command can be internal or external. The code to execute an internal command is part.
Downloading and Installing Autodesk Revit 2016
Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
1 Lecture 1 Introduction & Getting Started COP 3353 Introduction to UNIX.
Unix Shell Environments February 23rd, 2004 Class Meeting 6.
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
UNIX shell environments CS 2204 Class meeting 6 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
UNIX shell environments CS 2204 Class meeting 4 Created by Doug Bowman, 2001 Modified by Mir Farooq Ali, 2002.
Introduction to Programming Using C An Introduction to Operating Systems.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
System Administrator Responsible for? Install OS Network Configuration Security Configuration Patching Backup Performance Management Storage Management.
Advanced Programming in the UNIX Environment Hop Lee.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Manually Creating a New User Account Presented by Carl South.
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 CS465. What is UNIX? (1) UNIX is an Operating System (OS). An operating system is a control program that allocates the computer's.
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
Unix Advanced Shells Chapter 10. Unix Shells u Command Line Interpreter –once logged in, login gives control to a shell –it prompts for input, then parses,
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Configuration your environment Many user-configurable Unix programs (such as your shell) read configuration files when they start up. These configuration.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Overview of Linux Fall 2016 Dr. Donghyun Kim
Unix Scripting Session 1 March 6, 2008.
SUSE Linux Enterprise Desktop Administration
Andy Wang Object Oriented Programming in C++ COP 3330
System Programming and administration CS 308
The Linux Operating System
Shell Environments.
Chapter 1 The Essence of UNIX and Linux
Intro to UNIX System and Homework 1
CSCI The UNIX System Shell Startup and Variables
Linux Shell Script Programming
Linux Professor Sabol.
Unix Shell Environments
Chapter 3 The UNIX Shells
Presentation transcript:

DAY 2 COP 3502 Fall term 2004

UNIX Versions NAMESupplier Based on AIXIBM AT&T System V A/UX Apple Computer AT&T System V DynixSequentBSD HP-UXHewlett-PackardBSD Irix Silicon Graphics AT&T System V Linux Free Software Foundation NextStepNextBSD OSF/1DECBSD SCO UNIX Santa Cruz Operation AT&T System V Solaris Sun Microsystems AT&T System V SunOS Sun Microsystems BSD Unix UltrixDEC UnicosCray AT&T System V Unix Ware Novell AT&T System V XenixMicrosoft

The UNIX Shell  Bourne Shell- In the near beginning there was the Bourne shell /bin/sh (written by S. R. Bourne). It had (and still does) a very strong powerful syntactical language built into it, with all the features that are commonly considered to produce structured programs; it has particularly strong provisions for controlling input and output and in its expression matching facilities. But no matter how strong its input language is, it had one major drawback; it made nearly no concessions to the interactive user (the only real concession being the use of shell functions and these were only added later) and so there was a gap for something better.

The UNIX Shell C-Shell - Along came the people from UCB and the C-shell /bin/csh was born. Into this shell they put several concepts which were new, (the majority of these being job control and aliasing) and managed to produce a shell that was much better for interactive use. The new shell was simply too buggy to produce robust shell scripts and so everybody stayed with the Bourne shell for that, but it was considerably better for interactive use so changed to the C shell, this resulted in the stupid situation where people use a different shell for interactive work than for non- interactive, a situation which a large number of people still find themselves in today.

The UNIX Shell Korne Shell - Eventually David Korn from AT&T had the bright idea to sort out this mess and the Korn shell /bin/ksh made its appearance. This quite sensibly junked the C shells language and reverted back to the bourne shell language, but it also added in the many features that made the C shell good for interactive work (you could say it was the best of both worlds), on top of this, it also added a some features from other operating. The Korn shell became part of System V but had one major problem; unlike the rest of the UNIX shells it wasn't free, you had to pay AT&T for it.

The UNIX Shell TCSH - The T C-shell (tcsh) is a command interpreter that is similar to the C-shell (csh). The syntax for writing scripts in the tcsh is the same as for the csh. Unlike the csh, this shell is not available on every Unix system. However, it is available on Sun, SGI, and HP workstations. The tcsh shell is the default when you log on to a Linux Intel system. The location for tcsh varies between the architectures. It is the default Department of Computer Science shell for all new users.

Files in your directory .login – A shell script that is run after.tcshrc and sets up your environment and path names. Leave it alone. (csh only) .tcshrc – Specific to the tcsh shell, this runs startup scripts that set additional path names, terminals, database connections. Leave it alone for right now. .plan – Place to put personal information. Can be seen by using the “finger” command which is disabled in our department. .forward – If you are using UNIX mail, placing an address ( or more ) will have your forwarded to that address. .profile – Commands to be run when you log in (sh & ksh only) .xinitrc – Commands to configure X Window System .mwmrc – Commands to configure the Motif Window Manager .logout – Commands to run when you log out (csh only ) ,. - Dot Dot file is the location of the root directory of where you are currently positioned. . - Dot file has the lists of the lower directories.

Standard Environment Variables VariableContents Home Pathname of your home directory Path Directories where shell is to look for commands and files Term The termcap code for your terminal User Your user namae Pwd Working directory Mail Pathname of your system mail box Shell Pathname for your shell To see environment variables enter: setenv

Standard Environment Variables  USER=gaitrosd  LOGNAME=gaitrosd  HOME=/home/faculty/gaitrosd  PATH=/home/faculty/gaitrosd/.bin:/home/faculty/gaitrosd/.scripts:/usr/local/bin:/usr/l ocal/jdk1.2.2/bin:/usr/lang:/bin:/usr/bin:/usr/ucb:/usr/local/gnat/bin:/usr/etc:/usr/local/ bin/X11:/usr/bin/X11:/usr/openwin/bin:/usr/ccs/bin:/usr/sbin:.  MAIL=/var/mail//gaitrosd  SHELL=/bin/tcsh  TZ=US/Eastern  SSH_TTY=/dev/pts/25  TERM=vt100  DISPLAY=localhost:43.0  HOSTTYPE=sun4  VENDOR=sun  OSTYPE=solaris  MACHTYPE=sparc  SHLVL=1  PWD=/home/faculty/gaitrosd  GROUP=fac  HOST=diablo  REMOTEHOST=staffpc8.cs.fsu.edu  MACHINE=diablo  CLASSPATH=.:/usr/include/java/classes:/home/courses/cop4710/classes  MANPATH=/usr/man:/usr/local/man:/opt/SUNWspro/man  EDITOR=pico  LD_LIBRARY_PATH=/usr/lib:/usr/local/lib  OPENWINHOME=/usr/openwin  NNTPSERVER=news.fsu.edu  DOMAINNAME=cs.fsu.edu  ORGANIZATION=FSU Computer Science Department

Login  From home you need to be running ssh ( Secure Shell) See for download instructions and license agreement. You must be connected to a campus computer in order to get this. See for download instructions and license agreement. You must be connected to a campus computer in order to get this. Once you have the SSH program you can install it on any machine. Once you have the SSH program you can install it on any machine. See demonstration of ssh. See demonstration of ssh.

Login  At the Login screen enter your user name. Remember that UNIX is case sensitive. Remember that UNIX is case sensitive. Once the username is accepted, enter the password. Be careful not to make a mistake. Most of the time, backspace will not work. Once the username is accepted, enter the password. Be careful not to make a mistake. Most of the time, backspace will not work.  You should be at the opening prompt.  To make sure you are at your home directory, enter the change directory command cd ~username (Where username is your account name and is the return key. cd ~username (Where username is your account name and is the return key. Example cd ~gaitrosd Example cd ~gaitrosd

Logout  To logout of the system you can enter either logout logout exit exit

Changing your password Command: passwd Description: Asks you to type in a new password. You can only do this for you own account. Sample: passwd Note: The command will then prompt you to enter you old password and the new one twice. The new one must consist of a minimum number of characters one of which has to be an upper case letter, one has to be a digit, and one has to be a special character.

Directories and File Names Directories are basically a special kind of file that contains the names of other files and directors. Some OS call them folders. At any given moment you have a current directory When you first login you are placed in your home directory ~ ( tilde ) is the shorthand for your home directory. As with filenames, you can use upper and lower case letters, digits, periods, and underscores in directory names.

Filenames Filenames can user upper and lower case letters, digits, periods and underscores. Filenames are case sensitive Do not use odd characters in filenames and don't use spaces.

Pine  See demonstration in class  See help on Pine from the ACNS web pages at: HOMEWORK: - Login with your account - Change your password - me at with your CS mail account from pine and tell me you have changed your password. - Be sure and make the subject PASSWORD CHANGED

Another Useful Feature  Standard input-output redirection There are times we would like to take the standard output that goes to the screen and place it in a file. We can do this with the ">" symbol. Let us say we want to put the list of a directory in a file. There are times we would like to take the standard output that goes to the screen and place it in a file. We can do this with the ">" symbol. Let us say we want to put the list of a directory in a file. SEE DEMONSTRATION SEE DEMONSTRATION

Another Useful Feature  Standard input-output redirection Also, there are times when we want input usually coming from the keyboard to come from a file. This is done with the "<" symbol. Also, there are times when we want input usually coming from the keyboard to come from a file. This is done with the "<" symbol. DEMONSTRATION DEMONSTRATION