chapter 1-5 summary slides - university of...

125
Outline Chapter 1-5 Summary Slides Cam Macdonell Dept of Computing Science University of Alberta September 8th, 2005 Cam Macdonell Chapter 1-5 Summary Slides

Upload: lytu

Post on 19-Apr-2018

230 views

Category:

Documents


6 download

TRANSCRIPT

Page 1: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Outline

Chapter 1-5 Summary Slides

Cam Macdonell

Dept of Computing ScienceUniversity of Alberta

September 8th, 2005

Cam Macdonell Chapter 1-5 Summary Slides

Page 2: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

OutlineChapters 1-3Chapters 4-5

Getting Started with Unix

1 Unix and LinuxUnixLinux, BSD, Mac OS X

2 Introduction to ShellsAn Overview of ShellsAdjusting to ShellsBash and TcshLogging In

3 Using the Command LineBasic CommandsManaging FilesOther Commands

Cam Macdonell Chapter 1-5 Summary Slides

Page 3: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

OutlineChapters 1-3Chapters 4-5

Getting Started with Unix

4 File SystemsFile SystemsFilesWorking Directory

5 More on ShellsRunning a ProgramManuals and OptionsUseful Shell TipsSummary

Cam Macdonell Chapter 1-5 Summary Slides

Page 4: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and Linux

Part I

History of Unix and Linux

Cam Macdonell Chapter 1-5 Summary Slides

Page 5: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

The History of Unix

Unix was designed by Ken Thompson and Dennis Ritchie inthe ’70s at Bell Labs

It is a multi-user operating system that allows several peopleto use the computer at once

Since then many Unix-compatible OSes have been written

Cam Macdonell Chapter 1-5 Summary Slides

Page 6: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

The History of Unix

Unix was designed by Ken Thompson and Dennis Ritchie inthe ’70s at Bell Labs

It is a multi-user operating system that allows several peopleto use the computer at once

Since then many Unix-compatible OSes have been written

Cam Macdonell Chapter 1-5 Summary Slides

Page 7: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

The History of Unix

Unix was designed by Ken Thompson and Dennis Ritchie inthe ’70s at Bell Labs

It is a multi-user operating system that allows several peopleto use the computer at once

Since then many Unix-compatible OSes have been written

Cam Macdonell Chapter 1-5 Summary Slides

Page 8: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 9: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 10: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 11: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 12: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 13: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 1 - The (Brief) History of Unix and LinuxUnixLinux, BSD, Mac OS X

Unix popularity is growing

In the past Unix-like OSes predominantly used for servers

There are now several Unices in everyday desktop use

Linux and Mac OS X are the most common

Popular in Universities and research institutions

Most Unices are available for free in some way

They are also open-source

Cam Macdonell Chapter 1-5 Summary Slides

Page 14: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

Part II

Shells

Cam Macdonell Chapter 1-5 Summary Slides

Page 15: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells are very useful

Shells are a command-line interface (i.e. typing)

Used before GUIs were developed

Still used for speed (faster than GUIs) and functionality

there is a great deal more to shells that make them veryflexible and powerful

Cam Macdonell Chapter 1-5 Summary Slides

Page 16: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells are very useful

Shells are a command-line interface (i.e. typing)

Used before GUIs were developed

Still used for speed (faster than GUIs) and functionality

there is a great deal more to shells that make them veryflexible and powerful

Cam Macdonell Chapter 1-5 Summary Slides

Page 17: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells are very useful

Shells are a command-line interface (i.e. typing)

Used before GUIs were developed

Still used for speed (faster than GUIs) and functionality

there is a great deal more to shells that make them veryflexible and powerful

Cam Macdonell Chapter 1-5 Summary Slides

Page 18: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells are very useful

Shells are a command-line interface (i.e. typing)

Used before GUIs were developed

Still used for speed (faster than GUIs) and functionality

there is a great deal more to shells that make them veryflexible and powerful

Cam Macdonell Chapter 1-5 Summary Slides

Page 19: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells take time to learn

Can seem cryptic at the start

Require memorization of basic commands

ls,cd,mv,rm,man,info,find,gcc

