{"id":7763,"date":"2024-07-03T01:45:19","date_gmt":"2024-07-02T19:45:19","guid":{"rendered":"https:\/\/mcqacademy.com\/en\/?post_type=mcq&#038;p=7763"},"modified":"2024-07-03T02:03:10","modified_gmt":"2024-07-02T20:03:10","slug":"which-of-these-commands-do-we-use-just-counting-the-total-number-of-lines-a-file-contains","status":"publish","type":"mcq","link":"https:\/\/mcqacademy.com\/en\/mcq\/which-of-these-commands-do-we-use-just-counting-the-total-number-of-lines-a-file-contains\/","title":{"rendered":"Which of these commands do we use just counting the total number of lines a file contains?"},"content":{"rendered":"","protected":false},"author":1158,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","topic":[1505],"subject":[1504],"class_list":["post-7763","mcq","type-mcq","status-publish","hentry","topic-kali-linux","subject-operating-systems"],"mcq_note":"<strong>To count just the total number of lines that a file contains in Linux, use the \"wc\" command with the \"-l\" option.<\/strong>\r\n\r\n<span style=\"text-decoration: underline\"><strong>Explanation of the options provided:<\/strong><\/span>\r\n<ul>\r\n \t<li><strong>wc -l:<\/strong> Counts the number of lines in the specified file.<\/li>\r\n \t<li><strong>wc -c:<\/strong> Counts the number of bytes in the specified file.<\/li>\r\n \t<li><strong>wc -w:<\/strong> Counts the number of words in the specified file.<\/li>\r\n \t<li><strong>wc -r:<\/strong> Recursively counts lines, words, and characters in directories.<\/li>\r\n<\/ul>","mcq_options":[{"right":"yes","answer":"wc -l"},{"right":"no","answer":"wc -c"},{"right":"no","answer":"wc -w"},{"right":"no","answer":"wc -r"}],"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\/7763","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=7763"}],"wp:attachment":[{"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/media?parent=7763"}],"wp:term":[{"taxonomy":"topic","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/topic?post=7763"},{"taxonomy":"subject","embeddable":true,"href":"https:\/\/mcqacademy.com\/en\/wp-json\/wp\/v2\/subject?post=7763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}