adds the data assets

This commit is contained in:
waldek 2021-05-23 16:29:05 +02:00
parent 320cb4dfe2
commit 62b5b31deb
2 changed files with 124 additions and 0 deletions

100
data/list_book1.csv Normal file
View File

@ -0,0 +1,100 @@
"LEVEL","ANSWER","QUESTION",1,2,3,4,5
"010-160",,"Which of the following is **not** a function of the Linux kernel?","Allocating memory for use by programs","Allocating CPU time for use by programs","Creating menus in GUI programs","Controlling access to the hard disk","Enabling programs to use a network"
"010-160",,"Which of the following is an example of an embedded Linux OS?","Android","SUSE","CentOS","Debian","Fedora"
"010-160",,"Which of the following is a notable difference between Linux and Mac OS X? ","Linux can run common GNU programs whereas OS X cannot.","Linux's GUI is based on the X Window System whereas OS X's is not.","Linux cannot run on Apple Macintosh hardware whereas OS X can run only on Apple hardware.","Linux relies heavily on BSD software whereas OS X uses no BSD software.","Linux supports text-mode commands but OS X is a GUI-only OS."
"010-160",2,"True or false: The Linux kernel is derived from the BSD kernel.","True","False",,,
"010-160",2,"True or false: If you log into a Linux system in graphical mode you cannot use text-mode commands in that session.","True","False",,,
"010-160",1,"True or false: CentOS is a Linux distribution with a long release cycle.","True","False",,,
"010-160",1,"What type of multitasking does Linux use?","Preemptive","Multi-user","Co-operative","Single-tasking","Single-user"
"010-160",,"Which of the following is a characteristic of all open source software?","The software cannot be sold for a profit; it must be distributed free of charge.","It must be distributed with both source code and binaries.","Users are permitted to redistribute altered versions of the original software.","The software was originally written at a college or university.","The software must be written in an interpreted language that requires no compilation."
"010-160",4,"Which of the following programs is **most** likely to be installed and regularly used on a desktop computer that runs Linux?","Apache","Postfix","Android","Evolution","BIND"
"010-160",,"True or false: VMS was a common OS on x86 PCs at the time Linux was created.","True","False",,,
"010-160",1,"True or false: Some DVRs run Linux.","True","False",,,
"010-160",1,"True or false: A Linux computer being used as a server generally does not require X.","True","False",,,
"010-160",,"Which of the following is **not** required in order for software to be certified as open source?","The license must not discriminate against people or groups of people.","The license must not require that the software be distributed as part of a specific product.","The license must require that changes be distributed under the same license.","The program must come with source code or the author must make it readily available on the Internet.","The license must automatically apply to anybody who acquires the software."
"010-160",,"Which is true of Linux distributions as a whole? ","They're covered by the GPL or the BSD license depending on the distribution.","Sometimes they may not be copied because of non-open source software they may contain.","They may be copied only after software using the MIT license is removed.","They all completely conform to the principles of the open source movement.","They all qualify as free software as the FSF uses the term."
"010-160",,"Which of the following is a key part of the FSF's philosophy?","Developers should use the latest version of the FSF's GPL.","Users should have the right to modify free software and distribute it under a commercial license.","Developers should write software only for free operating systems such as GNU/Linux.","Users should engage in civil disobedience by copying proprietary software.","Users must have the right to use software as they see fit."
"010-160",,"True or false: Copyright law governs the distribution of software in most countries.","True","False",,,
"010-160",,"True or false: The FSF's free software definition and the OSI's ten principles of open source software both require that users have the ability to examine a program's workings---that is its source code.","True","False",,,
"010-160",2,"True or false: Because their hardware designs are proprietary, hardware vendors cannot release open source drivers for their products.","True","False",,,
"010-160",,"Which of the following are Linux desktop environments? (Select all that apply.)","GTK+","GNOME","KDE","Evolution","Xfce"
"010-160",,"If you want to enable one Linux computer to access files stored on another Linux computer's hard disk which of the following network protocols is the *best* choice?","SMTP","NFS","PHP","DNS","DHCP"
"010-160",3,"In which of the following languages was most of the Linux kernel written?","Bash shell script","Java","C","C++","Perl"
"010-160",1,"True or false: OpenOffice.org and LibreOffice are very similar office suites.","True","False",,,
"010-160",1,"True or false: Servers can be disrupted by malicious outsiders even if the computer that runs them is never broken into.","True","False",,,
"010-160",1,"True or false: Python is generally implemented as an interpreted language.","True","False",,,
"010-160",4,"Which of the following commands provides the most information about your motherboard's features?","`lscpu`","`Xorg -configure`","`fdisk -l /dev/sda`","`lspci`","`http://localhost:631`"
"010-160",,"Why might you want to partition a hard disk? (Select all that apply.)","To install more than one OS on the disk","To use ext4fs rather than ReiserFS","To turn a PATA disk into an SATA disk","To separate filesystem data from swap space","To separate the disk's cache from its main data"
"010-160",1,"Which of the following devices is *not* commonly attached via USB?","Video monitors","Keyboards","External hard disks","Printers","Scanners"
"010-160",1,"True or false: An EM64T CPU is capable of running a Linux distribution identified as being for the AMD64 CPU.","True","False",,,
"010-160",2,"True or false: UDF is a good filesystem to use for a Linux installation on a hard disk.","True","False",,,
"010-160",1,"True or false: The Linux kernel includes drivers for various disk controllers, network adapters and USB interfaces among other things.","True","False",,,
"010-160",1,"What keystroke moves the cursor to the start of the line when typing a command in Bash?","Ctrl+A","Left arrow","Ctrl+T","Up arrow","Ctrl+E"
"010-160",,"How can you run a program in the background when launching it from a shell? (Select all that apply.)","Launch the program by typing `start command` where `command` is the command you want to run.","Launch the program by typing `bg command` where `command` is the command you want to run.","Append an ampersand `&` to the end of the command line.","Launch the program normally then type Ctrl+Z in the shell and then type `bg` in the shell.","Launch the program normally and type Ctrl+Z in the shell then type `fg` in the shell."
"010-160",5,"Which of the following commands; typed at a Bash prompt; returns you to your home directory?","`home`","`cd /home`","`cd homedir`","`homedir`","`cd ~`"
"010-160",2,"True or false: The Alt+F2 keystroke, typed in X, brings up a text-mode display you can use to log into Linux.","True","False",,,
"010-160",2,"True or false: The filename `..\upone.txt` refers to the file `upone.txt` in the parent of the current directory.","True","False",,,
"010-160",2,"True or false: The `-r` option to `ls` creates a recursive directory listing.","True","False",,,
"010-160",1,"Which of the following commands would you type to rename `newfile.txt` to `afile.txt`?","`mv newfile.txt afile.txt`","`cp newfile.txt afile.txt`","`ln newfile.txt afile.txt`","`rn newfile.txt afile.txt`","`touch newfile.txt afile.txt`"
"010-160",,"You type `mkdir one/two/three` and receive an error message that reads which reads in part `No such file or directory`. What can you do to overcome this problem? (Select all that apply.)","Add the `--parents` parameter to the `mkdir` command.","Issue three separate `mkdir` commands: `mkdir one` then `mkdir one/two` and then `mkdir one/two/three`.","Type `touch /bin/mkdir` to be sure the `mkdir` program file exists.","Type `rmdir one` to clear away the interfering base of the desired new directory tree.","Type `rm -r one` to clear away the entire interfering directory tree."
"010-160",1,"True or false: You can create a symbolic link from one low-level filesystem to another.","True","False",,,
"010-160",2,"True or false: You can easily damage your Linux installation by mistyping an `rm` command when you log into your regular account.","True","False",,,
"010-160",1,"True or false: You can set a directory's time stamps with the `touch` command.","True","False",,,
"010-160",4,"Which of the following commands is an improved version of `more`?","`grep`","`html`","`cat`","`less`","`man`"
"010-160",,"Which of the following statements is a fair comparison of `man` pages to HOWTO documents?","`man` pages require Internet access to read; HOWTOs do not.","`man` pages are a type of printed documentation; HOWTOs are electronic.","`man` pages describe software from a user's point of view; HOWTOs are programmers' documents.","`man` pages are brief reference documents; HOWTOs are more tutorial in nature.","`man` pages use a hyperlinked format whereas HOWTOs do not."
"010-160",,"A user types `whatis less`. What type of output can be expected?","A short one-paragraph description of the purpose of the `less` command","The complete path to the `less` command in the Linux filesystem","Summary information from `man` pages whose Name sections mention `less`","The complete `man` page for `less` which you would then scroll through with your terminal","The URLs for Web sites with information on the `less` command"
"010-160",1,"True or false: You can force `man` to display a `man` page in a specific section of the manual by preceding the search name with the section number, as in `man 5 passwd`.","True","False",,,
"010-160",,"True or false: `info` pages are a Web-based documentation format.","True","False",,,
"010-160",2,"True or false: Linux documentation in the `/usr/share/doc` directory tree is almost always in OpenDocument Text format.","True","False",,,
"010-160",5,"Which of the following tools is best suited to installing a software package and all its dependencies on a Debian computer?","`yum`","`zypper`","`dmesg`","`rpm`","`apt-get`"
"010-160",1,"What is the usual name of the first process that the Linux kernel runs aside from itself?","`init`","`bash`","`cron`","`login`","`grub`"
"010-160",1,"Where do most log files reside on a Linux computer?","`/var/log`","`/etc/logging`","`/usr/log`","`/home/logging`","`/log/usr`"
"010-160",1,"True or false: When using suitable commands you can normally install a program and be sure that all the software on which it depends will also be installed provided you have an Internet connection.","True","False",,,
"010-160",1,"True or false: By default the first process listed in `top` is currently consuming the most CPU time.","True","False",,,
"010-160",1,"True or false: The `dmesg` command may produce different output after a computer has been running for weeks than when it first started.","True","False",,,
"010-160",1,"Which of the following commands will print lines from the file `world.txt` that contain matches to `changes`and `changed`?","`grep change[ds] world.txt`","`tar change[d-s] world.txt`","`find ""change'd|s'"" world.txt`","`cat world.txt changes changed`","`find change[^ds] world.txt`"
"010-160",5,"Which of the following redirection operators appends a program's standard output to an existing file without overwriting that file's original contents?","`|`","`2>`","`&>`","`>`","`>>`"
"010-160",,"You've received a tarball called `data79.tar` from a colleague but you want to check the names of the files it contains before extracting them. Which of the following commands would you use to do this?","`tar uvf data79.tar`","`tar cvf data79.tar`","`tar xvf data79.tar`","`tar tvf data79.tar`","`tar Avf data79.tar`"
"010-160",1,"True or false: The regular expression `Linu[^x].*lds` matches the string `Linus Torvalds`.","True","False",,,
"010-160",1,"True or false: The `find` command enables you to locate files based on their sizes.","True","False",,,
"010-160",,"True or false: To compress files archived with `zip` you must use an external compression program such as `gzip` or `bzip2` in a pipeline with `zip`.","True","False",,,
"010-160",4,"Which type of file is `nano` *least* likely to be useful for examining or editing?","A `/var/log/messages` log file","An HTML Web page file","An e-mail message saved from an e-mail client","A LibreOffice word processing document","An `/etc/X11/xorg.conf` configuration file"
"010-160",,"Which keystrokes invoke the `pico` or `nano` search function? (Select all that apply.)","F3","F6","Esc-S","Ctrl+F","Ctrl+W"
"010-160",1,"How would you remove two lines of text from a file using Vi?","In command mode position the cursor on the first line and type `2dd`.","In command mode position the cursor on the last line and type `2yy`.","In insert mode position the cursor at the start of the first line. Hold down the Shift key while pressing the Down arrow key twice and press the Delete key on the keyboard.","In insert mode position the cursor at the start of the first line and press Ctrl+K twice.","Select the text with the mouse and then select File ⇒ Delete from the menu."
"010-160",2,"True or false: Unicode is useful for encoding most European languages but not Asian languages.","True","False",,,
"010-160",2,"True or false: GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI editors support underlining and italics and multiple fonts.","True","False",,,
"010-160",1,"True or false: Many (but not all) configuration files use a hash mark `#` to identify comment lines.","True","False",,,
"010-160",1,"After using a text editor to create a shell script what step should you take before trying to use the script by typing its name?","Set one or more executable bits using `chmod`.","Copy the script to the `/usr/bin/scripts` directory.","Compile the script by typing `bash scriptname` where `scriptname` is the script's name.","Run a virus checker on the script to be sure it contains no viruses.","Run a spell checker on the script to ensure it contains no bugs."
"010-160",3,"What is the purpose of conditional expressions in shell scripts?","They prevent scripts from executing if license conditions aren't met.","They display information about the script's computer environment.","They enable the script to take different actions in response to variable data.","They enable scripts to learn in a manner reminiscent of Pavlovian conditioning.","They cause scripts to run only at specified times of day."
"010-160",,"True or false: A user types `myscript laser.txt` to run a script called `myscript`. Within `myscript` the `$0` variable holds the value `laser.txt`.","True","False",,,
"010-160",1,"True or false: Valid looping statements in Bash include `for`, `while` and `until`.","True","False",,,
"010-160",1,"What is the purpose of the system account with a UID of 0?","It's the system administration account.","It's the account for the first ordinary user.","Nothing. UID 0 is left intentionally undefined.","It varies from one distribution to another.","It's a low-privilege account that's used as a default by some servers."
"010-160",,"What type of information will you find in `/etc/passwd` for ordinary user accounts? (Select all that apply.)","A user ID (UID) number","A complete listing of every group to which the user belongs","The path to the account's home directory","The path to the account's default GUI desktop environment","The path to the account's default text-mode shell"
"010-160",1,"You want to run the command `iptables -L` as `root` but you're logged in as an ordinary user. Which of the following commands will do the job assuming the system is configured to give you `root` access via the appropriate command?","`sudo iptables -L`","`root iptables -L`","`passwd iptables -L`","`su iptables -L`","`admin iptables -L`"
"010-160",,"True or false: `whoami` provides more information than `id`.","True","False",,,
"010-160",,"True or false: Linux stores information on its groups in the `/etc/groups` file.","True","False",,,
"010-160",2,"True or false: As a general rule you should employ extra care when running programs as `root`.","True","False",,,
"010-160",,"What would a Linux system administrator type to remove the `nemo` account and its home directory","`userdel nemo`","`userdel -f nemo`","`userdel -r nemo`","`rm /home/nemo`","`rm -r /home/nemo`"
"010-160",2,"Of the following, which is the *best* password? ","`LinusTorvalds`","`uB2op%4q****************`","`123456`","`password`","`peanutbuttersandwich`"
"010-160",1,"Describe the effect of the following command assuming it completes successfully: `groupadd henry`","It creates a new group called `henry`.","It adds the user `henry` to the current default group.","It imports group information from the file called `henry`.","It changes the user's default group to `henry`.","It adds the group `henry` to the user's list of groups."
"010-160",1,"True or false: User accounts have higher UID numbers than do system accounts.","True","False",,,
"010-160",,"True or false: Command-line users should normally use `usermod` to change their passwords.","True","False",,,
"010-160",1,"True or false: After deleting an account the files formerly owned by the deleted account may remain on the computer.","True","False",,,
"010-160",1,"What command would you type (as `root`) to change the ownership of `somefile.txt` from `ralph` to `tony`? ","`chown ralph:tony somefile.txt`","`chmod somefile.txt tony`","`chown somefile.txt tony`","`chown tony somefile.txt`","`chmod tony somefile.txt`"
"010-160",,"Typing `ls -ld wonderjaye` reveals a symbolic file mode of `drwxr-xr-x`. Which of the following are true? (Select all that apply.) ","`wonderjaye` is a symbolic link.","`wonderjaye` is an executable program.","`wonderjaye` is a directory.","`wonderjaye` may be read by all users of the system.","`wonderjaye` may be written by any member of the file's group."
"010-160",4,"Which of the following commands can you use to change a file's group?","`groupmod`","`chmod`","`ls`","`chown`",
"010-160",1,"True or false: A file with permissions of 755 can be read by any user on the computer, assuming all users can read the directory in which it resides.","True","False",,,
"010-160",2,"True or false: Only `root` may use the `chmod` command.","True","False",,,
"010-160",1,"True or false: Only `root` may change a file's ownership with `chown`.","True","False",,,
"010-160",4,"What types of files are you likely to find in `/usr/lib` according to the FHS? ","Liberty files","Liberated files","Libra files","Library files","Liberal files"
"010-160",1,"You want to discover the sizes of several dot files in a directory. Which of the following commands might you use to do this?","`ls -la`","`ls -p`","`ls -R`","`ls -d`","`ls -ld`"
"010-160",3,"When should programs be configured SUID `root`?","At all times; this permission is required for executable programs.","Whenever a program should be able to access a device file.","Only when they require `root` privileges to do their job.","Whenever the program must be able to access an account's user ID (UID) number.","Never; this permission is a severe security risk."
"010-160",1,"True or false: Print spool files are stored in a subdirectory of `/var`.","True","False",,,
"010-160",2,"True or false: On a properly configured Linux system any user can delete any file from `/tmp`.","True","False",,,
"010-160",,"True or false: If you hide a file in Linux by making it a dot file, you must change any existing references to that file in configuration files if those references are to continue working.","True","False",,,
"010-160",,"You want to set up a computer on a local network via a static TCP/IP configuration, but you lack a gateway address. Which of the following is true? ","Because the gateway address is necessary no TCP/IP networking functions will work.","TCP/IP networking will function but you'll be unable to convert hostnames to IP addresses and vice versa.","You'll be able to communicate with machines on your local network segment but not with other systems.","The computer won't be able to tell which other computers are local and which are remote.","You'll be able to use the computer as a network server system but not as a network client."
"010-160",,"Which of the following types of information are returned by typing `ifconfig eth0`? (Select all that apply.)","The names of programs that are using `eth0`","The IP address assigned to `eth0`","The hardware address of `eth0`","The hostname associated with `eth0`","The gateway with which `eth0` communicates"
"010-160",,"The `ping` utility responds normally when you use it with an IP address but not when you use it with a hostname that you're positive corresponds to this IP address. What might cause this problem? (Select all that apply.)","The route between your computer and its DNS server may be incorrect.","The target computer may be configured to ignore packets from `ping`.","The DNS configuration on the target system may be broken.","Your computer's hostname may be set incorrectly.","Your computer's DNS configuration may be broken."
"010-160",,"True or false: IPv4 addresses are four bytes in length.","True","False",,,
"010-160",2,"True or false: The `/etc/resolv.conf` file tells the computer whether to use DHCP for its network configuration.","True","False",,,
"010-160",,"True or false: You can check the current status of your routing table by typing `route` at a shell prompt.","True","False",,,
1 LEVEL ANSWER QUESTION 1 2 3 4 5
2 010-160 Which of the following is **not** a function of the Linux kernel? Allocating memory for use by programs Allocating CPU time for use by programs Creating menus in GUI programs Controlling access to the hard disk Enabling programs to use a network
3 010-160 Which of the following is an example of an embedded Linux OS? Android SUSE CentOS Debian Fedora
4 010-160 Which of the following is a notable difference between Linux and Mac OS X? Linux can run common GNU programs whereas OS X cannot. Linux's GUI is based on the X Window System whereas OS X's is not. Linux cannot run on Apple Macintosh hardware whereas OS X can run only on Apple hardware. Linux relies heavily on BSD software whereas OS X uses no BSD software. Linux supports text-mode commands but OS X is a GUI-only OS.
5 010-160 2 True or false: The Linux kernel is derived from the BSD kernel. True False
6 010-160 2 True or false: If you log into a Linux system in graphical mode you cannot use text-mode commands in that session. True False
7 010-160 1 True or false: CentOS is a Linux distribution with a long release cycle. True False
8 010-160 1 What type of multitasking does Linux use? Preemptive Multi-user Co-operative Single-tasking Single-user
9 010-160 Which of the following is a characteristic of all open source software? The software cannot be sold for a profit; it must be distributed free of charge. It must be distributed with both source code and binaries. Users are permitted to redistribute altered versions of the original software. The software was originally written at a college or university. The software must be written in an interpreted language that requires no compilation.
10 010-160 4 Which of the following programs is **most** likely to be installed and regularly used on a desktop computer that runs Linux? Apache Postfix Android Evolution BIND
11 010-160 True or false: VMS was a common OS on x86 PCs at the time Linux was created. True False
12 010-160 1 True or false: Some DVRs run Linux. True False
13 010-160 1 True or false: A Linux computer being used as a server generally does not require X. True False
14 010-160 Which of the following is **not** required in order for software to be certified as open source? The license must not discriminate against people or groups of people. The license must not require that the software be distributed as part of a specific product. The license must require that changes be distributed under the same license. The program must come with source code or the author must make it readily available on the Internet. The license must automatically apply to anybody who acquires the software.
15 010-160 Which is true of Linux distributions as a whole? They're covered by the GPL or the BSD license depending on the distribution. Sometimes they may not be copied because of non-open source software they may contain. They may be copied only after software using the MIT license is removed. They all completely conform to the principles of the open source movement. They all qualify as free software as the FSF uses the term.
16 010-160 Which of the following is a key part of the FSF's philosophy? Developers should use the latest version of the FSF's GPL. Users should have the right to modify free software and distribute it under a commercial license. Developers should write software only for free operating systems such as GNU/Linux. Users should engage in civil disobedience by copying proprietary software. Users must have the right to use software as they see fit.
17 010-160 True or false: Copyright law governs the distribution of software in most countries. True False
18 010-160 True or false: The FSF's free software definition and the OSI's ten principles of open source software both require that users have the ability to examine a program's workings---that is its source code. True False
19 010-160 2 True or false: Because their hardware designs are proprietary, hardware vendors cannot release open source drivers for their products. True False
20 010-160 Which of the following are Linux desktop environments? (Select all that apply.) GTK+ GNOME KDE Evolution Xfce
21 010-160 If you want to enable one Linux computer to access files stored on another Linux computer's hard disk which of the following network protocols is the *best* choice? SMTP NFS PHP DNS DHCP
22 010-160 3 In which of the following languages was most of the Linux kernel written? Bash shell script Java C C++ Perl
23 010-160 1 True or false: OpenOffice.org and LibreOffice are very similar office suites. True False
24 010-160 1 True or false: Servers can be disrupted by malicious outsiders even if the computer that runs them is never broken into. True False
25 010-160 1 True or false: Python is generally implemented as an interpreted language. True False
26 010-160 4 Which of the following commands provides the most information about your motherboard's features? `lscpu` `Xorg -configure` `fdisk -l /dev/sda` `lspci` `http://localhost:631`
27 010-160 Why might you want to partition a hard disk? (Select all that apply.) To install more than one OS on the disk To use ext4fs rather than ReiserFS To turn a PATA disk into an SATA disk To separate filesystem data from swap space To separate the disk's cache from its main data
28 010-160 1 Which of the following devices is *not* commonly attached via USB? Video monitors Keyboards External hard disks Printers Scanners
29 010-160 1 True or false: An EM64T CPU is capable of running a Linux distribution identified as being for the AMD64 CPU. True False
30 010-160 2 True or false: UDF is a good filesystem to use for a Linux installation on a hard disk. True False
31 010-160 1 True or false: The Linux kernel includes drivers for various disk controllers, network adapters and USB interfaces among other things. True False
32 010-160 1 What keystroke moves the cursor to the start of the line when typing a command in Bash? Ctrl+A Left arrow Ctrl+T Up arrow Ctrl+E
33 010-160 How can you run a program in the background when launching it from a shell? (Select all that apply.) Launch the program by typing `start command` where `command` is the command you want to run. Launch the program by typing `bg command` where `command` is the command you want to run. Append an ampersand `&` to the end of the command line. Launch the program normally then type Ctrl+Z in the shell and then type `bg` in the shell. Launch the program normally and type Ctrl+Z in the shell then type `fg` in the shell.
34 010-160 5 Which of the following commands; typed at a Bash prompt; returns you to your home directory? `home` `cd /home` `cd homedir` `homedir` `cd ~`
35 010-160 2 True or false: The Alt+F2 keystroke, typed in X, brings up a text-mode display you can use to log into Linux. True False
36 010-160 2 True or false: The filename `..\upone.txt` refers to the file `upone.txt` in the parent of the current directory. True False
37 010-160 2 True or false: The `-r` option to `ls` creates a recursive directory listing. True False
38 010-160 1 Which of the following commands would you type to rename `newfile.txt` to `afile.txt`? `mv newfile.txt afile.txt` `cp newfile.txt afile.txt` `ln newfile.txt afile.txt` `rn newfile.txt afile.txt` `touch newfile.txt afile.txt`
39 010-160 You type `mkdir one/two/three` and receive an error message that reads which reads in part `No such file or directory`. What can you do to overcome this problem? (Select all that apply.) Add the `--parents` parameter to the `mkdir` command. Issue three separate `mkdir` commands: `mkdir one` then `mkdir one/two` and then `mkdir one/two/three`. Type `touch /bin/mkdir` to be sure the `mkdir` program file exists. Type `rmdir one` to clear away the interfering base of the desired new directory tree. Type `rm -r one` to clear away the entire interfering directory tree.
40 010-160 1 True or false: You can create a symbolic link from one low-level filesystem to another. True False
41 010-160 2 True or false: You can easily damage your Linux installation by mistyping an `rm` command when you log into your regular account. True False
42 010-160 1 True or false: You can set a directory's time stamps with the `touch` command. True False
43 010-160 4 Which of the following commands is an improved version of `more`? `grep` `html` `cat` `less` `man`
44 010-160 Which of the following statements is a fair comparison of `man` pages to HOWTO documents? `man` pages require Internet access to read; HOWTOs do not. `man` pages are a type of printed documentation; HOWTOs are electronic. `man` pages describe software from a user's point of view; HOWTOs are programmers' documents. `man` pages are brief reference documents; HOWTOs are more tutorial in nature. `man` pages use a hyperlinked format whereas HOWTOs do not.
45 010-160 A user types `whatis less`. What type of output can be expected? A short one-paragraph description of the purpose of the `less` command The complete path to the `less` command in the Linux filesystem Summary information from `man` pages whose Name sections mention `less` The complete `man` page for `less` which you would then scroll through with your terminal The URLs for Web sites with information on the `less` command
46 010-160 1 True or false: You can force `man` to display a `man` page in a specific section of the manual by preceding the search name with the section number, as in `man 5 passwd`. True False
47 010-160 True or false: `info` pages are a Web-based documentation format. True False
48 010-160 2 True or false: Linux documentation in the `/usr/share/doc` directory tree is almost always in OpenDocument Text format. True False
49 010-160 5 Which of the following tools is best suited to installing a software package and all its dependencies on a Debian computer? `yum` `zypper` `dmesg` `rpm` `apt-get`
50 010-160 1 What is the usual name of the first process that the Linux kernel runs aside from itself? `init` `bash` `cron` `login` `grub`
51 010-160 1 Where do most log files reside on a Linux computer? `/var/log` `/etc/logging` `/usr/log` `/home/logging` `/log/usr`
52 010-160 1 True or false: When using suitable commands you can normally install a program and be sure that all the software on which it depends will also be installed provided you have an Internet connection. True False
53 010-160 1 True or false: By default the first process listed in `top` is currently consuming the most CPU time. True False
54 010-160 1 True or false: The `dmesg` command may produce different output after a computer has been running for weeks than when it first started. True False
55 010-160 1 Which of the following commands will print lines from the file `world.txt` that contain matches to `changes`and `changed`? `grep change[ds] world.txt` `tar change[d-s] world.txt` `find "change'd|s'" world.txt` `cat world.txt changes changed` `find change[^ds] world.txt`
56 010-160 5 Which of the following redirection operators appends a program's standard output to an existing file without overwriting that file's original contents? `|` `2>` `&>` `>` `>>`
57 010-160 You've received a tarball called `data79.tar` from a colleague but you want to check the names of the files it contains before extracting them. Which of the following commands would you use to do this? `tar uvf data79.tar` `tar cvf data79.tar` `tar xvf data79.tar` `tar tvf data79.tar` `tar Avf data79.tar`
58 010-160 1 True or false: The regular expression `Linu[^x].*lds` matches the string `Linus Torvalds`. True False
59 010-160 1 True or false: The `find` command enables you to locate files based on their sizes. True False
60 010-160 True or false: To compress files archived with `zip` you must use an external compression program such as `gzip` or `bzip2` in a pipeline with `zip`. True False
61 010-160 4 Which type of file is `nano` *least* likely to be useful for examining or editing? A `/var/log/messages` log file An HTML Web page file An e-mail message saved from an e-mail client A LibreOffice word processing document An `/etc/X11/xorg.conf` configuration file
62 010-160 Which keystrokes invoke the `pico` or `nano` search function? (Select all that apply.) F3 F6 Esc-S Ctrl+F Ctrl+W
63 010-160 1 How would you remove two lines of text from a file using Vi? In command mode position the cursor on the first line and type `2dd`. In command mode position the cursor on the last line and type `2yy`. In insert mode position the cursor at the start of the first line. Hold down the Shift key while pressing the Down arrow key twice and press the Delete key on the keyboard. In insert mode position the cursor at the start of the first line and press Ctrl+K twice. Select the text with the mouse and then select File ⇒ Delete from the menu.
64 010-160 2 True or false: Unicode is useful for encoding most European languages but not Asian languages. True False
65 010-160 2 True or false: GUI text editors for ASCII are superior to text-mode ASCII text editors because the GUI editors support underlining and italics and multiple fonts. True False
66 010-160 1 True or false: Many (but not all) configuration files use a hash mark `#` to identify comment lines. True False
67 010-160 1 After using a text editor to create a shell script what step should you take before trying to use the script by typing its name? Set one or more executable bits using `chmod`. Copy the script to the `/usr/bin/scripts` directory. Compile the script by typing `bash scriptname` where `scriptname` is the script's name. Run a virus checker on the script to be sure it contains no viruses. Run a spell checker on the script to ensure it contains no bugs.
68 010-160 3 What is the purpose of conditional expressions in shell scripts? They prevent scripts from executing if license conditions aren't met. They display information about the script's computer environment. They enable the script to take different actions in response to variable data. They enable scripts to learn in a manner reminiscent of Pavlovian conditioning. They cause scripts to run only at specified times of day.
69 010-160 True or false: A user types `myscript laser.txt` to run a script called `myscript`. Within `myscript` the `$0` variable holds the value `laser.txt`. True False
70 010-160 1 True or false: Valid looping statements in Bash include `for`, `while` and `until`. True False
71 010-160 1 What is the purpose of the system account with a UID of 0? It's the system administration account. It's the account for the first ordinary user. Nothing. UID 0 is left intentionally undefined. It varies from one distribution to another. It's a low-privilege account that's used as a default by some servers.
72 010-160 What type of information will you find in `/etc/passwd` for ordinary user accounts? (Select all that apply.) A user ID (UID) number A complete listing of every group to which the user belongs The path to the account's home directory The path to the account's default GUI desktop environment The path to the account's default text-mode shell
73 010-160 1 You want to run the command `iptables -L` as `root` but you're logged in as an ordinary user. Which of the following commands will do the job assuming the system is configured to give you `root` access via the appropriate command? `sudo iptables -L` `root iptables -L` `passwd iptables -L` `su iptables -L` `admin iptables -L`
74 010-160 True or false: `whoami` provides more information than `id`. True False
75 010-160 True or false: Linux stores information on its groups in the `/etc/groups` file. True False
76 010-160 2 True or false: As a general rule you should employ extra care when running programs as `root`. True False
77 010-160 What would a Linux system administrator type to remove the `nemo` account and its home directory `userdel nemo` `userdel -f nemo` `userdel -r nemo` `rm /home/nemo` `rm -r /home/nemo`
78 010-160 2 Of the following, which is the *best* password? `LinusTorvalds` `uB2op%4q****************` `123456` `password` `peanutbuttersandwich`
79 010-160 1 Describe the effect of the following command assuming it completes successfully: `groupadd henry` It creates a new group called `henry`. It adds the user `henry` to the current default group. It imports group information from the file called `henry`. It changes the user's default group to `henry`. It adds the group `henry` to the user's list of groups.
80 010-160 1 True or false: User accounts have higher UID numbers than do system accounts. True False
81 010-160 True or false: Command-line users should normally use `usermod` to change their passwords. True False
82 010-160 1 True or false: After deleting an account the files formerly owned by the deleted account may remain on the computer. True False
83 010-160 1 What command would you type (as `root`) to change the ownership of `somefile.txt` from `ralph` to `tony`? `chown ralph:tony somefile.txt` `chmod somefile.txt tony` `chown somefile.txt tony` `chown tony somefile.txt` `chmod tony somefile.txt`
84 010-160 Typing `ls -ld wonderjaye` reveals a symbolic file mode of `drwxr-xr-x`. Which of the following are true? (Select all that apply.) `wonderjaye` is a symbolic link. `wonderjaye` is an executable program. `wonderjaye` is a directory. `wonderjaye` may be read by all users of the system. `wonderjaye` may be written by any member of the file's group.
85 010-160 4 Which of the following commands can you use to change a file's group? `groupmod` `chmod` `ls` `chown`
86 010-160 1 True or false: A file with permissions of 755 can be read by any user on the computer, assuming all users can read the directory in which it resides. True False
87 010-160 2 True or false: Only `root` may use the `chmod` command. True False
88 010-160 1 True or false: Only `root` may change a file's ownership with `chown`. True False
89 010-160 4 What types of files are you likely to find in `/usr/lib` according to the FHS? Liberty files Liberated files Libra files Library files Liberal files
90 010-160 1 You want to discover the sizes of several dot files in a directory. Which of the following commands might you use to do this? `ls -la` `ls -p` `ls -R` `ls -d` `ls -ld`
91 010-160 3 When should programs be configured SUID `root`? At all times; this permission is required for executable programs. Whenever a program should be able to access a device file. Only when they require `root` privileges to do their job. Whenever the program must be able to access an account's user ID (UID) number. Never; this permission is a severe security risk.
92 010-160 1 True or false: Print spool files are stored in a subdirectory of `/var`. True False
93 010-160 2 True or false: On a properly configured Linux system any user can delete any file from `/tmp`. True False
94 010-160 True or false: If you hide a file in Linux by making it a dot file, you must change any existing references to that file in configuration files if those references are to continue working. True False
95 010-160 You want to set up a computer on a local network via a static TCP/IP configuration, but you lack a gateway address. Which of the following is true? Because the gateway address is necessary no TCP/IP networking functions will work. TCP/IP networking will function but you'll be unable to convert hostnames to IP addresses and vice versa. You'll be able to communicate with machines on your local network segment but not with other systems. The computer won't be able to tell which other computers are local and which are remote. You'll be able to use the computer as a network server system but not as a network client.
96 010-160 Which of the following types of information are returned by typing `ifconfig eth0`? (Select all that apply.) The names of programs that are using `eth0` The IP address assigned to `eth0` The hardware address of `eth0` The hostname associated with `eth0` The gateway with which `eth0` communicates
97 010-160 The `ping` utility responds normally when you use it with an IP address but not when you use it with a hostname that you're positive corresponds to this IP address. What might cause this problem? (Select all that apply.) The route between your computer and its DNS server may be incorrect. The target computer may be configured to ignore packets from `ping`. The DNS configuration on the target system may be broken. Your computer's hostname may be set incorrectly. Your computer's DNS configuration may be broken.
98 010-160 True or false: IPv4 addresses are four bytes in length. True False
99 010-160 2 True or false: The `/etc/resolv.conf` file tells the computer whether to use DHCP for its network configuration. True False
100 010-160 True or false: You can check the current status of your routing table by typing `route` at a shell prompt. True False

