Top Banner
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
32
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 3.8 perform basic file editing operations using vi

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

Page 2: 3.8 perform basic file editing operations using vi

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

Page 3: 3.8 perform basic file editing operations using vi

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

Page 4: 3.8 perform basic file editing operations using vi

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

Page 5: 3.8 perform basic file editing operations using vi

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

Page 6: 3.8 perform basic file editing operations using vi

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

Page 7: 3.8 perform basic file editing operations using vi

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

Page 8: 3.8 perform basic file editing operations using vi

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

Page 9: 3.8 perform basic file editing operations using vi

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

Page 10: 3.8 perform basic file editing operations using vi

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

Page 11: 3.8 perform basic file editing operations using vi

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

Page 12: 3.8 perform basic file editing operations using vi

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

Page 13: 3.8 perform basic file editing operations using vi

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

Page 14: 3.8 perform basic file editing operations using vi

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

Page 15: 3.8 perform basic file editing operations using vi

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

Page 16: 3.8 perform basic file editing operations using vi

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

Page 17: 3.8 perform basic file editing operations using vi

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

Page 18: 3.8 perform basic file editing operations using vi

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

Page 19: 3.8 perform basic file editing operations using vi

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

Page 20: 3.8 perform basic file editing operations using vi

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

Page 21: 3.8 perform basic file editing operations using vi

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

Page 22: 3.8 perform basic file editing operations using vi

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

Page 23: 3.8 perform basic file editing operations using vi

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

Page 24: 3.8 perform basic file editing operations using vi

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

Page 25: 3.8 perform basic file editing operations using vi

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

Page 26: 3.8 perform basic file editing operations using vi

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

Page 27: 3.8 perform basic file editing operations using vi

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

Page 28: 3.8 perform basic file editing operations using vi

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

Page 29: 3.8 perform basic file editing operations using vi

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

Page 30: 3.8 perform basic file editing operations using vi

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

Page 31: 3.8 perform basic file editing operations using vi

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

Page 32: 3.8 perform basic file editing operations using vi

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