Linux Practice Questions 2

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

You need to create a user account via the useradd utility. After checking this distribution's account creation configuration files, you discover that the HOME directive points to a different location than desired. Which useradd option will allow you to create the home in an alternative location?

-d

What option to the useradd command causes the user's home directory to be created during the user creation process?

-m

The venerable and inspirational Slackware distribution uses which of the following package formats?

.tgz

Your system's kernel and other startup files are located in which directory?

/boot

Which specification is used for both SCSI devices and USB storage devices?

/dev/sd*

When you use the mount command to mount a device into your system's filesystem, what read-only file will reflect the mounted filesystem's presence and details?

/etc/mtab

On a modern Linux system, in what file/directory is the actual encrypted/hashed password kept?

/etc/shadow

When a new user account is created, which of the following directories is copied and named accordingly to form the new user's home directory?

/etc/skel

Timezone information in traditional Linux systems is kept in the file /etc/localtime. On modern Linux systems, this file is kept in which of the following folder?

/usr/share/zoneinfo

Annika puts the file line PS1="My Prompt: " into her account's $HOME/.bash_profile file. This setting changes her prompt the next time she logs into the system. However, when she starts a subshell, it is not working properly. What does Annika need to do to fix this issue?

Add export prior to PS1 on the same line in the file.

Your X11 session has become hung. What keystrokes do you use to restart the session?

Ctrl+Alt+Backspace

When backing up your system, you execute the backup utility with a set of options that produces a backup file that contains all the files changed since the last full backup performed. Which of the following best defines this command's results?

Differential

Which of the common desktop systems is conceived of and created to provide a more open-source and unencumbered version of a Linux desktop?

GNOME

Which common Linux Desktop was originally controversial due to its use of non-GPL libraries?

KDE

Which variable sets the language a user interface is displayed in, typically set in the /etc/profile?

LANG

You inherit a system that has a complex partitioning scheme for its disks, apparently several disks are used to make up a system volume, and the filesystem has been created in that volume. What is the type of disk management being used?

LVM

The Unity desktop environment uses _________ as its display manager and _________ as the default file manager.

LightDM Nautilus

____________________ was designed to be a more efficient and massively scalable alternative to connect users via Xclient or VNC?

NX

When connecting to a VNC server, which of the following ports should be used through the web browser client method?

Port 5800

If you want to hide the configuration file from the usual *ls* and other user-level commands, what precaution can you take?

Preceed it with the character dot.

What can you do to limit an SFTP server program from allowing users to access system files?

Run it in a chroot jail

Multiple users of a shared directory are reporting problems accessing each other's files. The directory has a common group between the users set, but a quick inspection shows different group ownerships on the user's files. What setting needs to be set for proper sharing to occur?

SGID

_______________ is an environment variable that is used by various time-related functions on the system to compute the local time relative to UTC/GMT time?

TZ

You are troubleshooting a problem with a user's graphical user interface, which is being served by X11. You notice that the XDMCP is being used as the display manager. What does this implicate?

The XDMCP is used for the user authentication interface.

When a server boots, an error shows briefly on the screen that indicates that a device was unable to be mounted. A review of the /etc/fstab shows the device was supposed to be mounted at boot. The device is present in the *lsblk* output. What is the most likely cause of the error?

The device mount point is missing.

What drive and partition do the raw device file /dev/sdb1 reference?

The first partition on the second SCSI storage device

When connecting from a Windows client system to a properly configured Linux server, which of the following protocols will provide a GUI session both via a client app or through a Browser?

VNC

You come across a file that is named etc.gz and want to open it and see what the contents are. What do you know this file cannot directly contain?

a directory

At its core, a Debian package is really what type of file?

ar archive

What command uses the formatted string shown below? 1. %a %b %d %H:%M:%S %Y

ascii-time

What command can you use to list the hosts defined on a domain?

dig

Your system's disk space is getting misused by a number of users and so you have instituted disk quotas. Which of the following commands should you use to set and then edit your user's disk quota allowances?

edquota

After declaring and populating a variable, you write a script that uses that variable in its operation. Upon executing the script, you find the variable is not found. What command will help you make the variable and its contents available to the script?

export

You need to locate files within the /tmp directory or one of its subdirectories. These files should be empty. Assuming you have superuser privileges, what command should you use?

find /tmp - empty

What command should you use to repair a partition that won't mount?

fsck

Which tool do you need to use to partition a GPT indexed hard drive?

gdisk

In order to change the various elements of host naming information on a systemd server, you would use what command?

hostnamectl

Which command has options to help you both commit your hardware clock's time to the system, and the system's current time to the hardware clock?

hwclock

What command should you use on a systemd system to set the localization?

localctl

Which command is used to alter system settings that affect the language of system settings and the display manager interface presented to a user before and after login?

localctl

What tool creates a logical volume from multiple physical partitions?

lvcreate

When creating a redundant array of inexpensive disks, what command is used?

mdadm

Which command will cause the user's password to be altered in a recoverable fashion, effectively locking the user out of the system?

passwd -l

You need to display the various quotas on all your filesystems employing quota limits. Which of the following commands should you use?

repquota -a

When migrating an application from one server to another, you need to run a utility that can compare the local data with a remote location, and do it securely over the network via the ssh protocol. Which of the following would you most likely use to perform this task?

rsync

Name four backup utilities.

rsync dd zip tar

A system administrator has created a backup archive and transferred the file to another system across the network. Which utilities can be used to check the archive file's integrity?

sha512sum md5sum

You are trying to archive and compress a set of files so they can be sent to another system. Which of the following commands will allow you to both archives and compress this set of files?

tar

When you execute a new script you've written, one of the environment variables you created in your current shell for use in that script doesn't appear to be present. Which of the following commands would help you to fix this issue?

timedatectl

A system admin created an archive file using the tar utility and employed an option to apply compression automatically to the file. The system admin used an archive file extension of .txz. Which compression utility did the system admin claim the tar utility used?

xz


Kaugnay na mga set ng pag-aaral

LearningCurve 3a. Developmental Psychology's Major Issues; Prenatal Development and The Newborn

View Set

CHAPTER 4 SOCIAL PERCEPTION AND DIVERSITY

View Set

Final Exam - Virginia Life and Health Practice

View Set

Penny Abdomen Chapter 9: Abdominal Vasculature

View Set

Intermediate Accounting Chapter 5 Quiz

View Set