Unix 7&8

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

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 allow for the specification of the shell that interprets the contents of the script?

#!

In standard GRUB notation, select the option below that represents the first hard drive in a system, and the first partition on that hard drive.​

(Hd0,0)

Under what directory is the Linux kernel stored

/boot

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

What file controls the default runlevel when using Systemd?

/etc/systemd/system/default.target

At what runlevel does a Linux system have no daemons active in memory, allowing it to be safely powered off

0

What number represents the stdin file descriptor

0

In Linux, what runlevel is also known as the multiuser mode

2

What number represents the stderr file descriptor

2

The GUI components and related software take up how much space on a typical Linux installation

4 gb

In order to redirect a file to the standard input of a command, what metacharacter should be used

<

The standard output and standard error from a terminal screen within the BASH shell can be redirected to a file on the filesystem using what shell metacharacter, followed by the absolute or relative pathname of the file

>

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

Awk

On Linux systems that use the traditional ​UNIX SysV init, what command below can be used to list and modify the runlevels that a daemon is started in?

Chkconfig

What character is used to delimit most Linux configuration files

Colon

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

False

What construct is intended for use in processing a list of objects, such as files, directories, users, printers, and so on

For

What is the default target on a system with a GUI installed

Graphical.target

After modifying the /etc/default/grub file, what command should be run to rebuild the grub config files?

Grub -mkconfig

What command below can be used to re-install GRUB2 in the event that the boot loader becomes corrupted

Grub2-install

What command can be used to configure the LILO, ELILO, GRUB, and GRUB2 bootloaders

Grubby

In the /etc/lilo.conf file, what keyword should be specified in order to provide the absolute pathname to the Linux kernel?

Image=

What command below can be used to uninstall the LILO bootloader from an active partition

LILO -U

What command can be used to replace characters in a file sent via Standard Input

Tr

Any command that can be executed on the command line can also be placed inside any environment file.

True

Most daemon scripts accept the arguments start, stop, and restart

True

Much like the SysV init daemon, the Systemd init daemon is used to start daemons during system initialization as well as start and stop daemons after system initialization.

True

You can choose to use a window manager only, and not use a desktop manager.

True

You can use the sed command to remove unwanted lines of text

True

Which command can be used to count the number lines, words, and characters in a file

Wc

Once X Windows is configured, what command can be used to fine tune the vertical and horizontal refresh rate

Xvidtune

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

[ A -gt B ]

Select the escape sequence that is used for a form feed

\f

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

echo $PS1

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

|

In Fedora 20, where are user configured settings for Xorg stored

​/etc/X11/xorg.conf.d/

Select the escape sequence that starts a new line when used with echo

​\n

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

Env

Fedora 20 makes use of the XFree86 ​implementation of X Windows

False

Given the syntax command && command, the command on the left of the && construct is executed only if the command on the right of the && construct completed successfully.

False

The /etc/rc.d/rc 5 script only executes files that start with S in the /etc/rc.d/rc5.d/ directory.

False

To prevent a file from being cleared by the BASH shell and append output to the existing output, you can specify three > metacharacters alongside the file descriptor.

False

What keyword tells the Linux kernel to avoid printing errors to the screen during system startup

Quiet

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

Read & execute

Which command below can be used to start, stop, or restart any daemons in the /etc/init.d directory

Service

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

Set

What stage of the GRUB boot loader typically resides on the MBR / GPT

Stage 1

In order to change keyboard layout if X Windows can't detect the layout, you should use what CLI command

System-config-keyboard

When using Systemd, what command can be used to start, stop, and configure daemons to start automatically when the system starts?

Systemctl


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

Organization and Management (Chapter 3 -4 )

View Set

Maternal Captsone questions exam 3

View Set

Body Cavities & Serous Membranes Practical

View Set

NTR 201 Chapter 10 study questions

View Set