P. 1
Linux Slides1 to 800

Linux Slides1 to 800

|Views: 340|Likes:
Published by muitnep4

More info:

Published by: muitnep4 on Feb 11, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

02/02/2012

pdf

text

original

Number of configuration are available in vi editor, see some of
example .

:set number - shows a line number on the left margin in a vi

editor

:set showmatch - when a right curly braces or a right paranthesis
is typed, a cursor will jump to the matching left curly braces or
left paranthesis.

:set all - it shows all configurations.

Set number

File contents.

To assign numbers
to all line in vi
editor.

Set number

Set all

To view all the
possibilities of
configurations
available in vi
editor.

All the available
option are
displayed here.

Set all

Redirecting Input and Output

Ouput of a command is redirected to a file
–Command > filename
Example ls -l > /root/file1
Example ls -i >> /root/file1

Output of file redirected to a command
–Command < filename
Example - cat < file1

•Error message of a command redirected to a file
-Command 2> file1
-Command 2>> file1
- Example – ll –L > file1

The output of ls
command is
redirected to the
file named ex.

Here the file is
overwritten by the
output of ls
command.

Redirecting Input and Output

The output of ls
command is
redirected to the
file named ex1.

Redirecting Input and Output

Here the output of
ls command is
appended to the
ex1 file.

Redirecting Input and Output

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->