Get the App
SLTechnology News&Howtos  ›  Servers  › 

Practice experience of vi Editor in linux

Shulou Source: shulou.com Published: 2022-06-02 02:56:16 10月03日 Update

1. Write a document test.txt in vi and store it in the user's home directory, as follows:

Plagiarism is breach of Integrity.It is a form of cheating in assessment and may occur in oral,written or visual presentations.

Plagiarism covers an of inappropriate behaviours,includeing:

Failure to properly document a source Collusion between students or other people or tutors Copying another student's work

Purchasing pre-written or on-demand papers from the numerous paper mills and cheat sites Submitting work that you have previously submitted for another course

(1) Save this file as test2.txt and store it in the user's home directory.

Use the vi editor to edit test.txt before using the mv command to modify its name

Finally, use mv to move to the user's home directory

(2) A word Academic is missing in the first line. Add it before the word Intergrity.

(3) the varity in the third line is missing an e and should be changed to variety. Please correct it.

(4) the letter of failure should be a capital F, please correct it.

(5) reverse the order of the penultimate lines (using the copy and paste function).

(6) delete the line that contains Collusion.

(7) read the contents of / etc/passwd file into the end of the article.

(8) there is an extension command that can quickly replace all Plagiarism. Now replace all the words PLAGIARISM with this command, as follows:

: 1 PLAGIARISM PlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarism

(9) undo the previous operation (with the command u) and replace it with the following command. User confirmation is required for each replacement. The command is as follows:

: 1 language plagiarismplagiarismplagiarismplagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiarismPlagiaris

(10) check whether the modification is correct, make sure it is correct, save the file and exit.

The above is the whole content of this article on the practice of vi editor. I hope our arrangement will be useful to you.

Tags: Command content word head of household file directory editor line article user experience function name uppercase letter that is document useful end face Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MySQL Docker OPPO Reno MariaDB