Unix : Introduction and Commands

Slides:



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

1 Introduction to UNIX Ke Liu
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
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.
Guide To UNIX Using Linux Third Edition
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Guide To UNIX Using Linux Fourth Edition
Introduction A computer system consists of hardware system programs application programs.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
June 1, 1999UNIX File System1 Introduction to UNIX D. UNIX File Structure.
Chapter Two Exploring the UNIX File System and File Security.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
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.
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.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Chapter 4 The File Structure. Contents u The Hierarchical File Structure u Directory and Ordinary Files u Directories u Access Permissions u Links.
Introduction to Programming Using C An Introduction to Operating Systems.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Linux Commands C151 Multi-User Operating Systems.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Module 1 - Introduction to Linux. Users must log-in Linux is case sensitive File and Directories naming conventions (No spaces!) Files and Directories.
A gentle introduction to LINUX at the command prompt.
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.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
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 To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
A “Quick-Start” into the UNIX Operating System
Getting started with CentOS Linux
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
UNIX Introduction History Main Features UNIX Operating System
Some Linux Commands.
C151 Multi-User Operating Systems
Software Tools Recitation 1
9 Linux on the Desktop.
UNIX Basics Internet Technology.
Introduction to UNIX.
Exploring the UNIX File System and File Security
Introduction to Linux/UNIX
Introduction to Computer Organization & Systems
Introduction Paul Flynn
Getting started with CentOS Linux
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Linux Shell Script Programming
Linux Professor Sabol.
January 26th, 2004 Class Meeting 2
Presentation transcript:

Unix : Introduction and Commands Fundamental of information technology

Objectives Introduce Operating Systems concepts Provide a brief history of the Unix operating system. Provide a brief overview of the Unix system Introduce the Unix command structure Introduce a simple Unix session including: Logging on Changing Passwords (passwd) cal [mon [year]] date man Unixcommand Logging off (exit)

Unix A Brief History Developed for AT&T at Bell Labs by Ken Thompson in 1969. Rewritten in C by Dennis Ritchie Developed by programmers for programmers Became widely available in 1975. University of California, Berkeley created the Berkeley Software Distribution (BSD) version. AT&T combined their version with BSD, XENIX, and SunOS to create System V

Unix: What’s in a name? Unix may be shown as UNIX ®, Unix, Unix® UNIX® is a register trademark of The Open Group (as of 2007) the certifying body of the UNIX trademark

What Unix does Control program for computers managing: Processes Multi users Memory Files Provides support utilities called commands for: Executing programs File management File editing Process management

Unix Overview H/W Kernel Shell interfaces User Unix

Overview of Unix System Kernel & Shell Unix/Linux is operating system (OS). Unix system is described as kernel & shell. Kernel is a main program of Unix system. it controls hard wares, CPU, memory, hard disk, network card etc. Shell is an interface between user and kernel. Shell interprets your input as commands and pass them to kernel. User input Shell Kernel

Unix Overview (cont.) Multi-user & Multi-process Many people can use one machine at the same time. File & Process Data, directory, process, hard disk etc (almost everything) are expressed as a file. Process is an running program identified by a unique id (PID).

Unix Components Kernel Filesystem Shell Utilities

Unix Operating System Runs on virtually every manufacturer's hardware Works the same way on every computer

Relation of Files & Directories Root is like a file cabinet. A directory is like a file drawer A subdirectory is like a folder within a drawer. A path is a list of directories & subdirectories from root to a specific file or subdirectory. / Root Directories Files UNIX File System

UNIX Directory Structure At login, you are in your home directory. This is your current working directory. All files and directories below your home directory usually belong to you. You change your working directory by changing to another directory (cd). UNIX File System

Pathnames Absolute Pathname: shows the absolute position of a file or directory in the hierarchy; /home/user2/bif/docs begins with a slash (/); and describes how to get to the file from the root. UNIX File System

Filesystems A file is identified by Combining directory pathnames To the filename /usr/local/meeting / root usr files local meeting UNIX File System

Basic Commands Commands ls show files in current position cd change directory cp copy file or directory mv move file or directory rm remove file or directory pwd show current position mkdir create directory rmdir remove directory less, more, cat display file contents man display online manual “ls” stands for list. Pwd stands for present working directory

Basic Commands Commands su switch user passwd change password useradd create new user account userdel delete user account mount mount file system umount unmount file system df show disk space usage shutdown reboot or turn off machine “su” means switch user. When you have several user account on one machine.

Directory Commands mkdir making a directory cd changing your working directory pwd printing your working directory ls listing the contents of a directory rmdir removing a directory UNIX File System

Directory Commands - mkdir Make directory under current working directory host% mkdir docs Make directory under subdirectory host% mkdir docs/index Make directory and subdirectory host% mkdir docs docs/index Make directory using absolute path host% mkdir /usr/tmp/abc User1 (cwd) docs User1 (cwd) docs index UNIX File System

Common Error Messages: mkdir: dirname: File exists mkdir: dirname: Permission denied UNIX File System

Directory Commands - cd userx host% cd docs host% cd /usr/tmp/abc/docs host% cd ~abc/docs host% cd host% cd .. docs /usr tmp abc docs ~abc docs UNIX File System

Common Error Messages: pathname: No such file or directory pathname: Permission denied UNIX File System

Directory Commands - pwd Determining the current working directory: host% pwd /scc/users/chitspit/bif where: / root scc/ file system followed by the delimiter (/) users/ subdirectory of scc chitspit/ directory followed by the delimiter (/) bif current working directory UNIX File System

Directory Commands - ls host% ls bin mbox remodel complex.f outdis test host% ls -sF (Multiple options may be specified) 15 bin/ 256 mbox 3 remodel/ 34 complex.f 6 outdis@ 1 test* host% ls ~chitspit/bin au clst prod show xref cwd UNIX File System

Process Management commands Process is a unit of running program. Each process has some information, like process ID, owner, priority, etc. Commands kill Stop a program. The program is specified by process ID. ps Show process status

Some Unix Shells Bourne Shell (sh) Bourne Again Shell (bash) Korn Shell (ksh) C Shell (csh) many others… 25