





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
DCOM 142 LINUX FINAL STUDY ,LINUX ESS. CH 12, LINUX FINAL, LINUX, 211 FINAL
Typology: Exams
1 / 37
This page cannot be seen from the preview
Don't miss anything!






























True or false: The /etc/group file supports linking each user to a maximum of one group.
The programming language that provides a direct one-to-one correspondence between human-understandable words and machine-understandable numbers is ________ language - Answers - assembly True or false: All Linux Web browsers are GUI programs - Answers - False True or false: KDE is built atop the Qt widget set. - Answers - True Which of the following are risks you take when you browse the Web as an ordinary user on a properly-configured Linux system? (Select all that apply.) - Answers - Most Web sites are unencrypted, so data transferred from the site and your computer, or vice- versa, can be intercepted Some Web sites deliver mini-programs that run on your computer, and if such a site delivers a malicious program, it could do just about anything, including steal your personal data files An attempt to acquire sensitive data directly from victims by posing as a trusted Web site or authority is known as ____. - Answers - phishing Which of the following programs are Linux file managers? (Select all that apply.) - Answers - Thunar, Nautilus, Konqueror hich of the following programming languages is most often implemented as a compiled language? - Answers - only C++ is commonly implemented as a compiled language A _______ is a GUI program in which text-mode programs (including shells) run. - Answers - terminal Postfix is a server that implements the ______ protocol. (Provide the protocol's acronym.) - Answers - SMTP You can type Xorg ________, as root, to have X create a default configuration file that you can then modify. - Answers --configure The /proc/______ pseudo-file holds data on your CPU, such as its model name and clock speed. - Answers - cpuinfo Where do most drivers exist on a Linux system? - Answers - the Linux kernel, Which of the following is an inappropriate choice for a filesystem to hold the majority of a Linux installation? - Answers - The Hierarchical File System (HFS) was used by Mac OS prior to Mac OS X. It doesn't support features required by Linux in its main filesystem
You want to create a link from your home directory on your hard disk to a directory on a CD-ROM drive. Which of the following types of links might you use? - Answers - Symbolic links can point across filesystems, so creating a symbolic link from one filesystem (in which your home directory resides) to another (on the CD-ROM) isn't a problem The term _________refers to the use of wildcards in filename specifications. - Answers
To append a program's standard error to an existing file without deleting its contents, you should use the ____ redirection operator. - Answers - 2>> Which options to find can you use to locate files owned by a particular user? (Select all that apply.) - Answers - The - uid option to find locates files owned by a user with the specified user ID (UID) number, and the - user option locates files based on the user's username True or false: Linux supports two types of text-mode output to the screen, which you can send to separate files or display devices. - Answers - True The _________ option to tar causes it to back up only the specified low-level filesystem; if another filesystem is mounted within the directory you say to back up, those files will be ignored. - Answers ---one-file-system You use the ___ character to separate two strings, either of which should match, in an extended regular expression. - Answers - | (pipe) True or false: A carat (^) represents the start of a line in regular expressions. - Answers
The string _______, located at the start of the file, identifies a script as a Bash script. - Answers - #!/bin/bash The Bash logical-and operator is ____. - Answers - && What Bash scripting keyword terminates a case statement? - Answers - esac When assigning a value to a variable in a Bash script, you separate the variable from its value with the ____ character. - Answers - = You're writing a script that will be called by other scripts. You want to signal abnormal termination of your script by passing a value of 8 to the external script under some circumstances. What command can you use in your own script to do this - Answers - exit - 8 The exit command terminates a script, and you can pass it a value that you want to set as your script's terminating value True or false: You can use common external commands, such as find and sed, in your Bash scripts. - Answers - True True or false: It's impossible to run a Bash script if it hasn't had an executable bit set on its file. - Answers - False True or False: Linux stores information on its groups in the /etc/groups file. - Answers - False True or False: whoami provides more information than id. - Answers - False A(n) _________ environment means that a person cannot deny actions, and the sudo command helps establish this environment. - Answers - nonrepudiation To learn who is currently logged into the computer and what programs they're currently running, you can type _____. - Answers - w True or False: As a general rule, you should employ extra care when running programs as root. - Answers - Answer: True The file that associates usernames with UID numbers in Linux is ___________. (Provide the complete path to the file.) - Answers - /etc/passwd UIDs below 500 or 1000 (depending on the distribution) are reserved for use by __________ accounts. - Answers - system You want to run the command cat /etc/shadow as root, but your logged in as an ordinary user. Which of the following commands will do the job, assuming that the
system is configured to give you root access via the appropriate command? - Answers
You want to test connectivity to tranquility.luna.edu by sending 11 packets to see how many return. To do this, you can type __________ tranquility.luna.edu. - Answers - ping
An attempt to acquire sensitive data directly from victims by posing as a trusted web site or authority is known as _______. - Answers - phishing A _______ is a GUI program in which text-mode programs can be run. - Answers - terminal True or false: All Linux web browsers are GUI programs. - Answers - false Which of the following programming languages is most often implemented as a compiled language? - Answers - C++ True or false: You can modify graphics files from the command line using Linux. - Answers - True Which of the following programs are Linux file managers? (Select all that apply.) - Answers - Thunar Dolphin Thunderbird Nautilus Which of the following are risks you take when you browse the Web as an ordinary user on a properly configured Linux system? (Select all that apply.) - Answers - A web site with malicious dynamic content could steal your personal data files. Data transferred to or from a web site can be intercepted, possibly exposing sensitive data to theft. A ______ or workstation computer is typically used by one or a small number of people to perform everyday productivity tasks, such as computing values with a spreadsheet or browsing the Web. - Answers - desktop Where did the Linux kernel originate? - Answers - University of Helsinki Which of the following are examples of embedded computing devices? (Select all that apply.) - Answers - Automobiles, televisions, dvrs The terminal emulator program that would eventually become the Linux kernel was created in - Answers - 1991 True or false: Open source software is by definition available free of charge. - Answers
True or false: The Creative Commons is a software industry group opposed to the goals of the FSF. - Answers - False Core Unix tools include which of the following? (Select all that apply.) - Answers - GNU tool set X windows System Which Linux distribution are you most likely to find in use on a cell phone? - Answers - Android True or false: It's possible for an end user to make good use of Linux without directly interacting with a text-mode shell. - Answers - True True or false: The Linux kernel was developed as part of the GNU's Not Unix (GNU) project. - Answers - False True or false: The ls command displays the names of files in a directory. - Answers - True (two words) software, such as Linux, gives the user greater control than proprietary software, such as Windows, does. - Answers - Open Source True or false: Because of Cocoa, GUI applications developed for OS X typically cannot be run directly on Linux. - Answers - True Which of the following distributions use RPMs for package management? (Select all that apply.) - Answers - OpenSUSE CentOS Specialized computing devices, such as DVRs, cell phones, and network appliances, use _________ OSs - Answers - embedded Ubuntu releases a new version of its OS every _____ months. - Answers - 6 Slackware is unusual because it uses ________ as its package file format. - Answers - tarballs Which of the following is not a function of the Linux kernel? - Answers - Displaying common GUI elements such as dialog boxes Which of the following is a common server program? - Answers - Samba Which options to find can you use to locate files owned by a particular user - Answers -
The gzip program generally produces more compact compressed files than does the bzip2 program. (T or F) - Answers - F Where does the kernel store its ring buffer logs? - Answers - In memory A program allocates more and more memory but doesn't use the memory it allocates ( words). - Answers - Memory leak Both RPM and Debian packages can specify that they require other packages. (T or F) - Answers - T The file stuff.txt does not exist. You type nano stuff.txt and press Enter. What happens next? - Answers - The nano text editor starts, and displays the message, New File, in the status bar. A text encoding method that can use single- or multiple-byte encodings to store text. - Answers - Unicode ASCII is limited to 72 characters (T or F) - Answers - F What Bash scripting keyword terminates a case statement? - Answers - esac The string _______, located at the start of the file, identifies a script as a Bash script. - Answers - !#/bin/bash You can record the output of a command in a variable by enclosing the command in backticks. (T or F) - Answers - F What types of information does the id command provide? - Answers - Your UID, username, current group, all group member You can type _____ command, with no arguments, to learn your current username and nothing more? - Answers - whoami The lowest UID number used for user accounts on Linux systems is typically 500 or
An Internet site that hosts software that you can install with yum, APT, or a similar tool is known as a ___________ - Answers - repository The first process to be run by the Linux kernel is normally called ________ - Answers - init Which of the following programs produces a summary of the memory status of your computer, including the total memory available, the amount used, and the amount that's unused? - Answers - free Which of the following tools can you use to identify running processes? - Answers - ps, top Pressing the M key in top causes the display to change to sort processes by memory use. (T or F) - Answers - T Which of the following commands provides a low-level way to install software on a Debian system? - Answers - dpkg The /var/log/messages file always holds general-purpose log entries. (T or F) - Answers - F To save a text file in vi, you should press Ctrl+S. (T or F) - Answers - F You're working in vi and, after having saved your current file, you want to load a new one. You can do so by typing ____ newfile.txt from command mode. - Answers - :e A version of the vi text editor called "vi improved," or vim is used for most Linux distributions. (T or F) - Answers - T What keystroke deletes a line of text when using nano? - Answers - Ctrl+K In pico or nano, you can paste text that you've cut or copied earlier by pressing Ctrl+____. - Answers - U What keystroke creates a new blank line immediately below the current one, when typed in vi's command mode? - Answers - o nano is an extended variant of pico. (T or F) - Answers - T When assigning a value to a variable in a Bash script, you separate the variable from its value with the ____ character. - Answers - = You're writing a script that will be called by other scripts. You want to signal abnormal termination of your script by passing a value of 8 to the external script under some
circumstances. What command can you use in your own script to do this? - Answers - exit 8 What command can you use to retrieve user input into a variable in a Bash script? - Answers - read It's impossible to run a Bash script if it hasn't had an executable bit set on its file. (T or F) - Answers - F The symbols which make up the Bash logical and operator is ____. - Answers - && All Bash scripts must contain functions. (T or F) - Answers - F You're writing a script that should accept two arguments, a username and a year, specified in that order on the command line. What variable would you use to access the year? - Answers - $ Which methods or commands provide access to superuser privileges for authorized users? (Select all that apply) - Answers - su Which pieces of information on user accounts is not normally stored in the /etc/passwd file on modern Linux distributions? - Answers - The accounts password You can type su _________ command to issue a single command with root privileges. - Answers --c The who command reveals the remote computer from which users have logged in, when they've logged in remotely. (T or F) - Answers - T Which of the following files defines Linux groups? - Answers - /etc/group The /etc/group file supports linking each user to a maximum of one group. (T or F) - Answers - F What types of information does the id command provide? - Answers - Your UID number, Your current group The lowest UID number used for user accounts on Linux systems is typically 500 or 1000 (depending upon the distribution). (T or F) - Answers - T A user account's information is linked between the /etc/passwd and /etc/shadow files via the account's UID. (T or F) - Answers - F You can type the ______ command, with no arguments, to learn your current username and nothing more? - Answers - whoami
Mary finds that she can delete George's files in /tmp. What might this imply? - Answers
True or false: dhcpd is a common DHCP client for Linux. - Answers - Your network's hardware interface is called eth0. You want to bring up this interface via DHCP, so you type dhclient _____ as root. - Answers - eth What type of information can netstat provide? - Answers - Answer: A, B, C netstat can provide information on network interfaces similar to what ifconfig provides (option A), routing table data similar to what route provides (option B), and a list of open ports (option C). It can not provide round-trip network packet travel time similar to what ping provides (option D) or the identities of broken routers similar to what traceroute provides (option E). What term refers to the worldwide system of servers that translates between IP addresses and hostnames? - Answers - Answer: B The question describes the Domain Name System (DNS), so option B is correct. The Dynamic Host Configuration Protocol (DHCP) delivers network configuration information to computers when they boot, so option A is incorrect. The Transmission Control Protocol/Internet Protocol (TCP/IP) is the overarching standard used for most networking purposes, so option C is incorrect. IP version 6 (IPv6) is an addressing system that supports immensely more addresses than does the older IPv4, so option D is incorrect. The Secure Shell (SSH) is an encrypted remote login protocol, so option E is incorrect. What program can you use to manually bring up a network interface in Linux? - Answers - Answer: D The ifconfig program does as the question specifies (among other things), so option D is correct. The iwlist command displays information on Wi-Fi networks but does not bring up a network interface, so option A is incorrect. The route command displays or modifies routing tables, but does not bring up a network interface, so option B is incorrect. The telnet command is a remote-access and network diagnostic tool, but it does not bring up a network interface, so option C is incorrect. The traceroute command produces network diagnostic information, but it does not bring up a network interface, so option E is incorrect. Programs that can look up DNS information include host, nslookup, and _____. - Answers - dig True or false: The - n option to traceroute causes it to display hostnames rather than IP addresses. - Answers - False The statement has it backwards; - n causes traceroute to display IP addresses rather than its default of hostnames.