Which of the following commands will extract and display just printable ASCII text from binary files?
| You | Correct | |
|---|---|---|
| * | strings | |
| cat | ||
| display | ||
| * | showtxt |
Given the Linux kernel version number 2.3.17, which of the following statements is true?
| You | Correct | |
|---|---|---|
| * | * | A minor number of 3 indicates that this is a development kernel. |
| This kernel has a patch-level of 3. | ||
| This kernel includes 17 patches. | ||
| A major number of 2 indicates that this is a stable kernel. |
Which of the following commands can be used to search within a file for lines matching a regular expression and print matching lines to the screen?
| You | Correct | |
|---|---|---|
| * | grep | |
| strings | ||
| * | head | |
| cat |
Which of the following are possible ways of logging into a Linux system?
| You | Correct | |
|---|---|---|
| * | * | Over a serial connected terminal |
| * | * | Using a virtual console |
| * | * | Via a graphical login |
| * | Using SSH across the network |
Suppose you have a log file consisting of several hundred thousand lines of ASCII text. Which of the following commands would be an efficient way to page through the contents of the log file?
| You | Correct | |
|---|---|---|
| * | less | |
| head | ||
| cat | ||
| * | more |
By default, the grep command performs case-insensitive matches using the pattern you provide?
| You | Correct | |
|---|---|---|
| true | ||
| * | * | false |
Suppose you have a log file consisting of several hundred lines of ASCII text. Which of the following commands will display the entire contents of the file to STDOUT (without stopping)?
| You | Correct | |
|---|---|---|
| * | cat | |
| head | ||
| less | ||
| * | view |
Which of the following statements regarding the cut command are true?
| You | Correct | |
|---|---|---|
| * | * | allows you to specify which fields you want to extract |
| * | allows you to specify what field delimiter is used | |
| * | * | only extracts text based on delimited fields |
| can extract text that matches a specified regular expression | ||
| * | always extracts only the first field | |
| requires that you use TAB characters for field delimiters |
The file command operates recursively (descending into subdirectories) by default.
| You | Correct | |
|---|---|---|
| * | true | |
| * | false |
Which of the following is generally considered the first Linux distribution?
| You | Correct | |
|---|---|---|
| * | SLS | |
| Slackware | ||
| * | Red Hat | |
| SUSE | ||
| Gentoo |
Who formed the GNU Project?
| You | Correct | |
|---|---|---|
| * | * | Richard Stallman |
| Dennis Ritchie | ||
| Linus Torvalds | ||
| Steve Ballmer |
Which of the following most closely describes what the term "Free Software" is intended to convey?
| You | Correct | |
|---|---|---|
| * | Refers to the users' freedom to run, copy, distribute, study, change and improve the software. | |
| * | Refers to the fact that the software does not cost any money to purchase. | |
| Refers to the fact that the software did not cost any money to develop. | ||
| Refers to the software's ability to freely run on any combination of hardware and software. |
The find command can locate files based on which of the following criteria?
| You | Correct | |
|---|---|---|
| * | * | file size |
| * | * | file name |
| * | * | file owner |
| * | * | file permissions |
| file contents |
Which of the following commands would delete all files in the /tmp directory owned by the john user?
| You | Correct | |
|---|---|---|
| * | # find /tmp -user john -exec rm {} \; | |
| * | # find /tmp -user john -rm {} \; | |
| # find /tmp -user john -exec rm ;\ | ||
| # find /tmp -user john -exec rm {} ; |
The cut command is used to trim lines off the end of long text files.
| You | Correct | |
|---|---|---|
| * | true | |
| * | false |
The term "Free Software" refers to the price of the software and is intended to convey the idea that the software in question does not cost any money.
| You | Correct | |
|---|---|---|
| * | true | |
| * | false |
Who formed the Free Software Foundation?
| You | Correct | |
|---|---|---|
| * | * | Richard Stallman |
| Ken Thompson | ||
| Linus Torvalds | ||
| Steve Jobs |
Which of the statements correctly describes the effect of running the following command: grep -v '^#' foo | grep bar?
| You | Correct | |
|---|---|---|
| * | Returns all lines containing the word bar that do not start with the # sign in the file named foo | |
| Places all lines from the foo file containing the literal character pattern ^# in the file named bar | ||
| Returns all lines containing the word foo that start with the # sign in the file named bar | ||
| * | Returns all lines containing the word bar that end with the # sign in the file named foo |
The Linux kernel was originally written by which of the following people:
| You | Correct | |
|---|---|---|
| * | Linus Torvalds | |
| * | Richard Stallman | |
| Ken Thompson | ||
| Guido van Rossum |
The paste command can be used to combine the contents of several files together into TAB separated columns.
| You | Correct | |
|---|---|---|
| * | * | true |
| false |