Question
Unix/Linux 1. At your home directory, create a new file test1 which contains the following 2 lines, save and exit. Hello, This is my vi
Unix/Linux
1. At your home directory, create a new file test1 which contains the following 2 lines, save and exit.
Hello, This is my vi test file SOI Asia project stands for School of Internet Asia project |
2. Edit file test1 to contain the following content. Change content on the first line by using command x to delete unwanted characters and then inserting the desired texts. Then use G to go to the last line and press o to insert text at the last line..
Hello, This is my second practice SOI Asia project stands for School of Internet Asia project And I am one of operator team member of SOI Asia project |
3. Search all occurrences of the word project in file test1 using the command / and n.
4. Replace all occurrences of the word project with the word activity, save to new file name test2. Check that the content of the file test1 and test2 are different.
5. Edit file test2 and delete the last line using command dd. Then copy the remaining 2 lines and paste it 5 times. Now test2 will contain following content, save but dont exit vi.
Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity |
6. Moving to Line 7 of file test2 using command 7G and delete the last 4 lines of file by command 4dd and then undelete using p.
7. Copy and paste first line 3 times, save and exit. Final content of file test2 is
Hello, This is my second practice Hello, This is my second practice Hello, This is my second practice Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity Hello, This is my second practice SOI Asia activity stands for School of Internet Asia activity |
You must provide screenshots of each output with the title of each screenshot. save the output in your word document as an attachment and submit.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started