Linux Chapter 7 Test

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

A user has requested that each time she presents credentials to log in to a login file. Whihc is the best configuration files is best to modify

.profile

which of the following paths represents the root directory?

/

You have GRUB2 installed on your linux workstation you need to make changes.

/etc/grub.d/40_custom /etc/default/grub

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 file would you place this variable in?

/etc/profile

what is the full path to the directory the contains user data for all standard users on the system?

/home

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

/proc /etc /bin

What is the full path to the directory that contains data files that changeconstantly, including email, print jobs

/var

for which of the following directories should you create separate partiotions?

/var /home

During installation, you must create a root user account for the system. What user account number does this account use?

0

Which of the following vi key combinations should you press while in insert mode to save the file you and working on and quit?

<Esc>:wq

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

BIOS

what is the correct order for the boot phases of a linux computer

BIOS Boot loader OS Kernel system or init

Which of the following is the standard shell for MOST linux computers

Bourne-again shell (bash)

Which of the following desktops was derived from GNOME 3, follows traditional desktop metaphor conventions, and is the primary desktop

Cinnamon

Which environment variable overrides all other locale settings and sets all locales to the same setting?

LC_ALL

Users are complaining that the clocks for their operating systems do not match current time for the location in which they live.

NTP

Which remote desktop technology offers access from the most common platforms

NX

Which of the following is a free, open source scriptable screen reader that works with GNOME

Orca

You have a systemd linux system that is configured to boot into the graphical.target by default.

Set the default boot targert to rescue.target

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

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

the ls command in the current working directory gives the following listing

The mydata file is a symbolic link to the shantgems file

Ted. a linux user, creates symbolic links in his home directory to a set of files in their /data directory using the ln -s

The symbolic links still exist in Ted's home directory, but they are useless because the link has been broken.

Which X11 Window System element is the MAIN system component

X11 Server

which command displays a list of the currently defined aliases on the system?

alias

Which of the following commands creates a shortcut that can be used to run the tail -f /var/log/messages command?

alias sysmesg="tail -f /var/log/messages"

You have installed a package called mathpac with apt-get

apt-get upgrade mathpac

Which of the following commands sorts the combined contents of the wordlist1

cat /usr/wordlist1 /usr/wordlist2 | sort | tee sortedwordlist

A Linux administrator is logged in as root and needs to opy a file named letter.doc

cp /media/usb/letter.doc /root

You have installed a package called mathpac with DNF

dnf update mathpac

You want to view the number of commands your HISTSIZE environment variable is set to save. You don't want to have to scroll through all the environment variables. Which command shows you the value for the HISTSIZE variable?

echo $HITSIZE

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

echo $LANG

You need to find all files in the /home/gshant directory that are larger than 300K

find -size +300k

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

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

You are the administrator for a small company. You need to create

groupadd sales

You are experiencing a problem with a SysV init network server. You want to bring the system down and try reseating the cards within it before restarting it

init 0

which of the following situations is most likely to cause a dependency problem

installing two different packages that both include /usr/llb/graphlib

accoring to the command help, which of the following options can kill a process group

killall -g

Since england uses the larger A4 paper size you would like to change the LC_PAPER locale

localectl

which of the following commands searches man pages for a specific keyword

man -k apropos whatis

Fred, a linux admin needs to create the directory /var/oracle/database/9i

mkdir -p /var/oracle/database/9i

which file in the /usr/lib/systemd/system directory si text-based and used to start the services that support multiple users and support networking?

multi-user.targer

Which of the following commands will change the /home/pmallory/reports files name to reports.bak

mv /home/pmallory/reports /home/pmallory/reports.bak

within the /var directory is a subdirection named backup. ken a linux admin

rm -r backup

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

sort

which of the following partitions functions as virtual memory for a linux system

swap

rpm lab

type su press enter 1worm4b8 password rpm-ivh /home/wadams/Downloads/fontconfig rpm -q fontconfig

a programmer named Brandon calls with an issue. He is currently using the C shell each time he logs in but his manager has told him to start using the Bash shell

usermod -s /bin/bash brandon

GRUB TIMEOUT

vi /etc/default/grub i GRUB_TIMEOUT=10 esc :wq grub2-mkconfig -o /boot/grub2/grub.cfg reboot root 1worm4b8

create /etc/pref_shell file

vi /etc/pref_shell a SHELL=/bin/csh export SHELL esc :wq

At the command prompt, how would you enter a command that will print the line count, word count, and byte count respectively in the /home/gshant/servepath file?

wc -lwc /home/gshant/servepath


Kaugnay na mga set ng pag-aaral

Chapter 38 HINKLE - GI and Digestive

View Set

Chapter 11- Building a Customer-centric Organization-Customer Relationship Management

View Set

Pre-Licensing Training: Taxation - Section 9

View Set

English III Semester Exam Study Guide

View Set

Strings and GUI Programming Zylabs

View Set

Ch. 14: White-Collar Crime, Organized Crime, & Cybercrime

View Set

RE: Types of Loans, Terms, and Issues

View Set

AIS Technical Quiz #2 Flowcharting and DFD

View Set