24
data/list_online.csv Normal file
View File

@ -0,0 +1,24 @@
"LEVEL","ANSWER","QUESTION",1,2,3,4,5
"010-160","1 5","What are the differences between hard disk drives and solid state disks? (Choose two.)"," Hard disks have a motor and moving parts while solid state disks do not. "," Hard disks can fail due to physical damage while solid state disks cannot fail. "," Solid state disks can store many times as much data as hard disk drives."," `/dev/sda` is a hard disk device while `/dev/ssda` is a solid state disk. "," Solid state disks provide faster access to stored data than hard disks."
"010-160",,"Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?"," In the A record for 165.100.51.198.ipv4.arpa."," In the PTR record for 165.100.51.198.in-addr.arpa."," In the RNAME record for 198-51-100-165.rev.arpa."," In the ARPA record for 165.100.51.198.rev."," In the REV record for arpa.in-addr.198.51.100.165."
"010-160",4,"Which of the following types of bus can connect hard disk drives with the motherboard?"," The RAM bus"," The NUMA bus"," The CPU bus"," The SATA bus"," The Auto bus"
"010-160",4,"Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?"," Ubuntu Linux LTS"," Raspbian"," Debian GNU/Linux"," CentOS"," openSUSE"
"010-160",2,"What information can be displayed by top?"," Existing files ordered by their size."," Running processes ordered by CPU or RAM consumption."," User accounts ordered by the number of logins."," User groups ordered by the number of members."," User accounts ordered by the number of files."
"010-160",4,"Which of the following commands can be used to resolve a DNS name to an IP address?"," dnsname"," dns"," query"," host"," iplookup"
"010-160","3 5","What is true about the dmesg command? (Choose two.)"," It traces the execution of a command and shows each step the program carries out."," It sends messages to the command lines of all current user sessions."," It displays the content of the Linux kernels ring buffer."," It immediately outputs all new messages written to the system journal."," It might not display older information because it was overwritten by newer information."
"010-160",5,"Which of the following outputs could stem from the command last?"," `1 ls 2 cat text.txt 3 logout`"," `Password for user last changed at Sat Mar 31 16:38:57 EST 2018`"," `Last login: Fri Mar 23 10:56:39 2018 from server.example.com`"," `EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)`"," `root tty2 Wed May 17 21:11 - 21:11 (00:00)`"
"010-160",5,"What is the UID of the user root?",1,-1,255,65536,0
"010-160",5,"Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?"," `drw-r-xr-­`"," `d―wxr-x-­`"," `Cwxr-x--x`"," `Crwxrw---x`"," `-rw-r-xr-`"
"010-160",1,"What is true about the owner of a file?"," Each file is owned by exactly one user and one group."," The owner of a file always has full permissions when accessing the file."," The user owning a file must be a member of the files group."," When a user is deleted all files owned by the user disappear. "," The owner of a file cannot be changed once it is assigned to an owner."
"010-160",1,"Which of the following permissions are set on the /tmp/ directory?"," `rwxrwxrwt`"," `------rwX`"," `rwSrw-rw-`"," `rwxrwS--`"," `r-xr-X--t`"
"010-160",,"Which command adds the new user tux and creates the users home directory with default configuration files?"," `defaultuser tux`"," `useradd -m tux`"," `usercreate tux`"," `useradd -o default tux`"," `passwd -a tux`"
"010-160","2 3 5","What information is stored in `/etc/passwd`? (Choose three.)"," The users storage space limit"," The numerical user ID"," The username"," The encrypted password"," The users default shell"
"010-160",,"Which of the following tar options handle compression? (Choose two.)"," `-bz`"," `-z`"," `-g`"," `-j`"," `-z2`"
"010-160","for","What keyword is used in a shell script to begin a loop?",,,,,
"010-160",,"Which of the following commands creates an archive file `work.tar` from the contents of the directory `./work/`?"," `tar --new work.tar ./work/`"," `tar -cf work.tar ./work/`"," `tar -create work.tgz -content ./work/`"," `tar work.tar < ./work/`"," `tar work > work.tar`"
"010-160",4,"Which of the following keys can be pressed to exit less?"," l"," x"," e"," q"," !"
"010-160","4 5","The current directory contains the following file: `-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh` Given that the file is a valid shell script how can this script be executed? (Choose two.)"," `run test.sh`"," `${test.sh}`"," `cmd ./test.sh`"," `./test.sh`"," `bash test.sh`"
"010-160",4,"Which of the following commands sorts the output of the command export-logs?"," `export-logs < sort`"," `export-logs > sort`"," `export-logs & sort`"," `export-logs | sort`"," `export-logs <> sort`"
"010-160",4,"Which of the following commands will search for the file `foo.txt` under the directory `/home`?"," `search /home -file foo.txt`"," `search /home foo. txt`"," `find /home - file foo.txt`"," `find /home -name foo.txt`"," `find /home foo.txt`"
"010-160",2,"The current directory contains the following file: `-rw-r―r― 1 root exec 24551 Apr 2 12:36 test.sh` The file contains a valid shell script but executing this file using `./test.sh` leads to this error: `bash: ./test.sh: Permission denied`. What should be done in order to successfully execute the script?"," The files extension should be changed from .sh to .bin."," The execute bit should be set in the files permissions."," The user executing the script should be added to the exec group."," The SetUID bit should be set in the files permissions"," The script should be run using #!./test. sh instead of ./test.sh."
"010-160",2,"What is a Linux distribution?"," The Linux file system as seen from the root account after mounting all file systems."," A bundling of the Linux kernel together with system utilities and other software."," The set of rules which governs the distribution of Linux kernel source code."," An operating system based on Linux but incompatible to the regular Linux kernel."," A set of changes to Linux which enable Linux to run on another processor architecture."
1 LEVEL ANSWER QUESTION 1 2 3 4 5
2 010-160 1 5 What are the differences between hard disk drives and solid state disks? (Choose two.) Hard disks have a motor and moving parts while solid state disks do not. Hard disks can fail due to physical damage while solid state disks cannot fail. Solid state disks can store many times as much data as hard disk drives. `/dev/sda` is a hard disk device while `/dev/ssda` is a solid state disk. Solid state disks provide faster access to stored data than hard disks.
3 010-160 Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server? In the A record for 165.100.51.198.ipv4.arpa. In the PTR record for 165.100.51.198.in-addr.arpa. In the RNAME record for 198-51-100-165.rev.arpa. In the ARPA record for 165.100.51.198.rev. In the REV record for arpa.in-addr.198.51.100.165.
4 010-160 4 Which of the following types of bus can connect hard disk drives with the motherboard? The RAM bus The NUMA bus The CPU bus The SATA bus The Auto bus
5 010-160 4 Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible? Ubuntu Linux LTS Raspbian Debian GNU/Linux CentOS openSUSE
6 010-160 2 What information can be displayed by top? Existing files ordered by their size. Running processes ordered by CPU or RAM consumption. User accounts ordered by the number of logins. User groups ordered by the number of members. User accounts ordered by the number of files.
7 010-160 4 Which of the following commands can be used to resolve a DNS name to an IP address? dnsname dns query host iplookup
8 010-160 3 5 What is true about the dmesg command? (Choose two.) It traces the execution of a command and shows each step the program carries out. It sends messages to the command lines of all current user sessions. It displays the content of the Linux kernel’s ring buffer. It immediately outputs all new messages written to the system journal. It might not display older information because it was overwritten by newer information.
9 010-160 5 Which of the following outputs could stem from the command last? `1 ls 2 cat text.txt 3 logout` `Password for user last changed at Sat Mar 31 16:38:57 EST 2018` `Last login: Fri Mar 23 10:56:39 2018 from server.example.com` `EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)` `root tty2 Wed May 17 21:11 - 21:11 (00:00)`
10 010-160 5 What is the UID of the user root? 1 -1 255 65536 0
11 010-160 5 Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt? `drw-r-xr-­` `d―wxr-x-­` `Cwxr-x--x` `Crwxrw---x` `-rw-r-xr-`
12 010-160 1 What is true about the owner of a file? Each file is owned by exactly one user and one group. The owner of a file always has full permissions when accessing the file. The user owning a file must be a member of the file’s group. When a user is deleted all files owned by the user disappear. The owner of a file cannot be changed once it is assigned to an owner.
13 010-160 1 Which of the following permissions are set on the /tmp/ directory? `rwxrwxrwt` `------rwX` `rwSrw-rw-` `rwxrwS--` `r-xr-X--t`
14 010-160 Which command adds the new user tux and creates the user’s home directory with default configuration files? `defaultuser tux` `useradd -m tux` `usercreate tux` `useradd -o default tux` `passwd -a tux`
15 010-160 2 3 5 What information is stored in `/etc/passwd`? (Choose three.) The user’s storage space limit The numerical user ID The username The encrypted password The users default shell
16 010-160 Which of the following tar options handle compression? (Choose two.) `-bz` `-z` `-g` `-j` `-z2`
17 010-160 for What keyword is used in a shell script to begin a loop?
18 010-160 Which of the following commands creates an archive file `work.tar` from the contents of the directory `./work/`? `tar --new work.tar ./work/` `tar -cf work.tar ./work/` `tar -create work.tgz -content ./work/` `tar work.tar < ./work/` `tar work > work.tar`
19 010-160 4 Which of the following keys can be pressed to exit less? l x e q !
20 010-160 4 5 The current directory contains the following file: `-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh` Given that the file is a valid shell script how can this script be executed? (Choose two.) `run test.sh` `${test.sh}` `cmd ./test.sh` `./test.sh` `bash test.sh`
21 010-160 4 Which of the following commands sorts the output of the command export-logs? `export-logs < sort` `export-logs > sort` `export-logs & sort` `export-logs | sort` `export-logs <> sort`
22 010-160 4 Which of the following commands will search for the file `foo.txt` under the directory `/home`? `search /home -file foo.txt` `search /home foo. txt` `find /home - file foo.txt` `find /home -name foo.txt` `find /home foo.txt`
23 010-160 2 The current directory contains the following file: `-rw-r―r― 1 root exec 24551 Apr 2 12:36 test.sh` The file contains a valid shell script but executing this file using `./test.sh` leads to this error: `bash: ./test.sh: Permission denied`. What should be done in order to successfully execute the script? The file’s extension should be changed from .sh to .bin. The execute bit should be set in the file’s permissions. The user executing the script should be added to the exec group. The SetUID bit should be set in the file’s permissions The script should be run using #!./test. sh instead of ./test.sh.
24 010-160 2 What is a Linux distribution? The Linux file system as seen from the root account after mounting all file systems. A bundling of the Linux kernel together with system utilities and other software. The set of rules which governs the distribution of Linux kernel source code. An operating system based on Linux but incompatible to the regular Linux kernel. A set of changes to Linux which enable Linux to run on another processor architecture.