456 quiz questions

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

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

*

The mkfs command can be issued with what switch in order to specify a filesystem type?

-t

The filesystem hierarchy standard specifies what directory as containing the linux kernel and the boot leader configuration files?

/boot

Which device below represents the first primary partition on the second PATA hard disk drive?

/dev/hdb1

What character device file represents the second serial port on a system(COM2)?

/dev/ttyS1

What two files below are the first two BASH environment files to be executed and controlled by the sysadmin (root user)?

/etc/bashrc /etc/profile

What environment file is always executed immediately after login for all users on the system, and sets most environment variables such as HOME and PATH?

/etc/profile

The filesystem hierarchy standard specifies what directory as the root user's home directory?

/root

Under the root directory in Linux, which directory contains system commands and utilities

/usr

What directory under / contains the log files and spools for a Linux system

/var

What number represents the stdout file descriptor?

1

Dennis Ritchie invented what programming language, which was then used to write the UNIX operating system?

C

It is acceptable to use shell metacharacters when naming files

F

The rmdir command automatically removes a directory and all of its subdirectories and files

F

In linux, you are restricted to using only one type of filesystem on a system

False

When a user interacts with his computer, he interacts directly with the kernel of the computer's operating system

False

You are limited to using one pipe | metacharacter on the command line to pipe information from one command to another command

False

the GNU general public license was developed by which organization?

Free Software foundation(FSF)

What software type is software that is distributed free of charge but the source code is not available

Freeware

What linux distribution is the most commonly used distribution within organizations today?

Red Hat

What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?

SGID, suid

What two BASH environment variables represent the current working directory, and the absolute pathname of the current shell, respectively?

SHELL PWD

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

T

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

T

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

T

The more command should not be used on binary files

T

you can use wildcard metacharacters with the find command

T

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

Tab

In Linux, the core component of the GUI is known as

X Windows

Select the test statement that can be used to determine if A is numerically greater than B

[ A -gt B]

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

[1-4]

What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?

^ $

which type of open source license ensures that the source code of a program is freely available while also allowing the original author of the source code some control over the changes made to it?

artistic

The ability to extract, manipulate, and format text using pattern action statements belongs to which command below?

awk

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

cal

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

cat data

When using command line terminal, specific letters that start with a dash and appear after command names are considered to be:

options

What two commands below can be used to edit a GPT based hard disk's partitions?

parted gdisk

What command below can be used to create a new physical volume?

pvcreate

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

pwd

If a file's permissions are set to 760, what permission(s) are available to the group assigned to the file

read write

What permissions are required to execute a shell script in a manner similar to any other executable program on the system?

read and execute

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

rm

The environment variables that are set by default and their current values can be viewed with what command?

set

After logging into a terminal a user will receive an interface known as which option below?

shell

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

superblock

In the event you wish to disable a swap partition, what command must be used

swapoff

Select the two commands below that can be used to prepare a swap partition and then enable it for use:

swapon mkswap

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

tac

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

tail -5

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

the mode of the file

Data is read from physical hard drives in concentric circles known as which of the following?

tracks

You can modify the PS1 variable to customize the shell prompt layout

true

In Fedora, what terminal is used for graphical login?

tty1

What is the minimum number of user accounts that must be created at install time?

two

What file system below is used by software programs that write to a CD-RW or DVD-RW drive?

udf

Select the commands that can be used to extend a volume group and logical volume respectively:

vgextend, lvextend

Which linux command can be utilized to display you current login name?

whoami

which character(s) below represent extended regular expression metacharacter(s)?

{}

Select the metacharacter that can be used to send the standard output of one command to another command as standard input:

|

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

~

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

~

What are two local environment files that you can modify for use with aliases, functions, exporting of user defined variables?:

~/.bash_profile ~/.bashrc

in order to move from the /home/joe/test/data to the home/joe directory what command below should be used?

cd ../..

A device that transfers data in a character-by-character fashion is referred to as what type of device?

character

In what mode does the vi editor open by default

command mode

What command can be used to copy files?

cp

In order to switch between terminals in Linux, a user can press what two keys in combination with the F1-F6 keys

