Introduction to UNIX A User’s Perspective: Day 1 – The File System.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

1 Introduction to UNIX Ke Liu
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Exploring the UNIX File System and File Security
Working Environment - - Linux - -.
Lesson 22 – Introduction to Linux Systems Administration.
Linux+ Guide to Linux Certification, Second Edition
Linux Linux File System.
Guide To UNIX Using Linux Third Edition
Introduction to UNIX A User’s Perspective: Day 2 – Command Basics.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
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.
Linux Commands LINUX COMMANDS.
1. This presentation covers :  User Interface Administration  Files System and Services Management 2.
Guide To UNIX Using Linux Fourth Edition
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
The file structure and related utilities CS240 Computer Science II.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
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.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Linux+ Guide to Linux Certification, Second Edition
Introduction to Unix – CS 21 Lecture 9. Lecture Overview Shell description Shell choices History Aliases Topic review.
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Chapter Two Exploring the UNIX File System and File Security.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
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.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Chapter Two Exploring the UNIX File System and File Security.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
FTP Short for File Transfer Protocol, the protocol for exchanging files over the Internet.protocolfilesInternet works in the same way as HTTP for transferring.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Getting Started UNIX InKwan Yu Topics Unix Commands Unix System calls C function calls.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
1 CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
A gentle introduction to LINUX at the command prompt.
UNIX filesystem CS 2204 Class meeting 2 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Getting Started with Linux
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
Development Environment Basics
SUSE Linux Enterprise Desktop Administration
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
Lecture 2 Working with Files and Directories
Some Linux Commands.
Tutorial of Unix Command & shell scriptS 5027
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Exploring the UNIX File System and File Security
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Andy Wang Object Oriented Programming in C++ COP 3330
Linux Shell Script Programming
What is Unix? A multi-user networked operating system
Linux Commands LINUX COMMANDS.
January 26th, 2004 Class Meeting 2
Presentation transcript:

Introduction to UNIX A User’s Perspective: Day 1 – The File System

Requirements for System Access Authentication – User account – Password

Connecting to the System Telnet & FTP – Insecure Clear-Text Transfer of ALL data – Resident on most systems SSH & SFTP – Secure Encrypted transfer of ALL data – Free download from ftp://ftp.ssh.com/pub/ssh/ftp://ftp.ssh.com/pub/ssh/ SSHSecureShellClient exe

Let’s Log On! Hand out Account Sheets Logon to the System

What You Will See…

Now Do It Securely

Success!!

Maneuvering on the Command-Line Esc – k – First enter in command history – k to move UP through history j = Down l = Left h = Right i = Insert x = Delete Shift-U = Undo ESC when in trouble ;)

The Windows/UNIX difference Capable of getting under the hood – Windows – Difficult The Registry – Nuff said! – UNIX – Manageable Configuration files Fundamental knowledge expandable

What we will Cover Today Definition of UNIX (2 slides!) UNIX File System Basic Commands Ownership & Permissions Shells

UNIX What is it? Multi-user System File based system Extensible Honed for networking Portable – runs on anything

UNIX Distributions Linux – Redhat, Mandrake, SuSe, etc. AIX – IBM Solaris – SUN HP-UX – HP

What Should You Know? How to Log on and off of a UNIX system – How the process works

Question? Anyone… anyone?

Now that you are logged in… Account Shells – csh – C-Shell % – ksh – Korn $ – bsh – Bourne Shell $ – Bash – Bourne Again Shell #

C-Shell – csh Interactive command interpreter Command programming language Syntax similar to the C programming language /bin/csh or /usr/bin/csh – Executes /etc/profile OR /etc/login $HOME/.login OR $HOME/.cshrc

The Korn Shell – ksh Interactive command interpreter Command programming language Backwards compatible with the Bourne Shell Many C-shell features /bin/ksh or /usr/bin/ksh – Executes /etc/profile $HOME/.profile

Bourne Shell – bsh Interactive command interpreter Command programming language Allows for a restricted shell /bin/bsh or /usr/bin/bsh – Executes /etc/profile $HOME/.profile

Bourne Again SHell – bash Compatible with Bourne shell Enhanced feature set – Command-line editing – Line completion, etc. FREE! /bin/bash or /usr/bin/bash – Executes /etc/profile or /etc/bashrc $HOME/.bash_profile or $HOME/.bashrc $HOME/.bash_logout

Shell Execution Illustrated

