Chapter 0, Linux Ch. 7&8, Linux Chapter 2, Linux Chapter 1, Linux Test chapters 4-9

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Question 42 : Which of the following represents the Bash logical operator AND?

&&

Which option of the ls command causes it to view dot files?

-a

Which option with the grep command displays only the number of matching lines in a file?

-c

Question 9 : Which option of the userdel command is used to delete a logged in user's account?

-f

You want to store the sorted output of a file to another file. Which sort option will you use to specify the target file?

-o

Which of the following useradd options is used to create a system account?

-r

What will be the device filename of the first logical partition on the second MBR disk?

/dev/sdb5

Under which version of the GPL is the Linux kernel distributed?

2

What will be the output of the following line of code? for a in `seq 2 5`; do echo -n $a; done

2345

Ubuntu releases a new version of its OS every _____ months.

6

You're unable to exit the vi editor without saving the changes made to the file by using the :q command. Why?

A ! is not appended with the command. B The :q command only exits the file if the changes are saved.

Which of the following statements are true of a symbolic link?

A A symbolic link refers to another file using its name. B A symbolic link has an l as the first character of its permission string.

Which of the following statements are true of functions in Linux scripts?

A Functions can be declared in shell scripts by using the function keyword. B A function is called by its name in a script similar to an ordinary command.

terminal

A _______ is a GUI program in which text-mode programs (including shells) run.

memory leak

A condition in which a program allocates more and more memory but doesn't use the memory it allocates is called a ______ ______ (two words).

What are dot-files in Linux?

A file whose name starts with a dot

LibreOffice

A program comes to the documentation file text read me. ODT. what program can you use to read this file?

Which of the following are true of memory leak in Linux?

A program with memory leak fails to return memory after it's done with it. & A program with memory leak keeps requesting for more memory.

FAQ

A question that is posed often, perhaps with an associated answer, is known as a ____. (Specify the acronym)

#

A symbol found in the root shell prompt by default is __.

Which of the following are risks you take when you browse the Web as an ordinary user on a properly configured Linux system?

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.

On which of the following CPU types does Linux run? Each correct answer represents a complete solution. Choose all that apply.

ARM x86 x64

Which of the following is true of Unicode? Each correct answer represents a complete solution. Choose all that apply.

ASCII is a subset of Unicode. It is a text encoding method.

repository

An Internet site that hosts software that you can install with yum, APT, or a similar tool is known as a __________.

phishing

An attempt to acquire sensitive data directly from victims by posing as a trusted Web site or authority is known as ____.

Which Linux distribution are you most likely to find in use on a cell phone?

Android

Which of the following statements are true of virtualization? Each correct answer represents a complete solution. Choose all that apply.

B Entire servers can be masked using virtualization. & It allows creation of simulated hardware.

How can you browse to a new node using the standard info documentation reader?

B Select a link using the arrow keys and then press the Enter key.

Which of the following statements are true of beta software? Each correct answer represents a complete solution. Choose all that apply.

B This software version's release comes after the alpha software. D It is more stable than the alpha software.

Question 24 : Which of the following commands copies the contents (including all its subdirectories) of the ~/dir directory to /media/usb?

B cp -R ~/dir /media/usb

Which of the following open source business models use(s) the crowdfunding method?

Bounties

Question 22 : Which of the following information can you display using the ifconfig command?

Broadcast address MAC address IP address Subnet mask

Which of the following is not a way companies can legally make money using GPLed software?

By incorporating GPLed software into a proprietary program that the company sells

Which of the following operating systems is Linux largely modeled on?

D UNIX

Which of the following is not a function of the Linux kernel?

Displaying common GUI elements such as dialog boxes

Which of the following are valid keywords that identify DNS resolution features in /etc/resolv.conf?

Domain search nameserver

Which of the following are vi editor operation modes?

Ex Command Insert

Which of the following organizations bases its philosophy on software licensing on a strong moral imperative that users should be able to modify their software?

FSF

True or false: Another term for the GPL is the MIT license.

False

True or false: The Creative Commons is a software industry group opposed to the goals of the FSF.

False

True or false: The Linux kernel was developed as part of the GNU's Not Unix (GNU) project.

False

Core Unix tools include which of the following? (Select all that apply.)

GNU tool set X windows System

Select a link using the arrow keys and then press the Enter key.

How can you browse to a new node using the standard info documentation reader?

Which of the following distributions use RPMs for package management? (Select all that apply.)

OpenSUSE CentOS

Each correct answer represents a complete solution. Choose all that apply.

It can be changed using the umask command. & It determines the default permissions for new files.

Question 33 : Which tar qualifier causes it to use xz compression?