ctrl, alt

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

dd

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

device driver

what command below provides the easiest method for monitoring free space on mounted filesystems?

df

Select the command below that shows the size of a directory and its contents in kilobytes

du

The default BASH shell prompt is set by an environment variable. What command can be used to view this variable?

echo $PS1

Th quotas for certain users can be edited by using which command

edquota

In an if construct, what statements are optional

elif else

A list of all exported environment and user-defined variables in a shell can be viewed with what command below

env

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

execute

After a shell is no longer needed, what command can be given to exit the shell?

exit

Which command allows user-defined variables to be accessed by subshells

export

What filesystem below perform journaling?

ext4

Select the command that can be used to create partitions that will be stores in an MBR after installation

fdisk

Errors on a filesystem are common on most filesystems. what do these errors indicate?

filesystem corruption

What command can be used to check different kinds of filesystems on Linux for errors

fsck

some linux distributions have the ability to boot an image from install media and run entirely from RAM. What is the name for this kind of image?

live media image

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

ln

Select the command below that utilizes a premade database that contains a list of all the files on a system

locate

What two commands below can be used to locate files on a filesystem?

locate find

Select below the command and the associated alias available on most linux systems that display a long listing for each file in a directory?

ls -l ll

What two commands can be used to show information about physical volumes and logical volumes respectively?

lvdisplay vgdisplay

the apropos list command produces the same results as which command below

man -k list

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

more, less

To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, what command can be used?

mount -a

What operator below is known as the NOT operator?

!

What character combination at the start of a shell script are referred to as a hashpling, and allows for the specification of the shell the interprets the contents of the script?

#!

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

$

What two characters below should not be used in filenames?

$ *

What metacharacter indicates background command execution?

&

What number represents the stderr file descriptror?

2

a hard drive or SSD can be divided into partitions. What is the maximum number of primary partitions that can be used on these devices?

4

Select the mode below that corresponds to setting r-x

5

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

7

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

:q!

What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output

;

What metacharacter should be used to append stdout to a file

>>

The two main competing GUI environments available in linux are:

GNOME, KDE

What stipulates the source code of any software published under its license must be freely available

GNU public license

Prior to performing an installation of Linux, the hardware components of the target system should be checked against what known compatible list below?

HCL (hardware capacity list)

Which of the following is the greatest expense for companies using linux?

Hiring people to maintain the Linux System

The core component the linux operating system is:

Kernel

The linux kernel was developed and released in 1991 by:

Linus Torvalds

when the core components of the linux operating system are packaged together with other open source software, it is called a:

Linux distribution

What two options below are examples of common UNIX flavors?

Macintosh OS X, HP-UX

When viewing the version number for a linux kernel, what number indicates the stability of the kernel

Minor number

Because Linux has the ability to manage thousands of tasks at the same time, including allowing multiple users to access the system simultaneously it is referred to an operating system that is:

Multitasking, multiuser

the overall cost of using a particular operating system is known as?

Total cost of ownership

At minimum, Linux typically requires only two partitions to be created: a partition that is mounted to the root directory, and a partition for virtual memory

True

Each computer on a network requires a unique way to identify itself and to refer to other computers. This is accomplished by using IP addresses

True

Many programming function libraries and UNIX-like commands appeared in the 1980s as a result of the work on the GNU project

True

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

True

The default desktop environment in Fedora is Gnome. It can also be changed by installing additional desktop environments.

True


Ensembles d'études connexes

psychologyYou are preparing to do a hard task and so you say to yourself, "I can do it!" What is this an example of? a personal dare motivational self-speech defensiveness modeling

View Set

Finance 300 Chapter 8 (Stock Valuation)

View Set

30-2 Set Theory - Notation & Vocabulary

View Set

Chapter 41: Musculoskeletal Care Modalities

View Set

Mutualism, Commensalism, Parasitism

View Set

Chapter 76: Drug Therapy of Urinary Tract Infections

View Set

REVIEW OF PATHOLOGY Questions Chapter 15. The Lung + WEBPATH pulmonagy

View Set

3rd Grammar Evaluation: Punctuation (week 2)

View Set