Shells, Why Do I Care? Dictates mode of operation Allow for individual system customization

Your Ambassador Interface to the Kernel – Command Interpreter Abstracts system level details What does this mean?

Interaction Details

What Should You Know? How to Log on and off of a UNIX system – How the process works What UNIX shells are – How they function in relation to the system – Some of their features

Question? Anyone… anyone?

The File System It’s a Directory Tree – / = root directory Windows Equivalent = C:\ – The / serves as a directory delimiter Can be mounted from anywhere Everything is a file!

File System Commands ls – LiSt current directory cd – Change Directory pwd – Present Working Directory rm – ReMove = DELETE

File Types Regular Files – Any file that can hold data, source code, binaries… Directory Files – Special files that contain information about other files (location). Soft/Symbolic Link “Files” – Contains a path to another file Hard Link “Files” – Creates a link to the files inode

Special Function File Types Device Files – Character Devices – Block Devices – Unix-Domain Sockets

Regular File Creation FTP (get) touch Editor (vi, pico, etc.) cat echo

Directory File Creation mkdir mv cp

Soft/Symbolic Link File Creation ln –s – $ ln -s out.echo echo.out – lrwxrwxrwx msaba user echo.out -> out.echo – -rw msaba user out.echo Can be made across file systems

Hard Link File Creation ln – $ ln echo.out out.echo -rw msaba user 12 Dec 10 09:04 echo.out -rw msaba user 12 Dec 10 09:04 out.echo – $ ls -ial echo.out out.echo Can not be made across file systems

File System Structure

What Should You Know? How to Log on and off of a UNIX system – How the process works What UNIX shells are – How they function in relation to the system – Some of their features The different UNIX file types The structure of the UNIX file system

Question? Anyone… anyone?

Traversing the PATH Hierarchical – Directory Tree – Parent/Child Nodes Absolute – The full PATH /usr/local/ssh2/bin/ssh Relative – pwd = /usr/local/bin –../local/ssh2/bin/ssh Simple – ssh

PATH UNIX PATHs – A colon delimited list of directories the shell uses when finding a command issued with a simple PATH. echo $PATH – Lists all of the directories the system will “look” in when a command is issued which “command-name” – Outputs the absolute PATH of the command if known

PATH Shortcuts Shortcuts to your Home Directory root – cd ~ – cd ~user-name – cd $HOME Absolute Path Shortcuts – * A wildcard that matches any character cd /usr/l*/ss*

What Have We Covered? What UNIX is Logging onto UNIX UNIX Shells File Types Structure of the File System PATH

What Should You Know? How to Log on and off of a UNIX system – How the process works What UNIX shells are – How they function in relation to the system – Some of their features The different UNIX file types The structure of the UNIX file system UNIX PATHS – How to navigate around the UNIX file system

Question? Anyone… anyone?

Permissions – Power in Play Everything in UNIX is a File Every file in UNIX has associated permissions – Ownership Three Ownership Tiers – User – Group – “The World” – Controls Three Control Tiers per Ownership – Read – Write – Execute

Master of Your Domain Viewing Permissions – ls –al drwx msaba user 512 Dec 10 09:55. drwxr-xr-x 27 msaba user 4096 Dec 10 09:04.. drwx msaba user 512 Dec 10 09:07 dir-test lrwxrwxrwx 1 msaba user 8 Dec 10 09:18 echo.out -> out.echo -rw msaba user 12 Dec 10 09:04 out.echo

A Closer Look Example Data drwxr-xr-x.. drwx dir-test lrwxrwxrwx echo.out -> out.echo First column – File type Next three sets of three columns…?! – Permission definitions for different ownerships

Binary Versus Alpha Thinkers Binary Thinkers & Permissions – Think in terms of 0s and 1s 0 = off/false 1 = on/true – Convert it to decimal…Easy!! Alpha Thinkers & Permissions – Think in terms of u,g,o,a and r,w,x Add permissions with a + Remove permissions with a –

Actually Making a Change Grant/Change permissions – chmod Changing ownership – chown user:group file

What Should You Know? How to Log on and off of a UNIX system – How the process works What UNIX shells are – How they function in relation to the system – Some of their features The different UNIX file types The structure of the UNIX file system UNIX PATHS – How to navigate around the UNIX file system UNIX ownership and permissions

Question? Anyone… anyone?

THANK YOU FOR ATTENDING Please fill out the Evaluation Form before leaving.