{"id":7765,"date":"2024-07-03T02:08:34","date_gmt":"2024-07-02T20:08:34","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/?post_type=mcq&#038;p=7765"},"modified":"2024-07-03T20:11:17","modified_gmt":"2024-07-03T14:11:17","slug":"which-utility-is-used-to-rename-files-ordirectories-in-linux","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-utility-is-used-to-rename-files-ordirectories-in-linux\/","title":{"rendered":"Which utility is used to rename files ordirectories in Linux?"},"content":{"rendered":"","protected":false},"author":1158,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[1505],"subject":[1504],"education_level":[],"class_list":["post-7765","mcq","type-mcq","status-publish","hentry","topic-kali-linux","subject-operating-systems"],"mcq_note":"<strong>The utility used to rename files or directories in Linux is \"mv\" (short for \"move\").<\/strong>\r\n\r\nFor example, to rename a file: <strong>file.txt to newfile.txt<\/strong>\r\n\r\n<span style=\"text-decoration: underline\"><strong>Changes both the file's owner and group Explanation of the options provided:<\/strong><\/span>\r\n<ul>\r\n \t<li><strong>rm:<\/strong> This command is used to remove (delete) files or directories, not to rename them.<\/li>\r\n \t<li><strong>mv:<\/strong> This command is used to move (and therefore rename) files or directories in Linux.<\/li>\r\n \t<li><strong>cp:<\/strong> This command is used to copy files or directories, not to rename them.<\/li>\r\n \t<li><strong>rename:<\/strong> While there is a rename command in some distributions, it is not typically used for simple renaming of files or directories as mv is more commonly used for this purpose.<\/li>\r\n<\/ul>\r\n&nbsp;","mcq_options":[{"right":"no","answer":"rm"},{"right":"yes","answer":"mv"},{"right":"no","answer":"cp"},{"right":"no","answer":"rename"}],"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\/7765","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=7765"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=7765"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=7765"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=7765"},{"taxonomy":"education_level","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/education_level?post=7765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}