{"id":7771,"date":"2024-07-04T12:57:46","date_gmt":"2024-07-04T06:57:46","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/?post_type=mcq&#038;p=7771"},"modified":"2024-07-04T13:40:54","modified_gmt":"2024-07-04T07:40:54","slug":"which-is-used-to-copy-a-line-in-vi-editor","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-is-used-to-copy-a-line-in-vi-editor\/","title":{"rendered":"Which is used to copy a line in Vi editor?"},"content":{"rendered":"","protected":false},"author":1158,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[1505],"subject":[1504],"class_list":["post-7771","mcq","type-mcq","status-publish","hentry","topic-kali-linux","subject-operating-systems"],"mcq_note":"<strong>Copy the Line in Vi: \"Press yy\"<\/strong>\r\n\r\nThis command yanks (copies) the entire line where the cursor is located. '<strong>yy'<\/strong> stands for '<strong>yank line'.\u00a0<\/strong> The first y tells Vi that you want to yank (copy), and the second '<strong>y'<\/strong>\u00a0specifies that you want to yank the entire line.\r\n<ul>\r\n \t<li><strong>'cc'<\/strong> is used to change (delete and enter insert mode) the current line.<\/li>\r\n \t<li><strong>'cp'<\/strong> is not a valid Vi command for copying lines.<\/li>\r\n \t<li><strong>':copy'<\/strong> is not typically used for copying lines in the context of normal Vi usage.<\/li>\r\n<\/ul>","mcq_options":[{"right":"yes","answer":"yy"},{"right":"no","answer":"cc"},{"right":"no","answer":"cp"},{"right":"no","answer":":copy"}],"multi_answers":"no","subject_terms":[{"id":1504,"title":"Operating Systems","slug":"operating-systems"}],"topic_terms":[{"id":1505,"title":"Kali Linux","slug":"kali-linux"}],"_links":{"self":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq\/7771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/mcq"}],"about":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/types\/mcq"}],"author":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/users\/1158"}],"replies":[{"embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/comments?post=7771"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=7771"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=7771"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=7771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}