Once you become comfortable you will prefer them for sometasks

Can be the source of comp sci ”holy wars”!

Cam Macdonell Chapter 1-5 Summary Slides

Page 20: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells take time to learn

Can seem cryptic at the start

Require memorization of basic commands

ls,cd,mv,rm,man,info,find,gcc

Once you become comfortable you will prefer them for sometasks

Can be the source of comp sci ”holy wars”!

Cam Macdonell Chapter 1-5 Summary Slides

Page 21: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells take time to learn

Can seem cryptic at the start

Require memorization of basic commands

ls,cd,mv,rm,man,info,find,gcc

Once you become comfortable you will prefer them for sometasks

Can be the source of comp sci ”holy wars”!

Cam Macdonell Chapter 1-5 Summary Slides

Page 22: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Shells take time to learn

Can seem cryptic at the start

Require memorization of basic commands

ls,cd,mv,rm,man,info,find,gcc

Once you become comfortable you will prefer them for sometasks

Can be the source of comp sci ”holy wars”!

Cam Macdonell Chapter 1-5 Summary Slides

Page 23: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Bash and Tcsh

The two most common shells are:

BASH: Bourne Again SHell

TCSH: Tenex C SHell

There are many more - zsh,ksh,...

Even Microsoft has a new shell for Windows Vista namedMonad

Cam Macdonell Chapter 1-5 Summary Slides

Page 24: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Bash and Tcsh

The two most common shells are:

BASH: Bourne Again SHell

TCSH: Tenex C SHell

There are many more - zsh,ksh,...

Even Microsoft has a new shell for Windows Vista namedMonad

Cam Macdonell Chapter 1-5 Summary Slides

Page 25: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Bash and Tcsh

The two most common shells are:

BASH: Bourne Again SHell

TCSH: Tenex C SHell

There are many more - zsh,ksh,...

Even Microsoft has a new shell for Windows Vista namedMonad

Cam Macdonell Chapter 1-5 Summary Slides

Page 26: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Bash and Tcsh

The two most common shells are:

BASH: Bourne Again SHell

TCSH: Tenex C SHell

There are many more - zsh,ksh,...

Even Microsoft has a new shell for Windows Vista namedMonad

Cam Macdonell Chapter 1-5 Summary Slides

Page 27: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Bash and Tcsh

The two most common shells are:

BASH: Bourne Again SHell

TCSH: Tenex C SHell

There are many more - zsh,ksh,...

Even Microsoft has a new shell for Windows Vista namedMonad

Cam Macdonell Chapter 1-5 Summary Slides

Page 28: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

How to log in to a machine

You can use a shell by opening a terminal program

In a networked environment computers are named

You log in to a machine in 2 ways

Sitting in front of itssh to it

To ssh, you must know the computer’s name

Cam Macdonell Chapter 1-5 Summary Slides

Page 29: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

How to log in to a machine

You can use a shell by opening a terminal program

In a networked environment computers are named

You log in to a machine in 2 ways

Sitting in front of itssh to it

To ssh, you must know the computer’s name

Cam Macdonell Chapter 1-5 Summary Slides

Page 30: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

How to log in to a machine

You can use a shell by opening a terminal program

In a networked environment computers are named

You log in to a machine in 2 ways

Sitting in front of itssh to it

To ssh, you must know the computer’s name

Cam Macdonell Chapter 1-5 Summary Slides

Page 31: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

How to log in to a machine

You can use a shell by opening a terminal program

In a networked environment computers are named

You log in to a machine in 2 ways

Sitting in front of itssh to it

To ssh, you must know the computer’s name

Cam Macdonell Chapter 1-5 Summary Slides

Page 32: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Logging In cont...

What’s your computer’s name?

Run the commanduname -a

To log in type ssh <machine name here>

Try logging in...

to ohaton.cs.ualberta.cato your neighbour’s machine (ask for the name)

See who’s logged in to your machine

run the command who

Cam Macdonell Chapter 1-5 Summary Slides

Page 33: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Logging In cont...

What’s your computer’s name?

Run the commanduname -a

To log in type ssh <machine name here>

Try logging in...

