Introduction to unix
Download
1 / 32

Introduction to UNIX - PowerPoint PPT Presentation


  • 193 Views
  • Updated On :

Introduction to UNIX. donna Bair-Mundy. What is UNIX?. Applications. Operating System. Hardware. Operating system functions. Keeps track of types and locations of hardware. Intermediary between applications and hardware. Maintains directory of files. Manages how data is stored.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Introduction to UNIX' - mike_john


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Introduction to unix l.jpg

Introduction to UNIX

donna Bair-Mundy


What is unix l.jpg
What is UNIX?

Applications

Operating

System

Hardware


Operating system functions l.jpg
Operating system functions

Keeps track of types and

locations of hardware

Intermediary between applications and hardware

Maintains directory of files

Manages how data is stored


User instructions to operating system l.jpg
User instructions to operating system

When to run a program

Creating and naming directories

Copying files between directories or onto disks

Setting access permissions


Unix operating system l.jpg
Unix operating system

%

ls

myfile.txt

yourfile.txt

%

Command-line interface

Utilities—programs to list files, tell who is on the system, what processes are running, etc.

Editors—use to create HTML files for Web portals


Unix environment now l.jpg
Unix environment - now

terminals

Hi!

Ho!

Hi!

Ho!

host

terminals


Unix environment then l.jpg
Unix environment - then

host

terminals


Uhunix file structure l.jpg
UHUNIX file structure

Root

directory

bin

subdirectory

home

subdirectory

usr

subdirectory

1

subdirectory

18

subdirectory

24

subdirectory

donnab

Home directory

johnd

Home directory

nahl

Home directory


Basic uhunix commands l.jpg
Basic UHUNIX commands

pwdprint working directory

tells you where you are in the file hierarchy

lslist

lists files and subdirectories

cdchange directory

Moves you up or down in the file hierarchy

chmodchange mode

Assigns access rights to files and directories


More uhunix commands l.jpg
More UHUNIX commands

manmanual

man + command provides access to electronic help files

cpcopy

cp sourcefile destinationfile copies the source file to a file with the destination file name

rmremove file

Deletes a file

mkdirmake directory

Creates a new directory


Where am i pwd print working directory l.jpg
Where am I: pwd(print working directory)

%

pwd

/home/18/donnab

%


What files and directories do i have ls list files l.jpg
What files and directories do I have: ls (list files)

%

ls

aardvark.txt

mail

myfile.txt

public_html

whatsup.doc

%


The all files option ls a l.jpg
The "all files" option: ls -a

%

ls

-a

.

..

.addressbook

.cshrc

.inbox

.login

.logout

.pinerc

.signature

.ssh2

aardvark.txt

mail

myfile.txt

public_html

whatsup.doc

%


The long option ls l l.jpg
The "long' option: ls -l

%

ls

-l

-rw------- 1 donnab 47616 May 8 11:59 aardvark.txt

drwx------ 2 donnab 3584 Apr 10 2002 mail

-rw------- 1 donnab 45927 May 8 11:59 myfile.txt

drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html

%

ls -la


Changing my working directory cd change directory l.jpg
Changing my working directory: cd (change directory)

cd change directory

%

cd public_html

%

pwd

/home/18/donnab/public_html

%

cd fun/images

%

pwd

/home/18/donnab/public_html/fun/images

%


Changing to a higher level subdirectory cd l.jpg
Changing to a higher-level subdirectory: cd ..

/home/18/donnab/public_html/fun/images

%

cd ..

%

Note space preceding dots

pwd

/home/18/donnab/public_html/fun/

%

cd ..

%

pwd

/home/18/donnab/public_html/

%

cd /bin


Changing access rights to a file or directory chmod change mode part 1 l.jpg
Changing access rights to a file or directory: chmod(change mode, part 1)

%

ls -l

-rwx------ 1 donnab 47616 May 8 11:59 myfile.txt

drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html

%

- r w x - - - - - -

owner

group

public


Changing access rights to a file or directory chmod change mode part 2 l.jpg
Changing access rights to a file or directory: chmod(change mode, part 2)

%

ls -l

-rwx------ 1 donnab 47616 May 8 11:59 myfile.txt

drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html

%

chmod

755

myfile.txt

%

ls -l

-rwxr-xr-x 1 donnab 47616 May 8 11:59 myfile.txt

drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html

r w x r - x r - x

owner

group

public


Binary numbers part 1 l.jpg
Binary numbers (part 1)

Base 10

Base 2

1

2

7

1

1

1

1

1

1

1

100

10

1

64

32

16

8

4

2

1


Binary numbers part 2 l.jpg
Binary numbers (part 2)

Base 2

64

32

16

8

4

2

1

7

Decimal

7

- 4

3

Base two

1

1

1

- 2

+

+

= 7

1

4

2

1


Binary numbers part 3 l.jpg
Binary numbers (part 3)

Base 2

64

32

16

8

4

2

1

6

6

- 4

2

1

1

0

- 2

4 + 2 + 0 = 6

4

2

1

0


Binary numbers part 4 l.jpg
Binary numbers (part 4)

5

Base 2

4

2

1

0

1

1

1

0

0

1

0

1

Selection

A

Selection

B

Selection

C


Slide23 l.jpg
Oops…

5

Base 2

0

1

1

4

2

1

2

+

1

=

3

Try

again


Slide24 l.jpg
Oops…

5

Base 2

1

0

0

4

2

1

4

+

0

+

0

=

4

Try

again


Congratulations l.jpg
Congratulations!

5

Base 2

1

0

1

4

2

1

4

+ 0

+ 1

=

5

Yes!


Changing access rights to a file or directory chmod change mode part 3 l.jpg
Changing access rights to a file or directory: chmod (change mode, part 3)

%

chmod 755 myfile.txt

-rwxr-xr-x 1 donnab 47616 May 8 11:59 myfile.txt

drwxr-xr-x 5 donnab 1024 Mar 20 13:51 public_html

rwx r-x r-x

%

111 101 101

7

5

5

owner

group

public


Getting help man command l.jpg
Getting help: man command

%

man

chmod

User Commands chmod(1)

NAME

chmod - change the permissions mode of a file

DESCRIPTION

chmod changes or assigns the mode of a file. The mode of a file specifies its permissions and other attributes.


Getting help man k l.jpg
Getting help: man -k

%

man

-k

mode

|

more

access access (3f) - return access mode (r,w,x) or existence of a file

cggglm cggglm (3p) - solve a general Gauss-Markov linear model (GLM) problem

chmod chmod (3f) - change mode of a file

dggglm dggglm (3p) - solve a general Gauss-Markov linear model (GLM) problem

f77_ieee_environment f77_ieee_environment (3f) - mode, status, and signal handling for IEEE arithmetic

fegetprec fesetprec (3m) - control floating point rounding precision modes


Making back ups cp copy l.jpg
Making back-ups: cp (copy)

%

cp

myfile.txt

myfilebk.txt

%

ls

myfile.txt

myfilebk.txt

my_file.txt

my file.txt


Deleting a file rm remove l.jpg
Deleting a file: rm (remove)

%

ls

myfile.txt

myfilebk.txt

%

rm

myfilebk.txt

y

rm: remove myfilebk.txt (yes/no)?

%

ls

myfile.txt


Creating a new subdirectory mkdir make directory l.jpg
Creating a new subdirectory: mkdir (make directory)

%

mkdir

images

%

ls -l

drwx------ images

-rwx------ myfile.txt

%

chmod 755 images


Logging out of the system logout l.jpg
Logging out of the system: logout

%

logout

You are now logged out from the Sun

Tue Jul 8 11:20:18 HST 2003


ad