Linux Ch.1-4 Quiz

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

added to a ch or ls command for attributes?

attr

Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.

*

In a file's mode, a permission that is unavailable is represented by what character?

-

Which switch command can be added to the ls command to show a list of files and their type?

-F

The IPtables software on linux is an example of what kind of sofware?

Firewall

What option, when added to the rm command, is commonly referred to as the -resume option?

-r

The File system Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?

/boot

An alternative to the vi editor that offers an equal set of functionality is the_______ editor.

GNU Emacs

how do computers on a network identify each other and refer to other computers?

IP adress

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?

[1234]

What equivalent to the man command generally provides an easier-to-read description of the queried command and also contains links to other related information?

info

In order to create a hard link, what command must be used?

ln

which switch below can be added to the ls command to show a list of files and their type?

-F

open source software (OSS) is freely developed and continuously improved by a large community of software developers.

True

Is vim the Linux equivalent of vi?

Yes

Which of the following key combinations, commonly used in the vi editor command mode, displays current line statistics? a. $ c. Ctrl+g b. x d. P

c. Ctrl+g

The ____ can be used with LISP artificial intelligence programming language and supports hundreds of keyboard functions like the vi editor. a. Kedit editor c. Emacs editor b. Mcedit editor d. Nedit editor

c. Emacs editor

in linux, the core component of the GUI is known as

X windows

To display the line number of each line in a file, in addition to its contents, would you use the cat -n command?

Yes

When using the less command, can you use the cursor keys on the keyboard to scroll up and down the contents of the file?

Yes

Linux was developed by __________ to resemble the __________ operating system. a. Linus Torvalds, MINIX b. Linus Torvalds, GNU c. Richard Stallman, GNU d. Richard Stallman, MINIX

a

Many types of software are available today. Which type of software does Linux represent. a. Open Source Software b. closed source software c. freeware d. shareware

a

What command is most effective at identifying different types of files?

File command