to ohaton.cs.ualberta.cato your neighbour’s machine (ask for the name)

See who’s logged in to your machine

run the command who

Cam Macdonell Chapter 1-5 Summary Slides

Page 34: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Logging In cont...

What’s your computer’s name?

Run the commanduname -a

To log in type ssh <machine name here>

Try logging in...

to ohaton.cs.ualberta.cato your neighbour’s machine (ask for the name)

See who’s logged in to your machine

run the command who

Cam Macdonell Chapter 1-5 Summary Slides

Page 35: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Logging In cont...

What’s your computer’s name?

Run the commanduname -a

To log in type ssh <machine name here>

Try logging in...

to ohaton.cs.ualberta.cato your neighbour’s machine (ask for the name)

See who’s logged in to your machine

run the command who

Cam Macdonell Chapter 1-5 Summary Slides

Page 36: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 2 - Getting Started

What Are Shells?More about ShellsTypes of ShellsLogging In To A Computer

Logging In cont...

What’s your computer’s name?

Run the commanduname -a

To log in type ssh <machine name here>

Try logging in...

to ohaton.cs.ualberta.cato your neighbour’s machine (ask for the name)

See who’s logged in to your machine

run the command who

Cam Macdonell Chapter 1-5 Summary Slides

Page 37: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line Utilities

Part III

Command Line Utilities

Cam Macdonell Chapter 1-5 Summary Slides

Page 38: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Common Utilities

Chapter 3 summarizes the most common utilities (pg. 70)

We will try out some of the most important...

Cam Macdonell Chapter 1-5 Summary Slides

Page 39: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Common Utilities

Chapter 3 summarizes the most common utilities (pg. 70)

We will try out some of the most important...

Cam Macdonell Chapter 1-5 Summary Slides

Page 40: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Listing, Viewing, Copying Files

list the files in a directory - ls

display a text file - cat

copy a file - cp

delete a file - rm (remove)

Cam Macdonell Chapter 1-5 Summary Slides

Page 41: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Listing, Viewing, Copying Files

list the files in a directory - ls

display a text file - cat

copy a file - cp

delete a file - rm (remove)

Cam Macdonell Chapter 1-5 Summary Slides

Page 42: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Listing, Viewing, Copying Files

list the files in a directory - ls

display a text file - cat

copy a file - cp

delete a file - rm (remove)

Cam Macdonell Chapter 1-5 Summary Slides

Page 43: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Listing, Viewing, Copying Files

list the files in a directory - ls

display a text file - cat

copy a file - cp

delete a file - rm (remove)

Cam Macdonell Chapter 1-5 Summary Slides

Page 44: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Listing, Viewing, Copying Files

list the files in a directory - ls

display a text file - cat

copy a file - cp

delete a file - rm (remove)

Cam Macdonell Chapter 1-5 Summary Slides

Page 45: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 46: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 47: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 48: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 49: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 50: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 51: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Let’s try it

create a simple file$ echo this is a simple file > simple

display the contents$ cat simple

tab completiontry typing ’cat sim’ and hitting the tab key

list the file$ ls

create a copy$ cp simple simple.copy

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 52: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

create a directory$ mkdir simple

oops! That name is already being used$ mkdir backups

move our copy in to the new directory$ mv simple.copy backups

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 53: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

create a directory$ mkdir simple

oops! That name is already being used$ mkdir backups

move our copy in to the new directory$ mv simple.copy backups

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 54: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

create a directory$ mkdir simple

oops! That name is already being used$ mkdir backups

move our copy in to the new directory$ mv simple.copy backups

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 55: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

create a directory$ mkdir simple

oops! That name is already being used$ mkdir backups

move our copy in to the new directory$ mv simple.copy backups

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 56: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

create a directory$ mkdir simple

oops! That name is already being used$ mkdir backups

move our copy in to the new directory$ mv simple.copy backups

list again (with more information)$ ls -l

Cam Macdonell Chapter 1-5 Summary Slides

Page 57: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

move in to directory$ cd backups

list$ ls -l

move back to the original directory$ cd .. (.. is a reference to one directory above)

Cam Macdonell Chapter 1-5 Summary Slides

Page 58: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