J

A _______ is a collection of software routines that can be used by other software. Licensing terms for this type of software are important for programmers who use the software.

Library

Linux runs on a wide variety of CPUs, including all of the options shown and many more. Thus, options A, B, C, and D are all correct, and option E is necessarily incorrect.

On which of the following CPU types does Linux run? (Select all that apply.)

(two words) software, such as Linux, gives the user greater control than proprietary software, such as Windows, does.

Open Source

Which software gives a user greater control than proprietary software?

Open source

Which of the following information on user accounts is not stored in the /etc/passwd file, in modern Linux distributions?

Password

What is a network location from where YUM or APT installs software called?

Repository

cpuinfo

The /proc/______ pseudo-file holds data on your CPU, such as its model name and clock speed.

FAT

The _____ filesystem is very old but is supported by almost every OS, making it a good choice for interoperability.

Locate

The ____ commands search is a database of phone names for the name or name or name that you specify.

SANE

The _____ library provides drivers to control scanners. (Provide the acronym for the library's name.)

--one-file-system

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.

l

The character __ identifies a symbolic link in the 10-character symbolic permission string that's associated with a file.

L

The character ____ identify say symbolic wings in 10 - character symbolic permission stream that's associated with this file

Case sensitive

The files afile.txt and AFile.TXT can both exist on a Linux file system because these file systems are _____

case-sensitive

The files afile.txt and AFile.TXT can both exist on a Linux filesystem because these filesystems are ____________.

init

The first process to be run by the Linux kernel is normally called _______.

assembly

The programming language that provides a direct one-to-one correspondence between human-understandable words and machine-understandable numbers is ________ language.

A non-root Linux user is able to delete another non-root user's files in /tmp. Which of the following does this imply?

The sticky bit is missing from /tmp, it must be set. n general, the sticky bit is set on /tmp, which prevents other users (other than the file's owner) from deleting the files in the directory. The write permissions must be present on /tmp for users to be able to make changes to its contents. Since, a non-root user is able to delete another user's files, the /tmp partition is definitely not mounted as read-only.

globbing

The term ____ refers to the use of wild cards in file name specifications

Question 17 : Which of the following are true of the #!/bin/bash statement in a script file?

This line specifies the path of the program that's to interpret the script. & It identifies a script as a Bash script.

Which of the following statements are true of server computers?

They may or may not require a GUI. They provide services to end-users.

tail

To display the last few lines of a text file, you would type _____ afile.txt.

--color

To obtain a color-coded file listing, if your distribution doesn't produce one by default, you would type ls _____.

../

To refer to the file afile.txt in the directory one level above the current one, you would type ___afile.txt.

Whatis man

To search on man paige name sections for the key word man, you would type

True or false: As a general rule, open source license terms broaden your rights as a software consumer, compared to the rights granted by copyright law.

True

True or false: Because of Cocoa, GUI applications developed for OS X typically cannot be run directly on Linux.

True

True or false: It's possible for an end user to make good use of Linux without directly interacting with a text-mode shell.

True

True or false: The ls command displays the names of files in a directory.

True

True or false: The term copyleft is a slang term that refers to liberal licensing terms, such as those used by free software.

True

True

True or false. When operating a large file the env command works very quickly when the target directory is on the same low level file system as the original file, but much more slowly when this isn't the case

True The carat (^) represents the start of a line, as the question specifies.

True or false: A carat (^) represents the start of a line in regular expressions.

False The Lynx Web browser is text-mode; you can run it in a terminal window or from a text-mode login.

True or false: All Linux Web browsers are GUI programs.

True Dependency information is critical for package management, and it works as the question specifies.

True or false: Both RPM and Debian packages can specify that they require other packages. The package system will then refuse to install the package unless these dependencies are met or you provide an override option.

False Most filesystems disallow hard links to directories, and mv won't let ordinary users create one even if the filesystem supports this feature. Soft (also known as symbolic) links, on the other hand, can point to directories, and ordinary users can create such links. Thus, the statement in the question is false; you must use a soft link, not a hard link, when linking to a directory.

True or false: If you want to create a link to a directory, you must use a hard link.

True The K Desktop Environment (KDE) is built using the Qt GUI library (widget set), as the question specifies.

True or false: KDE is built atop the Qt widget set.

False Linux supports a wide variety of USB printers (although you should check on support for specific models before buying).

True or false: Linux lacks support for USB printers, so you must use a parallel or Ethernet printer with Linux.

True The two types of output are standard output and standard error.

True or false: Linux supports two types of text-mode output to the screen, which you can send to separate files or display devices.

True You can assign one OS to reside on one partition (or set of partitions) and another OS to reside on another. This is one of several purposes for disk partitions.

True or false: Partitioning a disk can enable you to install multiple OSes on one computer.

True The M key in top works as specified.

True or false: Pressing the M key in top causes the display to change to sort processes by memory use.

True

True or false: Pressing the up arrow key in Bash reveals commands you've recently typed.

False Although /var/log/messages is a common name for a general-purpose log file, not all distributions use this name; some use /var/log/syslog or some other file for this purpose.

True or false: The /var/log/messages file always holds general-purpose log entries.

False The bzip2 program usually produces compression that's superior to gzip's. Both programs are surpassed by xz.

True or false: The gzip program generally produces more compact compressed files than does the bzip2 program.

True The ps program is one of the primary means of viewing the process table, which holds information on running processes.

True or false: The ps program enables you to view the process table.

False You can launch GUI programs in several ways, including using a desktop environment's menus or typing the program's filename in a terminal program.

True or false: To run a GUI program in Linux, you must launch it from a desktop environment's menus.

False The specified command shows you all the files whose names include a dot (.), but there's no guarantee that all the files in the directory will include a dot in their names.

True or false: Typing ls *.* at a Bash prompt is guaranteed to show you all the files in the current directory.

True The mv command moves or renames files, and it works by rewriting low-level filesystem data without touching the file's data when the target is on the same filesystem as the original. Thus, it can work quickly when this is the case. When moving a file across filesystems, though, mv must copy the data, which can take a while when the file is large.

True or false: When operating on large files, the mv command works very quickly when the target directory is on the same low-level filesystem as the original file, but much more slowly when this isn't the case.

True Most distributions automatically mount removable media in their own subdirectories of /media. This practice is not universal, but it is very common, particularly when running desktop environments such as GNOME, KDE, or Xfce.

True or false: With most distributions, the contents of optical discs, USB flash drives, and other removable media appear in subdirectories of /media.

False Because of Linux's security features, you can only delete files in directories to which you have write access. As an ordinary user, you should not have write access to most of the system directories, so rm won't allow you to remove most system files.

True or false: You can delete any file on the computer by using rm as an ordinary user.

True The ImageMagick suite of graphics programs is text-based; you can use it to convert file formats, add frames to images, resize images, and so on, all from the command line.

True or false: You can modify graphics files from a text-mode login using Linux.

True Although grep is more commonly employed to search text files, it can search for strings in binary files.

True or false: You can use grep to search for strings in binary files.

False

True or false: every man paige must have a section called bugs that report known bugs

False

True or false: if you want to create a link to a directory, you must use a hard link.

False

True or false: info paige have largely replaced me and paige on the most common form of documentation for Linux programs

False

True or false: typing LS *.* at a bash prompt is guaranteed to show you all the files in the current directory

True The term super server refers to a server that listens for connection attempts on behalf of other servers and that launches those other servers only as needed. The two most common super servers on Linux are inetd and xinetd.

True or false: xinetd is a super server.

False

True or false: you can delete any file on the computer by using RM as an ordinary user

True

True or false: you can use IRC to get help from any problems from other users in real-time

False

True or false: you can usually find program documentation in the directory called doc/ packagename name, where package packagename is the name of the package

Which of the following can be displayed using the id command?

Username UID Group memberships

Remote logins permit you to perform any of the activities specified

What can you do locally that you can't do from a remote login via SSH, provided both computers are configured to permit the actions?

An ampersand (&), placed after a command typed in Bash, causes the command to run in the background,

What symbol do you place after a command to run the program in the background?

System adminstration commands

What type of information is documents section 8 of the man page system?

Drivers manage hardware, and as such, they're most commonly part of the Linux kernel,

Where do most drivers exist on a Linux system?

Men - K keyword

Which is the following commands is equivalent to typing apropos keyword?

The dpkg program is the low-level interface to the Debian package system; you can use it to install, uninstall, and otherwise manage packages.

Which of the following commands provides a low-level way to install software on a Debian system?

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,

Which of the following is an inappropriate choice for a filesystem to hold the majority of a Linux installation?

The login program handles text-mode logins, but it isn't a shell program,

Which of the following is not a Linux command shell program?

The Serial Advanced Technology Attachment (SATA) interface is the dominant type of internal hard disk interface today

Which of the following is the most common type of interface for internal hard disks on desktop computers today?

Of these languages, only C++ is commonly implemented as a compiled language

Which of the following programming languages is most often implemented as a compiled language?

Thunar is a file manager associated with Xfce, Konqueror is a file manager and Web browser associated with KDE, and Nautilus is a file manager associated with GNOME.

Which of the following programs are Linux file managers? (Select all that apply.)

The free command produces the information specified,

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?

The >> operator appends standard output to a file,

Which of the following redirection operators appends a program's standard output to an existing file, without overwriting that file's original contents?

The ps and top programs are text-mode commands to identify running programs,

Which of the following tools can you use to identify running processes? (Select all that apply.)

LibreOffice is derived from OpenOffice.org, so options A and E are correct. GNOME Office and KOffice are independently-created office suites for Linux, while Microsoft Office is a commercial office suite for Windows and Mac OS X.

Which of the following two office suites are most closely related to one another? (Select two.)

The -i option does as the question specifies, so option E is correct. The --symlinksThe

Which option to zip can you use to encode symbolic links as such rather than including the linked-to file?

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.

Which options to find can you use to locate files owned by a particular user? (Select all that apply.)

The .* sequence matches any string of any length,

Which regular expression string matches any sequence of characters of any length?

?

You can press the ____ key to search backward when viewing a document with less.

-configure

You can type Xorg ________, as root, to have X create a default configuration file that you can then modify.

The touch command updates a file's time stamps or creates a new empty file if one doesn't already exist. Since the latter case is described by the question, a new file will be created

You type touch afile.txt in a directory that contains no files. What will be the effect?

A new empty file called afile.txt will be created in the current directory

You type touch afile.txt in a directory that contains no files. what will be the effect?

| (pipe)

You use the ___ character to separate two strings, either of which should match, in an extended regular expression.

- I & - interactive

You want to copy a set of files but be prompted before CP overrides any existing files. You would use the ________ option to CP to accomplish this goal.

--interactive or -i

You want to copy a set of files but be prompted before cp overwrites any existing files. You would use the ___ option to cp to accomplish this goal.

cp -R ~/important/media/USB

You want to copy the contents of the ~/important directory including all its subdirectories to /media/usb. What cammand can you type to accomplish this goal?

mkdir -p ~/Documents/paper

You want to create a directory called documents / papers but you're not sure that the Documents directory exists. what command can you type to create the desired directory and its parent directory if it doesn't already exist?

The -p option to mkdir creates parent directories if they don't already exist,

You want to create a directory called ~/Documents/papers, but you're not sure that the ~/Documents directory exists. What command can you type to create the desired directory and its parent directory if it doesn't already exist?

Only a symbolic link

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?

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,

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?

What will be the output of the echo command? for alpha in a b c; do echo -n $alpha; done

abc

A crowd-funding open source business model, called _______, is where users offer money as a reward for new software or new features in existing software.

bounties

Which of the following commands can be used to change the ownership of a file?

chown

Specialized computing devices, such as DVRs, cell phones, and network appliances, use _________ OSs

embedded

The FSF uses the term (two words) to refer to software that's licensed under terms that satisfy its philosophy concerning software licensing.

free software

Which of the following commands can be used to delete a group from a Linux system?

groupdel

Question 10 : Which of the following commands is used to view a list of most recent commands executed by a user?

history

Question 40 : Which command can be used to send four packets to test network connectivity to pete.ucertify.com?

ping -c 4 pete.ucertify.com

Question 29 : Which of the following commands can be used to list running processes? Each correct answer represents a complete solution. Choose all that apply.

ps top

Question 44 : Which of the following commands displays the name of a directory in which a user is working?

pwd

A (two words) grants an organization the right to install software on more than one computer.

site license

Slackware is unusual because it uses ________ as its package file format.

tarballs

Question 21 : Which of the following commands can be used to specify default permission mode for new files?

umask

Which of the following commands displays a count of lines, words, and bytes for a file?

wc

Which of the following commands creates a zip file named trip.zip and compresses it as much as possible?

zip -9 trip.zip holiday.tif desc.txt

Which of the following symbols is used to separate two possible matches in a regular expression?

|


Ensembles d'études connexes

Ch. 6: Differentiation, Cost Leadership, Blue Oceans

View Set

Chapter 9: Communication and the Clinical Interview Evolve Questions

View Set

Managerial Accounting Long Problems Review

View Set

Developmental Psychology (Life Span) Part 1

View Set

PrepU Chapter 36: Management of Patients with Musculoskeletal Disorders

View Set

Principles & Practices: Module 7 (Chapter 12, Overview Real Estate Finance)

View Set

Health Assessment: Rashid Ahmed Pre-Simulation Quiz

View Set

EC 402 Advanced Macroeconomics Final Exam

View Set

Mastering Biology Chapter 7 Study Module

View Set

Article 430 motors Article 440 air conditioning and refrigerating equipment

View Set