Some multiple choice questions of Computer Science: Linux command;
Actually I can google it but the choice here is a little..unclear. So I can't make sure..Thank you!
1:What does the Linux command “cat” do?
a. copy the contents of a file to the screen
b. count the number of characters in a file
c. create a Linux catalog
d. open up an edit session allowing you to modify a file
2:Which of the following Linux commands is best for getting “help” on the syntax and format of a Linux command?
a. grep
b. rm -r
c. ls -l
d. man
3:The linux command “>”
a. redirects the output of a command into a file
b. compares two files to see which one is larger
c. does nothing. “>” is NOT a linux command.
d. compares two files and displays all the differences
Thank You!
Ans:
1) (A)
In the below example, it will show contents of /etc/passwd file.
# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/sbin/nologin narad:x:500:500::/home/narad:/bin/bash
2) (D)
The man command is used to format and display the man pages. The man pages are a user manual that hey provide extensive documentation about commands.
3) (A)
Some multiple choice questions of Computer Science: Linux command; Actually I can google it but the...
QUESTION 1 What will be the output of following Unix command: find / -name ‘*’ A. List all files and directories recursively starting from / B. List a file names * in / C. List all files in / directory D. List all files and directories in / directory QUESTION 2 Which command is used to extract a column/field from a text file / input. A. paste B. get C. cut D. tar QUESTION 3 Which command creates an empty...
19. UNIX/Linux normally include two editors: vi and (choose the single best answer). 20. You can use thecommand to create empty a create b. make c touch d mu 21. Which command can be used to leave vi temporarily to access the command line? 22 If you execute the contents of filel are sorted and the results are stored in file2. a sort file1 -ofile2 b. sort file1 >file2 c sort filel -d file2 d sort filel filez field or...
Unix HOMEWORK HELP!! Simple Multiple Choice. I have answered these questions, but I want to ask online, to get second feedback and make sure I am on the right page What is the diffference bettween a willd card and a regular expression? a.) A willd carrd is the * chharacter, butt a rregular excpression caan usse morre symbols. b.) Wild cards are pattterns expandded by the shhell. A reggular expression is a pattern used by commands, internally. c.) There is...
do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...
You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...
Risk management in Information Security today Everyday information security professionals are bombarded with marketing messages around risk and threat management, fostering an environment in which objectives seem clear: manage risk, manage threat, stop attacks, identify attackers. These objectives aren't wrong, but they are fundamentally misleading.In this session we'll examine the state of the information security industry in order to understand how the current climate fails to address the true needs of the business. We'll use those lessons as a foundation...