move in to directory$ cd backups

list$ ls -l

move back to the original directory$ cd .. (.. is a reference to one directory above)

Cam Macdonell Chapter 1-5 Summary Slides

Page 59: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

move in to directory$ cd backups

list$ ls -l

move back to the original directory$ cd .. (.. is a reference to one directory above)

Cam Macdonell Chapter 1-5 Summary Slides

Page 60: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

Add directories to the mix

move in to directory$ cd backups

list$ ls -l

move back to the original directory$ cd .. (.. is a reference to one directory above)

Cam Macdonell Chapter 1-5 Summary Slides

Page 61: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 62: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 63: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 64: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 65: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 66: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 3 - Command Line UtilitiesBasic CommandsManaging FilesOther Commands

There are thousands of commands

We have only scratched the surface

It will take time to learn

There are also lots of options for every command

like the ’-l’ option we saw for ls

The text book is a great reference

Some other very important commands are:gcc,grep,lpr,gdb,less,man

diff,tar,bzip2,find

The more you use a command line, the more comfortable youwill become

Cam Macdonell Chapter 1-5 Summary Slides

Page 67: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File System

Part IV

The Linux File System

Cam Macdonell Chapter 1-5 Summary Slides

Page 68: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

What Are File Systems

File systems organize data on hard disks

Hard disks are high volume, persistent and slow

Without being able to store data computers would not be veryuseful

You will have your own home directory in which you storeseveral GBs of data that can only be accessed by you fromany CS computer

Cam Macdonell Chapter 1-5 Summary Slides

Page 69: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

What Are File Systems

File systems organize data on hard disks

Hard disks are high volume, persistent and slow

Without being able to store data computers would not be veryuseful

You will have your own home directory in which you storeseveral GBs of data that can only be accessed by you fromany CS computer

Cam Macdonell Chapter 1-5 Summary Slides

Page 70: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

What Are File Systems

File systems organize data on hard disks

Hard disks are high volume, persistent and slow

Without being able to store data computers would not be veryuseful

You will have your own home directory in which you storeseveral GBs of data that can only be accessed by you fromany CS computer

Cam Macdonell Chapter 1-5 Summary Slides

Page 71: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

What Are File Systems

File systems organize data on hard disks

Hard disks are high volume, persistent and slow

Without being able to store data computers would not be veryuseful

You will have your own home directory in which you storeseveral GBs of data that can only be accessed by you fromany CS computer

Cam Macdonell Chapter 1-5 Summary Slides

Page 72: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Hierarchies

All modern file systems are hierarchical

Folders contain files and more folders (Fig 4-3)

The top or root of the file system

In Windows, it’s the drive name C: (but you can have severaldrives)In Unix, the / directory (called ’root’) is top

Your home directory is not at the root, it is several directoriesbelow

Cam Macdonell Chapter 1-5 Summary Slides

Page 73: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Hierarchies

All modern file systems are hierarchical

Folders contain files and more folders (Fig 4-3)

The top or root of the file system

In Windows, it’s the drive name C: (but you can have severaldrives)In Unix, the / directory (called ’root’) is top

Your home directory is not at the root, it is several directoriesbelow

Cam Macdonell Chapter 1-5 Summary Slides

Page 74: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Hierarchies

All modern file systems are hierarchical

Folders contain files and more folders (Fig 4-3)

The top or root of the file system

In Windows, it’s the drive name C: (but you can have severaldrives)In Unix, the / directory (called ’root’) is top

Your home directory is not at the root, it is several directoriesbelow

Cam Macdonell Chapter 1-5 Summary Slides

Page 75: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Hierarchies

All modern file systems are hierarchical

Folders contain files and more folders (Fig 4-3)

The top or root of the file system

In Windows, it’s the drive name C: (but you can have severaldrives)In Unix, the / directory (called ’root’) is top

Your home directory is not at the root, it is several directoriesbelow

Cam Macdonell Chapter 1-5 Summary Slides

Page 76: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Filenames

Every file has a name and may or may not have an extension

Some common extensions

compute.c - a C source filecompute.o - an object code fileassn1.tar.gz - an compressed archive filereport.pdf - a PDF file