Which culture embraced the term GNU(GNU's Not Unix) and laid the free software groundwork for Linux? a. the hacker culture b. the MIT culture c. the cracker culture d. the Artificial Intelligence culture

a

The ____ regular expression metacharacter matches 0 or more occurrences of the previous character. a. * c. + b. ? d. ^

a. *

The ____ symbol indicates a linked file. a. @ c. & b. * d. =

a. @

The ____ metacharacter can also be used to refer to the current user's home directory. a. ~ c. & b. @ d. #

a. ~

Which of the following kernels are developmental kernels? a. 3.3.4 b. 3.5.5 c. 3.2.7 d. 3.4.4

a/b

What are some good reasons for using Linux in a corporate environment? a. Linux software is unlikely to become abandoned by its developers. b. Linux is secure and has a lower total cost of ownership than other operating systems. c. Linux is widely available for many platforms ans supports many programming languages. d. Most Linux software is closed source

a/b/c

The ____ editor is functionally analogous to the Windows Wordpad and Notepad editors. a. XEmacs c. Emacs b. vi d. gedit

d. gedit

The ____ command can be used to provide a long listing for each file in a certain directory. a. ls -T c. ls -F b. ls -L d. ls -l

d. ls -l

Which is an extended regular expression metacharacter? a. . c. ^ b. [...] d. {}

d. {}

In vi, using command mode, what series of key presses will cause the line on which the cursor is on to be deleted?

dd

Because linux has the ability to manage thousands of tasks at the same time, including allowing multiple users to access the system at the same time, it is referred as an OS that is

multitasking and multi-user

Linux is a __________ and __________ operating system.

multiuser, multitasking

In a file listing, the 9 characters following the file type (for example, -rwxr-xr-x) refer to the file's _______.

permissions

In a file listing, the 9 characters following the file type (ie. -rwxr-xr-x) refer to the file's _____.

permissions

What is the most common open source Web server available for Linux? Answers: Samba Apache Squid pine

Apache

What is the default shell in Linux called?

BASH

To display the contents of a text file called data, what command should be used?

Cat data

In order to move from the /home/joe/test/data to the /home/joe directory, what command below should be issued?

Cd ../..

When sitting at a computer running Linux, what key combination is pressed to open the graphical terminal?

Ctrl + Alt + F1

What key combinations, commonly used in the vi editor command mode, displays current line statistics?

Ctrl + g

What piece of software tells the operating system how to use a specific hardware device?

Device driver

An alternative to the vi editor that offers an equal set of functionality is the GNU _____ editor.

Emacs

The LISP artificial intelligence programming language can be used with which text editor ?

Emacs editor

__________defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.

FHS

A swap partition contains a file system

False

Shell scripts do not require the execute permission in order to be run the same way binary programs are run.

False

T/F - The rmdir command automatically removes a directory and all of its subdirectories and files.

False

What commands is used for confirming the present directory that you're in?

pwd

Which prompt does the root user receive when logged in to the system?

#

The contents of a certain variable in memory can be viewed using which metacharacter in combination with the echo command?

$

Which prompt do regular users receive when logged in to the system?

$

The File system Hierarchy Standard specifies what directory as the root user's home directory?

/home

In the root directory in linux, which dir contains system commands and utilities?

/usr

what directory under / contains files and spools for a linux system?

/var

-wx-w-r-x

325

What is the maximum number of partitions that can be used on a hard drive or a SSD.

4

r--

4

what are the three numbers representing rwx?

421

r-x

5

rw-

6

rw-r-xrwx

657

rw- rw- rw-

666

When using the chmod command, the mode rwx can be represented by which number?

7

rwx

7

At the vi command mode prompt, what key combination will force a quit from the vi editor without saving changes?

:q!

What meta-character can be used to issue two commands to be run in consecutive order, without piping or redirecting output?

; semicolon

When issuing the ls -F command, what special character indicates a linked file?

@

The QT toolkit is utilized by which GUI environment?

KDE

Is the graphical Emacs editor harder to use than the Emacs editor?

No

To perform a case-insensitive grep search, would you use the -a option to the grep command?

No

when a user interacts with a computer are they directly interacting with the kernel?

No

How can you protect a metacharacter(such as the $ character) from shell interpretation?

Precede it with a \.

Which of the following can be used on Linux to provide file and print services? Answers: Samba Apache Squid pine

Samba

To display a text file in reverse order, what command should be used?

Tac command

What command can be used to display the last five lines of a text file?

Tail -5

If you boot your computer from Linux live media, you will be able to use a fully functional Linux system prior to installing Linux on permanent storage. Answers: True False

True

T/F - You can use wildcard metacharacters with the find command.

True

The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.

True

The database for the locate command can be updated manually by using the updatedb command.

True

The operating system software is necessary for a computer to function.T/F

True

What two Linux distros use the Debian package manager by default

Ubuntu Linux and Linux Mint

If you type enough unique letters of a directory and press ____ key, the BASH shell will find the intended file or directory being specified and fill in the appropriate information. a. Alt c. Ctrl b. Tab d. Esc

b. Tab

What command do you use to move backwards two directories

cd ../..

In order to set all of the special permissions on a certain file or directory, which command should be used on a file named filename?

chmod 7777 filename

Which command blanks the terminal screen erasing previously displayed output?

clear

In what mode does the vi editor open by default?

command

In what mode does the vi editor open by default?

command mode

What command can be used to copy files?

cp

In the GNU Emacs editor, what key combination can be used to delete all characters between the cursor and the end of the line?

ctrl + K

A production kernel refers to a kernel whose: a. revision number is even b. minor number is odd c. major number is odd d. minor number is even

d

Which of the following are common methods for gaining support for Linux? a. HOWTO documents at http://www.linuxdoc.org b. a local Linux User Group c. Internet newsgroups d. all of the above

d

The ____ command displays the last five lines of a text file. a. end -5 c. stop -5 b. head -5 d. tail -5

d. tail -5

What permission (when applied to a directory) allows a user to enter the directory and work with directory contents?

excecute

It is acceptable to use shell metacharacters when naming files.

f

Pressing the Esc key at the prompt while using the more command displays a help screen.

f

The command strings /bin/echo displays the raw binary characters inside the /bin/echo binary executable program.

f

In the past SATA hard disks were referred to as integrated drive electronics.

false

It is acceptable to use shell metacharacters when naming files. (true/false)

false

Command that can be used to provide a long listing for each file in a directory

ls -l

What command can be used to provide a long listing for each file in a directory

ls -l

Which command typed at a command prompt displays a list of commands that would likely contain the command you desire?

man -k flush

When looking at the version number for a linux kernel, what number indicates the stability of the kernel?

minor number

The section of an inode that stores permissions is referred to as what?

mode

When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?

more and less

To copy a directory full of files in Linux, you must tell the cp command that the copy will be _____(involve files and subdirectories too) by using the -r option

recursive

Text wildcards used to ease the searching of specific text information are called _____.

regular expressions

Text wildcards used to ease the searching of specific text information are called _______.

regular expressions

What does the setfacl -b command do?

removes all extra ACL assignments

What command takes a list of arguments specifying the absolute or relative pathnames of files to remove?

rm

Which of the following refers to the third primary partition on the second SCSI hard disk within Linux? hdb2 sda3 hdb3 sdb3

sdb3

After you log into a terminal, you receive a user interface called a __________.

shell

what command is most effective at identifying different types or files?

stat

What section of a filesystem contains information about the filesystem in general?

superblock

To create a(n) _____ link, you use the -s option to the ln command.

symbolic

Linux uses a logical directory tree to organize files into different folders.

t

In order to quickly create an empty file, what command can be used?

touch command

The more command should not be used on binary files. (true/false)

true

To install Linux within a virtual machine, you can specify the path to an ISO image that contains the Linux installation media within virtualization software without having to first write the ISO image to a DVD or USB flash drive. t/f

true

linux uses a logical directory tree to organize files into different folders.

true

A special variable used to alter permissions by taking away select defaults?

unmask command

What mode corresponds to setting r-x:

user

The _____ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.

which

Which command displays the users who are currently logged in to the Linux system?

who

which linux command can be used to display your current login name?

whoami

Due to the fact that the * character can be used to match all characters in a filename, or all files in a directory, it is referred to as a_______ metacharacter.

wildcard

What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?

write

What permission grants a user the ability to open, read, and edit the contents of a file?

write

Which character(s) represent extended regular expression metacharacter(s)?

{}

What metacharacter can be used to refer to the current user's home directory?

~

Which of the following are factors that determine which Linux distrbution a user will use? (Choose all that apply.) Answers: a. package manager support b. hardware platform c. kernel features d. language support

a/b/c/d

The core component of the Linux operating system is the Linux kernel. If you were a Linux system administrator for a company, when would you need to upgrade your Linux kernel? a. when you need to have support in Linux for new hardware b. when you need another user interface c. when you need to increase the stability of Linux d. when you need to use kernel modules

a/c

Which common GUI environments are available in most Linux distributions? (Choose all that apply.) Answers: a. GNOME b. CDE c. KDE d. RPM

a/c

Which two partitions do you typically create at minimum during a Fedora Linux installation? a. / b. /boot c. swap d. /home

a/c

Which two people are accredited with creating the UNIX operating system? (Choose two answers.) a. Dennis Ritchie b. Richard Stallman c. Linus Torvalds d. Ken Thompson

a/d

What command is equivalent to the man -k keyword command?

apropos keyword

Who formed the Free Software Foundation to promote open development? a. Dennis Ritchie b. Richard Stallman c. Linus Torvalds d. Ken Thompson

b

Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4? a. 1-4 c. [1234] b. [1-4] d. [1,2,3,4]

b. [1-4]

To move from the /home/joe/test/data to the /home/joe directory, use the ____ command. a. cd .. c. /home/joe b. cd ../.. d. cd ./..

b. cd ../..

The ____ command will confirm the system directory that you are currently in. a. dir c. whereami b. pwd d. ld

b. pwd

Which of the following are characteristics of Open Source Software? a. The value of the software is directly related to its price. b. The software is developed collaboratively. c. The source code for software is available for a small fee. d. Any bugs are fixed quickly.

b/d

Every computer consists of physical components and nonphysical components. The nonphysical components of a computer that understand how to work with the physical components are referred to as _____. a. hardware b. records c. software d. processors

c

To which license does Linux adhere? a. open license b. artistic license c. GNU General Public License d. free source license

c

When the core components of the Linux operating system are packaged together with other Open Source Software, it is called a:a. new kernel b. new platform c. Linux distribution d. GNU Project

c

Which of the following is not a piece of information that the Fedora installation program prompts you for? a. Time zone b. Installation destination c. Firewall settings d. Keyboard layout

c

Which of the following is not an example of virtualization software that can be use to install Linux within another operating system? Answers: a. Oracle VirtualBox b. Microsoft Hyper-V c. Spiceworks d. VMware

c

To view a list of files and their type, use the ____ switch to the ls command. a. -T c. -F b. -L d. -l

c. -F

Most files on a Linux system that contain configuration information are ____ files. a. system c. text b. directory d. program

c. text

A calendar for the current month can be shown on the command line by issuing which command?

cal

To display the contents of a text file called data, what command should be used?

cat data

To display the contents of a file called data, use the command ____. a. disp data c. ls -l data b. ls data d. cat data

d. cat data

Linux commands entered via the command line are not case sensitive.t/f

false

Pressing the Esc key at the prompt while using the more command displays a help screen. (true/false)

false

The command "strings /bin/echo" displays the binary characters inside the /bin/echo binary executable program. (true/false)

false

Users enter commands directly to the kernel of the Linux operating system.t/f

false

the term hacker refers to someone who illegally uses computers for personal benefit or to cause damage.

false

What argument can be used with the chmod command to add read permission and remove write permission for a group on a file?

g+r-w

What command can you use to safely shut down the Linux system immediately?

halt

What two commands will halt a linux system immediately?

halt and shutdown -H now

Filenames that start with a period, such as .file, are referred to as ______ files.

hidden

The file .file.dat is an example of a _____ file.

hidden

When a user logs into their Linux system, he is placed in the _____ directory.

home

What command utilizes a premade database that contains a list of all the files on a system:

locate command

When a user creates a file or directory, that user's name and ______ becomes the owner and group owner of the file, respectively.

primary group

What command can be issued to confirm what directory you are in at a command line prompt?

pwd

The more command should not be used on binary files.

t

If enough unique letters of a directory name have been typed, what key can be pressed to activate the BASH shell's completion feature?

tab

to display a text in reverse order, what command sohould be used?

tac


संबंधित स्टडी सेट्स

ISDS 3115 Ch 11: Supply Chain Management Conceptual

View Set

Module 3 Safety, Including Hygiene, Infection Control, Asepsis and Medication Administration

View Set

Chapter 22: The Lymphatic System and Immunity

View Set

Silvestri Maternity/Antepartum comprehensive review

View Set

Англійська мова 9 клас

View Set

Maternity and Pediatrics Ricci, Kyle and Carman- Ch 44

View Set