Practical 9 OSY
Practical 9 OSY
X.
Program Code: Teacher must assign a separate
Create a file OS and type at program statement to students.
i) Write command to save the least 30 lines in it.
ii) Write the command to file
insert text at the end of line.
ii) Replace some character into
iv) Write a beginning of second line.
command to delete 10 lines at a
V) Write a command to move cursor 3 wordtime.
to the right
XI. Result (0utput of Code):
CreadeS a new0 line for text Creates a newS line for text
entry beloco etrsor lo cation. erhg above curSOr locatio0
command = 0
Maharsbtro tate Board or Techoical Eiucution
Operating System (22516)
XIII. Exercise:
1. Write the significance of following.
S vi temp.txt
ii. Insert multiple lines.
ii. Delete contents using commands.
2 Create a new file and practice executing shell commands from within the editor.
Capture the results of some shell commands into the file.
3. How to get help?
(Space for Answer)
) 1svitenmptt
- Vi auill create the file emptt " for y0u. Save the file
tbatt gOu are in.Create a file usipg vi editor and ediiog
in Tnsert multiple lines :
In visUal blak mode you can pass. T to insert ext at
.......*.
the same position in mutiple lines and gou .......
cn press A
to append text to each lines in block. As auel as insering
or appending tex+ that gou ty. pe, you carn insert gr
appepd tex+ from register.
Por example,
the clipboatd
ii Delee contents usinq comm and.
line.we
Tt is important commaDd. Which can be to delete
COUn delete mlHple Iines at a tme using this command.
Script Pile_nm
Ex ecute commaDd
Run exit command
Cat filenm
open vi editor
6] Then cdick on help opho ps.