Extensions are not always necessary in Unix, but can behelpful to know what a file is used for

Cam Macdonell Chapter 1-5 Summary Slides

Page 77: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Filenames

Every file has a name and may or may not have an extension

Some common extensions

compute.c - a C source filecompute.o - an object code fileassn1.tar.gz - an compressed archive filereport.pdf - a PDF file

Extensions are not always necessary in Unix, but can behelpful to know what a file is used for

Cam Macdonell Chapter 1-5 Summary Slides

Page 78: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Filenames

Every file has a name and may or may not have an extension

Some common extensions

compute.c - a C source filecompute.o - an object code fileassn1.tar.gz - an compressed archive filereport.pdf - a PDF file

Extensions are not always necessary in Unix, but can behelpful to know what a file is used for

Cam Macdonell Chapter 1-5 Summary Slides

Page 79: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

The Working Directory

With a command line, you are always working in a particulardirectory called the current working directory

To see what it is, run the command: pwd - try it!

The hierarchy can cause some confusion

ls tmp - list the contents of tmp under the working directoryls /tmp - list the contents of tmp under the root directoryWARNING: one little slash ’/’ at the start of a filename makea lot of difference

Other important characters

a single dot (.) refers to the current directory - try ls .a double dot (..) refers to the directory up the hierarchy - tryls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 80: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

The Working Directory

With a command line, you are always working in a particulardirectory called the current working directory

To see what it is, run the command: pwd - try it!

The hierarchy can cause some confusion

ls tmp - list the contents of tmp under the working directoryls /tmp - list the contents of tmp under the root directoryWARNING: one little slash ’/’ at the start of a filename makea lot of difference

Other important characters

a single dot (.) refers to the current directory - try ls .a double dot (..) refers to the directory up the hierarchy - tryls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 81: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

The Working Directory

With a command line, you are always working in a particulardirectory called the current working directory

To see what it is, run the command: pwd - try it!

The hierarchy can cause some confusion

ls tmp - list the contents of tmp under the working directoryls /tmp - list the contents of tmp under the root directoryWARNING: one little slash ’/’ at the start of a filename makea lot of difference

Other important characters

a single dot (.) refers to the current directory - try ls .a double dot (..) refers to the directory up the hierarchy - tryls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 82: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

The Working Directory

With a command line, you are always working in a particulardirectory called the current working directory

To see what it is, run the command: pwd - try it!

The hierarchy can cause some confusion

ls tmp - list the contents of tmp under the working directoryls /tmp - list the contents of tmp under the root directoryWARNING: one little slash ’/’ at the start of a filename makea lot of difference

Other important characters

a single dot (.) refers to the current directory - try ls .a double dot (..) refers to the directory up the hierarchy - tryls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 83: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

The Working Directory

With a command line, you are always working in a particulardirectory called the current working directory

To see what it is, run the command: pwd - try it!

The hierarchy can cause some confusion

ls tmp - list the contents of tmp under the working directoryls /tmp - list the contents of tmp under the root directoryWARNING: one little slash ’/’ at the start of a filename makea lot of difference

Other important characters

a single dot (.) refers to the current directory - try ls .a double dot (..) refers to the directory up the hierarchy - tryls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 84: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Managing Directories

You can make as many directories as you like

mkdir is the command to make a directory

rmdir is the command to delete a directory

But, the directory must be empty before it can be removed

ls lists the contents of a directory

by default, it lists the working directory - ls and ls . do thesame thingBut, you can provide a directory name

ls simple

ls mydir

ls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 85: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Managing Directories

You can make as many directories as you like

mkdir is the command to make a directory

rmdir is the command to delete a directory

But, the directory must be empty before it can be removed

ls lists the contents of a directory

by default, it lists the working directory - ls and ls . do thesame thingBut, you can provide a directory name

ls simple

ls mydir

ls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 86: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Managing Directories

You can make as many directories as you like

mkdir is the command to make a directory

rmdir is the command to delete a directory

But, the directory must be empty before it can be removed

ls lists the contents of a directory

by default, it lists the working directory - ls and ls . do thesame thingBut, you can provide a directory name

ls simple

