Reference no: EM132154495
UBUNTU / TERMINAL
Vi editing.
Open your terminal and connect to snowball server. Change your directory to your home directory (cd ~ ), and then create a new directory named as "PC2" (mkdir PC3). After that, go to directory PC2 (cd PC3) and please download a test file by the following command (internet access required):
cp /home/local/GSUAD/ylong4/public/CSC_Course.txt CSC_Course.txt
Be sure it succeeds using "ls" to see the file name "CSC_Course.txt" listed.
Please write the commands you will issue to complete the following tasks and answering corresponding questions step by step.
1) Use vi to open "CSC_Course.txt".
2) Display line number.
3) Move the cursor to line 181 col. 1 (the first character in line 181). What do you see in this line?
4) Search the word "OPERATING". Which line is this string located? (Please just write down the line number) Delete the word "OPERATING".
5) Delete the current line.
6) Substitute all "CSC" with "Computer Science" in the first 30 lines.
7) Copy three lines between line 143 and 145 to the beginning of the file.
8) Delete three lines between line 143 and 145.
9) Describe how to enter the text mode and key in " End: All CSc Courses " as the last line of the file.
10)Switch back to command mode.
11)Save the file and quit vi.