3.8 perform basic file editing operations using vi

32
Red Hat and Fedora learning under GNU Free Documentation License - Copyleft (c) Acácio Oliveira 2012 d to copy and distribute verbatim copies of this license document, changing is allowed System Administration

Upload: acacio-oliveira

Post on 17-Jul-2015

36 views

Category:

Technology


0 download

TRANSCRIPT

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

System Administration

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

Key Knowledge Areas

Navigate a document using vi. Use basic vi modes. Insert, edit, delete, copy and find text.

Unix Commands

Perform basic file editing operations using vi

Terms and Utilities

vi /, ? h,j,k,l i, o, a c, d, p, y, dd, yy ZZ, :w!, :q!, :e!

2

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

3

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

4

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

5

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

6

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

7

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

8

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

9

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

10

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

11

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

12

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

13

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

14

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

15

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

16

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

17

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

18

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

19

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

20

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

21

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

22

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

23

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

24

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

25

Range

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

26

Character Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

27

Word Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

28

Line Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

29

Sentence Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

30

Paragraph Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

basic file editing operations using vi

vi

31

Block Objects

Core

Lin

ux fo

r Red

Hat

and

Fed

ora

lear

ning

und

er G

NU

Fre

e D

ocum

enta

tion

Lice

nse

- Co

pyle

ft (c

) Acá

cio

Oliv

eira

201

2E

very

one

is p

erm

itted

to

copy

and

dis

trib

ute

verb

atim

cop

ies

of t

his

licen

se d

ocum

ent,

cha

ngin

g is

allo

wed

Fim de sessão

32