ls mydir

ls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 87: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Managing Directories

You can make as many directories as you like

mkdir is the command to make a directory

rmdir is the command to delete a directory

But, the directory must be empty before it can be removed

ls lists the contents of a directory

by default, it lists the working directory - ls and ls . do thesame thingBut, you can provide a directory name

ls simple

ls mydir

ls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 88: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 4 - The Linux File SystemFile SystemsFilesWorking Directory

Managing Directories

You can make as many directories as you like

mkdir is the command to make a directory

rmdir is the command to delete a directory

But, the directory must be empty before it can be removed

ls lists the contents of a directory

by default, it lists the working directory - ls and ls . do thesame thingBut, you can provide a directory name

ls simple

ls mydir

ls ..

Cam Macdonell Chapter 1-5 Summary Slides

Page 89: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Part V

Shells

Cam Macdonell Chapter 1-5 Summary Slides

Page 90: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Running a program

A shell is used to run programs and perform tasks

Our notation is to use a dollar sign ($) as the prompt

Typically your prompt will look like this[cam@ug01 ]$

To run a program, you type its name and any arguments thatgo with it

The first word on a line is the program, everything after is anoption or an argument

examples

$ ls -l ..$ gcc compute.c$ grep -i int compute.c

Cam Macdonell Chapter 1-5 Summary Slides

Page 91: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Running a program

A shell is used to run programs and perform tasks

Our notation is to use a dollar sign ($) as the prompt

Typically your prompt will look like this[cam@ug01 ]$

To run a program, you type its name and any arguments thatgo with it

The first word on a line is the program, everything after is anoption or an argument

examples

$ ls -l ..$ gcc compute.c$ grep -i int compute.c

Cam Macdonell Chapter 1-5 Summary Slides

Page 92: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Running a program

A shell is used to run programs and perform tasks

Our notation is to use a dollar sign ($) as the prompt

Typically your prompt will look like this[cam@ug01 ]$

To run a program, you type its name and any arguments thatgo with it

The first word on a line is the program, everything after is anoption or an argument

examples

$ ls -l ..$ gcc compute.c$ grep -i int compute.c

Cam Macdonell Chapter 1-5 Summary Slides

Page 93: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Running a program

A shell is used to run programs and perform tasks

Our notation is to use a dollar sign ($) as the prompt

Typically your prompt will look like this[cam@ug01 ]$

To run a program, you type its name and any arguments thatgo with it

The first word on a line is the program, everything after is anoption or an argument

examples

$ ls -l ..$ gcc compute.c$ grep -i int compute.c

Cam Macdonell Chapter 1-5 Summary Slides

Page 94: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Running a program

A shell is used to run programs and perform tasks

Our notation is to use a dollar sign ($) as the prompt

Typically your prompt will look like this[cam@ug01 ]$

To run a program, you type its name and any arguments thatgo with it

The first word on a line is the program, everything after is anoption or an argument

examples

$ ls -l ..$ gcc compute.c$ grep -i int compute.c

Cam Macdonell Chapter 1-5 Summary Slides

Page 95: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Manuals and Options

Some programs have hundreds of options

They are used to give a program flexibility and differentbehaviours

Check out the options for ls (or any program) by looking inits manual

type man and the program name to see that program’s manualtry man lstry man catand yes even man man

Manual pages are great resources, make using them a habit

Cam Macdonell Chapter 1-5 Summary Slides

Page 96: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Manuals and Options

Some programs have hundreds of options

They are used to give a program flexibility and differentbehaviours

Check out the options for ls (or any program) by looking inits manual

type man and the program name to see that program’s manualtry man lstry man catand yes even man man

Manual pages are great resources, make using them a habit

Cam Macdonell Chapter 1-5 Summary Slides

Page 97: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Manuals and Options

Some programs have hundreds of options

They are used to give a program flexibility and differentbehaviours

Check out the options for ls (or any program) by looking inits manual

type man and the program name to see that program’s manualtry man lstry man catand yes even man man

Manual pages are great resources, make using them a habit

Cam Macdonell Chapter 1-5 Summary Slides

Page 98: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Manuals and Options

Some programs have hundreds of options

