Linux+ Review Test 1

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

/etc/profile

All users at your site are using the bash shell. You want to set a variable that will apply to every user and always have the same value. Which of the following shell configuration files should you place this variable in?

/root/ni ./ni

A Linux user has an executable file named ni that can save a snapshot of network information with the date and time in a log file. The executable ni file is in the /root directory, and /root is the current working directory. Which of the following commands would run the executable file? (Select TWO).

The user is assigned to a new list of supplementary groups.

According to the command help, which of the following is the result of adding -G to the usermod command as a single option? Type usermod -h or usermod --help at the prompt to answer the question.

~/.bash_profile

After a user starts a bash session and the script in /etc/profile is applied, if all of the following files exist, which will be run next?

/var /home

For which of the following directories should you create separate partitions? (Select TWO).

/var

If not cleared out, log files can eventually consume a large amount of data, sometimes filling a drive to its capacity. If the log files are on the same partition as the operating system, this could potentially bring down a Linux computer. Which of the following directories (or mount points) SHOULD be configured on its own partition to prevent this from happening?

OS kernel

In which boot process stage is the root partition mounted?

Specifies person name format. LC_NAME Specifically used an override for LC_MESSAGES. LANGUAGE A special variable for overriding all other settings. It sets all locales to the same settings. LC_ALL Defines all locale settings at once, while allowing further individual customization with the LC_*settings. LANG

Match the locale environmental variable name on the left with the description on the right.

/var /home

Most Linux distributions propose to create the root (/) and swap partitions by default. To prevent user files and system log files from filling up the / partition, which additional partitions are you MOST strongly advised to create? (Select TWO).

Network time protocol NTP

Users are complaining that the clocks for their operating systems do not match the current time for the location in which they live. Which of the following server roles is BEST for correcting this issue?

Add the command defining the alias to the appropriate shell configuration file.

Which of the following actions can be used to define a persistent alias?

UTF-8

Which of the following character sets is a variable length encoding standard of Unicode that uses one to four 8-bit bytes to support many languages and most commonly used on Linux?

ls -al /etc

Which of the following commands displays an expanded listing that includes the owner and size of all the files in the /etc directory?

find /home/gshant -name '*.txt'

Which of the following commands finds files with the .txt extension in the /home/gshant directory?

paste

Which of the following commands merges two files on a line-by-line basis and separate each line with a tab?

whatis man -k apropos

Which of the following commands searches man pages for a specific keyword? (Select THREE.

echo $LANG

Which of the following commands shows the value of the LANG environmental variable currently set for the language the operating system uses?

sort

Which of the following commands will display each line in a text file in alphabetic order?

The contents of the /usr/bin directory are written to a file named /tmp/list.txt. Previous file contents are kept, and the new information is added at the end of the file.

Which of the following describes the effects of the ls -l /usr/bin >> /tmp/list.txt command?

/proc /etc /bin

Which of the following directories MUST be part of the partition that holds the root (/) directory? (Select THREE).

/sbin /lib /dev

Which of the following directories MUST remain on the same partition? (Select Three).

~/.profile /etc/bashrc

Which of the following files would you use to create aliases that are applied when a specific user starts a BASH session? (select two)

The initial process

Which of the following has a process ID (PID) of 1?

Distinct (non-duplicate) inode.

Which of the following is a characteristic of a symbolic link?

All system information

Which of the following is displayed when the uname -a command is run?

Bourne-again shell (bash)

Which of the following is the standard shell for MOST Linux computers?

swap

Which of the following partitions functions as virtual memory for a Linux system?

Using wildcards to match specific files.

Which of the following statement describes file globbing?

locate

Which of the following utilities would you use to search a path for files that match a given name?

BIOS

Which system component verifies the hardware and passes control of the computer to the boot loader?

/home

You are in the process of manually creating the partitions during a Linux installation. Knowing that users will often require a lot of space to store their files, which of the following directories (or mount points) SHOULD be configured on its own partition?

LANG=C

You are trying to pipe data from the cat command to another program, but the data output does not make sense. You believe that the system's locale is corrupting the output. To test your hypothesis, you decide to change a locale environment variable. Which of the following changed variable would MOST likely produce correct data?

8 GB

You have a Linux system with 8 GB of RAM installed. You plan to use this system as a server. How much space should you plan to partition for the swap file?

export HOST

You recently used the HOST=FS4 command. Which of the following commands should you use to change the HOST variable to a global variable that will be inherited by subsequent child shells and processes?

localectl

Your Linux system was installed for you while you were living in the United States of America. You have since been transferred to a satellite office located in Wood Walton, England, and have taken your computer with you. Since England uses the larger A4 paper size, you would like to change the LC_PAPER locale environment variable. Which of the following is the BEST shell command to use for this purpose?

/proc

according to the Filesystem Hierarchy Standard (FHS), which of the following directories contains information about the system state and processes?


Kaugnay na mga set ng pag-aaral

Chapter 13 Physical Science Review

View Set

Sin, Cos, and Tan Values for All Circle Radians

View Set

4113L Science Philosophy Statements

View Set

Chapter 5: The sun, atoms, spectra

View Set

Ch.28 Water and Salt Physiology of Animals in their Environments

View Set

Bio chapter 9 - Cellular Respiration & Fermentation

View Set

Parte 3 LIFE INSURANCE class5 Producer Responsibilities

View Set