A Practical Guide to Linux® Commands, Editors, and Shell Programming

Slides:



Advertisements
Similar presentations
A Practical Guide to Red Hat ® Linux ®, Third Edition. © 2007 Mark G. Sobell, Prentice Hall,
Advertisements

NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
The Unix File System. What are the three parts of every file on a Unix filesystem? And where is each stored? Filename - stored in directories Inode -
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Linux+ Guide to Linux Certification, Second Edition
Information Networking Security and Assurance Lab National Chung Cheng University 1 What Linux is? Free Unix Like Open Source Network operating system.
Basic linux shell commands and Makefiles. Log on to engsoft.rutgers.edu Open SSH Secure Shell – Quick Connect Hostname: engsoft.rutgers.edu Username/password:
Guide To UNIX Using Linux Third Edition
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.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
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”
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Agenda Basic Shell Operations Standard Input / Output / Error Redirection of Standard Input / Output / Error ( >, >>,
Guide To UNIX Using Linux Fourth Edition
Shells. A program that is an interface between a user at a terminal and the computers resouces ▫The terminal may be real or an emulator The shell is.
Linux+ Guide to Linux Certification, Third Edition
The Shell Chapter 7. Overview The Command Line Standard IO Redirection Pipes Running a Program in the Background Killing (a process!)
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.
Week 3 Exploring Linux Filesystems. Objectives  Understand and navigate the Linux directory structure using relative and absolute pathnames  Describe.
LINUX programming 1. INDEX UNIT-III PPT SLIDES Srl. No. Module as per Session planner Lecture No. PPT Slide No. 1.Problem solving approaches in Unix,Using.
Linux+ Guide to Linux Certification Chapter Eight Working with the BASH Shell.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
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.
I/O and Redirection. Standard I/O u Standard Output (stdout) –default place to which programs write u Standard Input (stdin) –default place from which.
Operating Systems Lecture 10. Agenda for Today Review of previous lecture Input, output, and error redirection in UNIX/Linux FIFOs in UNIX/Linux Use of.
Week 9 - Nov 7, Week 9 Agenda I/O redirection I/O redirection pipe pipe tee tee.
Linux Commands C151 Multi-User Operating Systems.
Linux+ Guide to Linux Certification, Second Edition Chapter 4 Exploring Linux Filesystems.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
The Unix File sytem. Introduction Tree structure …
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
Linux Filesystem Management
IT244 - Introduction to Linux / Unix Instructor: Bo Sheng
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.
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Part 1: Basic Commands/Utilities
Some Linux Commands.
C151 Multi-User Operating Systems
Shell Script Assignment 1.
Unix Operating System (Week Two)
A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Chapters 1–4 Mark G. Sobell
Chapter 8–Part V Mark G. Sobell
A Practical Guide to Linux® Commands, Editors, and Shell Programming
Operating Systems and Using Linux
The Linux Command Line Chapter 6
Tutorial of Unix Command & shell scriptS 5027
A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®
Operating Systems and Using Linux
Chapter Four UNIX File Processing.
Introduction Paul Flynn
A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®
Getting started with CentOS Linux
Operating Systems and Using Linux
Module 6 Working with Files and Directories
Operating Systems and Using Linux
A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®
A shell is a user interface.
A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®
Presentation transcript:

A Practical Guide to Linux® Commands, Editors, and Shell Programming Mark G. Sobell A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 4-1 A family tree A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-2 A secretary’s directories A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-3 Directories and ordinary files A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-4 The file structure developed in the examples A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-5 The mkdir utility A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-6 Relative pathnames A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 4-7 Logging in and displaying the pathname of your home directory A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-8 cd changes your working directory A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-9 Absolute pathnames A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-10 A typical FHS-based Linux system file structure A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-11 Using mv to move names and temp A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-12 The columns displayed by the ls –l command A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 4-13 Using links to cross-classify files A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 4-14 Two links to the same file: /home/alex/letter and /home/jenny/draft A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 5-1 Using options A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-2 Processing the command line A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 5-3 The command does not know where standard input comes from or where standard output and standard error go A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 5-4 By default, standard input comes from the keyboard and standard output goes to the screen A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-5 The cat utility copies standard input to standard output A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-6 Redirecting standard output A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-7 cat with its output redirected A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-8 Using cat to catenate files A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-9 Redirecting standard input A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-10 cat with its input redirected A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-11 Redirecting and appending output A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 5-12 A pipe A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-13 Using a temporary file to store intermediate results A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Figure 5-14 A pipe doing the work of a temporary file A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0

Prentice Hall PTR, ISBN 0-13-147823-0 Figure 5-15 Using tee A Practical Guide to Linux® Commands, Editors, and Shell Programming © 2005 Mark G. Sobell Prentice Hall PTR, ISBN 0-13-147823-0