They are used to give a program flexibility and differentbehaviours

Check out the options for ls (or any program) by looking inits manual

type man and the program name to see that program’s manualtry man lstry man catand yes even man man

Manual pages are great resources, make using them a habit

Cam Macdonell Chapter 1-5 Summary Slides

Page 99: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Manuals and Options

Some programs have hundreds of options

They are used to give a program flexibility and differentbehaviours

Check out the options for ls (or any program) by looking inits manual

type man and the program name to see that program’s manualtry man lstry man catand yes even man man

Manual pages are great resources, make using them a habit

Cam Macdonell Chapter 1-5 Summary Slides

Page 100: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 101: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 102: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 103: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 104: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 105: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 106: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

The Wild Card *

What if you want to remove all the files in a directory?

Do you have to list them all manually?

You can use the wild card character *

The * will match any string characters

try ls t* - list all file that begin with a ’t’try rm a*c - remove all files that begin with ’a’ and end in ’c’Don’t try this: rm * - this will remove all files in the currentdirectoryBE CAREFUL when removing files! - there’s no recycle bin inshellsQuestion: What files will ls c*.*t list?

The wild card will work with any command line program, itspart of the shell, not a particular program like ls or rm

Cam Macdonell Chapter 1-5 Summary Slides

Page 107: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction

Some programs like ls and cat display output

You can capture this output for use with other programs

It’s called re-direction

Cam Macdonell Chapter 1-5 Summary Slides

Page 108: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction

Some programs like ls and cat display output

You can capture this output for use with other programs

It’s called re-direction

Cam Macdonell Chapter 1-5 Summary Slides

Page 109: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction

Some programs like ls and cat display output

You can capture this output for use with other programs

It’s called re-direction

Cam Macdonell Chapter 1-5 Summary Slides

Page 110: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to and from file

Let’s try redirecting output from a program to a file

$ ls -l > ls.out$ cat ls.out$ who > who.out

Careful! Redirecting can overwrite the file if it already exists

Let’s try redirecting data from a file into a program

$ cat < who.out

Cam Macdonell Chapter 1-5 Summary Slides

Page 111: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to and from file

Let’s try redirecting output from a program to a file

$ ls -l > ls.out$ cat ls.out$ who > who.out

Careful! Redirecting can overwrite the file if it already exists

Let’s try redirecting data from a file into a program

$ cat < who.out

Cam Macdonell Chapter 1-5 Summary Slides

Page 112: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to and from file

Let’s try redirecting output from a program to a file

$ ls -l > ls.out$ cat ls.out$ who > who.out

Careful! Redirecting can overwrite the file if it already exists

Let’s try redirecting data from a file into a program

$ cat < who.out

Cam Macdonell Chapter 1-5 Summary Slides

Page 113: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 114: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 115: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 116: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 117: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 118: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 119: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Re-Direction to another program

grep is useful program that finds strings that match a searchstring

Let’s try redirecting output to the grep program

ps aux lists all the programs running on a computers - there’slots!

But what if we only want to know how many bash shells arerunning

We’ll get grep to pick out the lines that have the word ’bash’in them

$ ls -l grep bash

The pipe — sends data out of one program into another

Read about standard input and standard output on pp.115-123

Cam Macdonell Chapter 1-5 Summary Slides

Page 120: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides

Page 121: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides

Page 122: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides

Page 123: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides

Page 124: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides

Page 125: Chapter 1-5 Summary Slides - University of Albertaugweb.cs.ualberta.ca/~c201/labs/lab1/chap1-5.pdf · Chapter 1 - The (Brief) ... Popular in Universities and research institutions

Chapter 5 - The Shell

Running a ProgramManuals and OptionsUseful Shell TipsSummary

Summary

Shells are very powerful and complex tools for working with acomputer

They can take time to master and there’s always more to learn

Remember to play around with them and try different things

No matter how much you use them, you will always belearning new ways that shells can help you to work moreefficiently

...and defending your shell to the death versus others!

your allegiance to your shell will only be eclipsed by yourallegiance to your editor - the Next Chapter!

Cam Macdonell Chapter 1-5 Summary Slides