Linux 7/8

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

In the /etc/shadow file, which character in the password field indicates that a standard user account is locked?

! or !!

In the /etc/shadow file, which character in the password field indicates that the password is an encrypted entry? ! $ * !!

$

You need to identify which user accounts on the Linux system have encrypted passwords. Which character in the password field of the /etc/shadow file indicates that an encrypted password is set for the user account?

$

Which useradd option displays the default values specified in the /etc/default/useradd file?

-D

You are inspecting the superblocks and block information on your file system. You need dumpe2fs to display only the blocks that are reserved as bad in the file system. Which of the following options should you use? -b -h -x -f

-b

Your ext3 file system has experienced a significant amount of corruption. To examine the file system, you want to use the debugfs utility. Which of the following debugfs options should you use to examine the file system? -w -f -c -V

-c (-c to specify the file system should open in catastrophic mode. debugfs is useful for file systems with significant corruption.)

You suspect your /dev/sda3 partition is in need of repair. Which of the following e2fsck options will repair the errors without any interaction from you? -b -n -f -p

-p (e2fsck -p to automatically repairs the ext2 file system without any interaction from you. Use e2fsck to check and optionally repair a second extended file system (ext2) or ext2 files systems containing a journal (ext3). Other e2fsck options include the following: -f forces a file system check, even when the file system appears clean. -n opens the file system as read-only and automatically answers all questions no. -y automatically answers all questions yes. -b uses an alternative superblock if the primary superblock is corrupt.)

What is the file path and name of the directory that contains device files for hard drives, optical drives, and USB devices?

/dev

You are preparing to mount a device local to your system. Which directory holds the device files? /local/dev /devices /dev /opt/dev

/dev (The files for devices are always stored in /dev according to the FHS.)

Type the full device file name for the second partition on the hard drive with the lowest ID number.

/dev/sda2 (/dev/sda2 is the second partition (2) on the hard drive with the lowest ID number (a). /dev/sdxn file names identify hard drives.)

Type the full device file name for the first partition on the hard drive with the third lowest ID number.

/dev/sdc1

You need to change the default home directory value, which is used by the useradd utility when creating a user account. What is the full path and filename of the file you should edit?

/etc/default/useradd (The /etc/default/useradd file contains default values used by the useradd utility when creating a user account, including:)

What is the full path and filename of the file that contains the file system table for a Linux system?

/etc/fstab

You have added several new hard disks to your system. After partitioning and formatting, you have modified a configuration file to mount these new file systems automatically. You want to document the change you made. Which of the following configuration files would you document? /etc/fstab /etc/crontab /etc/inittab /etc/modules.conf

/etc/fstab

You have added several new hard disks to your system. After partitioning and formatting, you have modified a configuration file to mount these new file systems automatically. You want to document the change you made. Which of the following configuration files would you document? /etc/crontab /etc/modules.conf /etc/fstab /etc/inittab

/etc/fstab

You want to mount a number of file systems each time the system is brought up. Which configuration file should hold the configuration information for the file systems to be mounted? /etc/profile /etc/inittab /etc/fstab /etc/mount

/etc/fstab (/etc/fstab holds the file system table configuration of all filesystems to be mounted during normal operations.)

A file contains the following entry: sales:x:1001:pclark,mmckay,hsamson Which of the following files contains similar enties? /etc/passwd /etc/group /etc/gshadow /etc/shadow

/etc/group

Which file shows the currently mounted volumes? /etc/mtab /etc/mount.conf /etc/mount /etc/fstab

/etc/mtab (The /etc/mtab file shows the currently mounted volumes.)

What is the full path to the directory that contains a set of configuration file templates that are copied into a new user's home directory when it is created?

/etc/skel (The /etc/skel directory contains a set of configuration file templates that are copied into a new user's home directory when it is created)

Which of the following directories is specified by Filesystem Hierarchy Standard (FHS) as a mount point for removable media, such as USB storage media, DVDs, CD-ROMs, and Zip disks? /mount / /media /mnt

/media

During installation, you must create a root user account for the system. Which of the following user account number does this account use? 0 1 10 100

0

During a Fedora distribution installation, you choose to add a regular user account. The only other user that has been added to the system was root. Which of the following user IDs is MOST likely to be associated with the new user? 0 1 2 101 400 1000

1000 (On Fedora (and in most modern distributions of Linux), accounts below 100 or 500 are used for system accounts, and user accounts begin with 1000.)

Given this entry in the /etc/passwd file: pmallory:x:1001:1050:Paul Mallory:/home/pmallory:/bin/bash Which of the following is the user ID associated with this entry. x 1001 pmallory 1050

1001

Which of the following is the maximum number of GUID partitions that can be created using the gdisk utility? 128 8 32 64

128

Which of the following is the maximum number of primary partitions that can be created on a single hard disk drive? 4 2 8 Unlimited

4

The graphics driver was recently updated on a system. Now, the graphical user interface (GUI) is not displaying, preventing the user from logging in. You need to access the system locally to login. Which of the following commands will access the virtual terminal tty2? ssh localhost tty Ctrl+Alt+F2 tty echo tty2

Ctrl+Alt+F2

Which of the following is the maximum number logical partitions allowed on an extended partition? 4 1 Unlimited 2

Unlimited

Which file system is a FAT32 file system for Linux?

VFAT (VFAT is a FAT32 file system for Linux. VFAT does not support journaling, but includes long name support. Support for VFAT must be compiled into the kernel for the system to recognize the VFAT format.)

An employee named Bob Smith, whose username is bsmith, has left the company. Your supervisor has instructed you to delete his user account and home directory. Which of the following commands would produce the required outcome? (Select TWO). a. userdel bsmith;rm -rf /home/bsmith b. usermod -r bsmith c. userdel -h bsmith d. userdel bsmith e. userdel -r bsmith

a, e (userdel -r will delete a user's home directory along with the user account. The command userdel by itself will not delete a user's home directory along with the user account. Executing rm -rf on the user's home directory after executing userdel would remove the home directory.)

Which of the following commands creates a logical volume named video from the home volume group and configures it with 2 TB of disk space? a. lvcreate -L 2T -n video home b. vgcreate -L 2T -n home video c. vgcreate -L 2T -n video home d. lvcreate -L 2T -n home video

a.

You are asked to help a user who is complaining that file system errors are being reported during boot-up. When you reboot the user's system, you see errors on sda2. Which of the following strategies will check the file system on sda2 and fix the errors? a. Change to single user mode and run fsck /dev/sda2. b. Change to single user mode and run scandsk /dev/sda2. c. Change to single user mode and run fdisk /dev/sda2. d. Run fsck /dev/sda2. e. Run chkdsk /dev/sda2.

a. Change to single user mode and run fsck /dev/sda2. (You want to change to single user mode to prevent any access to the file system and use the fsck utility on /dev/sda2. It is also important to ensure the volume on which you are using fsck is not mounted. Using fsck in mounted volumes can corrupt most filesystems.)

What would be the outcome of the following command? userdel -r jjones a. The user account, jjones, would be deleted along with jjones's home directory. b. The user jjones's home directory would be deleted, but the user account would still exist. c. The user account, jjones, would be deleted, but jjones's home directory would be left untouched. d. The user account, jjones, would be deleted along with jjones's home directory and all files owned by jjones.

a. The user account, jjones, would be deleted along with jjones's home directory.

Which of the following command allows you to use an alternative superblock when the primary superblock has been corrupted? a. e2fsck -b 16385 /dev/sda1 b. mke2fs -n /dev/sda1 c. fsck /dev/sd1 d. mkfs -t ext2 /dev/sda1

a. e2fsck -b 16385 /dev/sda1 (Use the e2fsck -b 16385 /dev/sda1 command to use the alternative superblock at block 16385.)

Which of the following commands/command sequences can be used to view the partition information on the first hard disk? (Select TWO.) a. fdisk -l b. fdisk /dev/sda, then press p c. fdisk /dev/sd1, then press p d. cat /proc/part e. cat /etc/part

a. fdisk -l b. fdisk /dev/sda, then press p

You have a group named temp_sales on your system. The group is no longer needed, and you want remove the group. Which of the following is the BEST command for accomplishing this task? a. groupdel temp_sales b. groupmod -n temp_sales c. groupmod -R temp_sales d. newgroup -R temp_sales

a. groupdel temp_sales

Due to a merger with another company, standardization is now being imposed throughout the company. As a result of this, the sales group must be renamed marketing. Which of the following is the BEST command to use to rename the group? a. groupmod -n marketing sales b. grpconv marketing sales c. grpchange marketing sales d. groupadd -c marketing sales

a. groupmod -n marketing sales

You have partitioned and formatted a new hard drive, sdc. You want to mount the first partition on sdc to directory /mnt/newdisk. Which command will perform the mount correctly? a. mount /dev/sdc1 /mnt/newdisk b. mount /mnt/newdisk /dev/sdc1 c. mount /dsk/sdc_first /mnt/newdisk d. mount /dev/sdc /mnt/newdisk e. mount /sdc1 /mnt/newdisk

a. mount /dev/sdc1 /mnt/newdisk (specify the /dev directory and the device and partition you want to mount and then the mount point to mount the device to.)

Marco recently made some partition changes, and the kernel is not recognizing the partitions. Which of the following commands should Marco use to resolve the problem? a. partprobe b. cat /etc/partitions c. df d. fdisk -l

a. partprobe

Which of the following utilities would you typically use to lock a user account?(Select TWO. Each answer represents an independent solution.) a. passwd b. usermod c. useradd d. userdel

a. passwd b. usermod

You have a Linux system with two activated swap partitions, sda3 and sdb2. Which of the following commands can you use to deactivate only the sda3 swap partition? a. swapoff /dev/sda3 b. swapoff -a c. fdisk d /dev/sda3 d. pvcreate /dev/sda3

a. swapoff /dev/sda3

Partition /dev/sdb2 is mounted to /mnt/temp. You need to unmount /dev/sdb2. Which commands would you use? (Select TWO). (Each option is a complete solution.) a. umount /mnt/temp b. dismount /mnt/temp c. unmount /dev/sdb2 d. dismount /dev/sdb2 e. umount /dev/sdb2

a. umount /mnt/temp e. umount /dev/sdb2 (Use umount to unmount a device. You can specify the device, /dev/sdb2, or the mount point, /mnt/temp)

One of your users, Karen Scott, has recently married, and is now Karen Jones. She has requested that her username be changed from kscott to kjones. Which of the following commands will accomplish this task without changing other values? a. usermod -l kjones kscott b. usermod -u kjones kscott c. usermod -l kscott kjones d. usermod -u kscott kjones

a. usermod -l kjones kscott (Use the usermod utility to modify user settings. Use the -l flag to signal a change to the username. The correct syntax requires that the new username value be given followed by the old username.)

Gloria, a Linux administrator, used the gdisk utility to create eight partitions on a new hard drive. Which of the following BEST describes the partitions Gloria has created? a. The first seven partitions are primary partitions. The eighth partition is an extended partition that can be used to contain logical partitions. b. All eight partitions are the same. They are simply partitions. There are no primary, extended, or logical partitions. c. All eight partitions are logical partitions. There are no primary or extended partitions. d. The first three partitions are primary partitions. The fourth is an extended partition that holds five logical partitions, making eight partitions in total.

b

You need to configure your Linux system to allow only the root user account to mount the CD-ROM device. Which of the following options should you add to the /etc/fstab file? a. /dev/cdrom /media/cdrom -t iso9660 ro b. /dev/cdrom /media/cdrom -t iso9660 ro,user,noauto c. /dev/cdrom /media/cdrom -t iso9660 ro,users,noauto d. /dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto

b. /dev/cdrom /media/cdrom -t iso9660 ro,nouser,noauto (nouser allows only the root user to mount the volume. noauto prevents the volume from being mounted automatically. Use this option for removable media. ro mounts the volume read only.)

Which of the following hexadecimal codes represents an extended partition? a. 0x82 b. 0x85 c. 0x88 d. 0x83

b. 0x85

Tom, a Linux administrator, has installed a new hard disk. He creates two primary partitions, sdb1 and sdb2, and one extended partition, sdb3. He formats sdb1 with ext3 and sdb2 as a swap area. When Tom attempts to format sdb3 as a swap area, he is unable. Which of the following explains why Tom can't format sdb3? a. Only a primary partition can be formatted as a swap area. b. An extended partition can't be formatted. c. A swap area can only reside on the second primary partition. d. A single drive can only have one swap area.

b. An extended partition can't be formatted.

Which of the following commands partitions the second hard disk on a Linux system? a. format /dev/sdb1 b. fdisk /dev/sdb c. fdisk /dev/sdc d. fdisk /sd0-1

b. fdisk /dev/sdb

You are the administrator for a small company. You need to create a new group for users in the sales department. You need to name the group sales. Which command will accomplish this task? a. addgroup -x sales b. groupadd sales c. addgroup sales d. groupadd -r sales

b. groupadd sales

Which of the following commands formats the second partition on the fourth disk drive with the ext3 file system? a. format -e3 sdb2 b. mke2fs -e3 /dev/sdd2 c. fdisk -e3 /dev/sdb2 d. mke2fs -j /dev/sdd2

b. mke2fs -j /dev/sdd2

A user with an account name larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage files in your system in the very near future. Which command below will disable or remove the user account from the system and remove his home directory? a. userdel larry b. userdel -r larry c. userdel -h larry d. userdel -home larry

b. userdel -r larry

You have an xfs file system in your Linux computer. You need to display the XFS file system parameters, such as the block size and inode data structures. Which of the following commands should you use? (Select TWO). (Each answer is an independent solution.) a. mkfs.xfs b. xfs_info c. xfs_metadump d. xfs_growfs -n

b. xfs_info d. xfs_growfs -n (xfs_growfs -n and xfs_info display the XFS file system parameters, such as the block size and inode data structures. The XFS file system is proficient at handling large files and offers smooth data transfers. It also can reside on a regular disk partition or on a logical volume.)

You are viewing the /etc/passwd file, and you notice the following entry: pclark:x:1001:1001:Petunia Clark:/home/pclark:/bin/bash What statement BEST describes this entry? a. The pclark user account has not set a password. b. The pclark password is the letter x. c. The pclark password is stored in the /etc/shadow file. d. The pclark user account is locked.

c

You attempt to unmount a volume using the umount /dev/sdd3 command, but you receive a device is busy error message. Which of the following strategies will be MOST likely to allow you to unmount the file system? (Select TWO). a. Use the fscls command to close any open files on the filesystem. Try to unmount again. b. Edit /etc/fstab and remove the mount. Try unmount again. c. Find and close any open files on the file system, and try to unmount again. d. Perform a backup of the sdd3 device and try to unmount again. e. Make sure your current working directory is not on the file system and try to unmount again.

c, e (Some file systems will not allow you to unmount a file system if your current working directory is in that file system. The command lsof lists open files, and the pid that has the files open. This will allow you to close the file, or at least kill the process that has the file open.)

Which of the following statements best describes the function of the repquota /home -vu command? a. The current user's quota limits and usage for /home are displayed. b. The aquota.user and aquota.group files in /home are created. c. A summary of disk usage and quotas is displayed for the users who have files within /home. d. The /home quota file is opened in vi for editing.

c. A summary of disk usage and quotas is displayed for the users who have files within /home.

Which of the following describes the effects of the tune2fs -j /dev/sdb1 command? a. Changes how many times the /dev/sdb1 device is mounted before running fsck. b. Displays the superblock on the /dev/sdb1 device. c. Converts the /dev/sdb1 device to ext3. d. Remounts the /dev/sdb1 device as read-only.

c. Converts the /dev/sdb1 device to ext3.

You are requested to help a user who reports that he has no more local storage space. You go to his system and log in as the root user. Which of the following commands will display the available disk space on all partitions? (Select TWO). a. dskuse -free b. du -a c. df d. fdisk -free e. df -h f. du -h

c. df e. df -h (df shows the size, used blocks, and available blocks for each partition. Using df -h shows the same information in bytes instead of blocks. du is used to show the disk usage of each file in a directory in blocks; du -a is for all files, and du -h shows the usage in bytes, not blocks.)

You need to create a user account with the following parameters: Login name: pmorrill Comment: Paul Morrill Home directory: /home/pmorrill_temp UID: 683 Which of the following commands should you use? a. useradd -c "Paul Morrill" -d ~/pmorrill_temp -u 683 pmorrill b. useradd pmorrill -c "Paul Morrill" -d /home/pmorrill_temp -u 683 c. useradd -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill d. useradd -d "Paul Morrill" -h /home/pmorrill_temp -u 683 pmorrill

c. useradd -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill

You need to modify the group membership for the cjensen user to add the staff group to his list of secondary group memberships. He needs to keep his existing secondary group memberships. Which command option will add cjensen to the staff group without removing him from the other groups? a. usermod -a staff cjensen b. usermod -ag staff cjensen c. usermod -aG staff cjensen d. usermod -G staff cjensen

c. usermod -aG staff cjensen

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. Which command will change brandon's shell to the desired setting? a. useradd brandon /bin/bash b. usermod brandon /bin/bash c. usermod -s /bin/bash brandon d. userchange -a brandon /bin/bash

c. usermod -s /bin/bash brandon

You have an XFS file system in your Linux system represented by /dev/sdb1. You need to copy all the filenames on the drive to the /reviewxfs file. You must be able to read the filenames in the /reviewxfs file. Which of the following commands should you use? a. xfs_metadump -e /dev/sdb1 /reviewxfs b. xfs_growfs -n /dev/sdb1 /reviewxfs c. xfs_metadump -o /dev/sdb1 /reviewxfs d. xfs_info /dev/sdb1 /reviewxfs

c. xfs_metadump -o /dev/sdb1 /reviewxfs (xfs_metadump -o /dev/sdb1 /reviewxfs to copy (dump) the metadata from the XFS file system on /dev/sdb1 to the /reviewxfs file. By default, the file names and extended attribute names are obfuscated before they are dumped. -o disables obfuscation of file names and extended attributes.)

You suspect that the gshant user account is locked. What should you enter at the command prompt to see the status of the gshant user account?

cat /etc/shadow or passwd -S gshant

You have been asked to temporarily fill in for an administrator who has just been fired. This administrator was known to have lax security standards, and you suspect that passwords are still kept in the /etc/passwd file. Which of the following entry within the passwd file would indicate that the passwords are stored there? a. clifford:x:687:301:non secure user:/root: b. eddie:x:100:100:://users/eddie: c. adam:x:341:52:Adam Fox:/users/adam:/bin/bash d. kolton:34uyx:431:0:Back Door:/root:/bin/bash

d

Which of the following steps must be completed after creating a logical volumes so that the logical volume can be used to store files? a. Give the volume a descriptive name and allocate space to it. b. Add the volume to a volume group and mount the group in the file system. c. Scan for logical volumes and extend them. d. Create file systems on the volumes and mount them.

d. Create file systems on the volumes and mount them.

Yesterday, you created a new swap area for your system. Today, after rebooting the system, you find that the swap area is not mounted. What should you do to ensure that the swap area is mounted each time the system boots? a. Edit /etc/inittab and add the swap area. b. Run the mount --auto command and identify the swap area partition. c. Edit /etc/mtab and add the swap partition. d. Edit /etc/fstab and add the swap partition. e. Remount the swap area. Then run export mount to make the change persistent.

d. Edit /etc/fstab and add the swap partition.

The following line is a sample entry in the /etc/shadow file: lclark:$ab7Y56gu9bs:12567:0:99999:7::: What does the second field represent? a. The users unencrypted password. b. The users GUID number. c. The users UID number. d. The users encrypted password.

d. The users encrypted password.

One of the Linux servers for the accounting department needs additional memory to fix recent performance issues. You have ordered the memory, but it is backordered, so you decide to add a swap partition to the server to help the performance issues immediately. Which of the following commands will add a swap partition to the first partition on the third hard drive? a. swapon /dev/sdc1 b. fdisk c. vmstat d. mkswap /dev/sdc1

d. mkswap /dev/sdc1

A user is trying to access a file system mounted at /mnt/sdb1, but receives an error that states No such file or directory. Which commands can you use to see the current mount points? (Select TWO). fsck mounts mntfs mount df mntchk

df mount

When creating an ext2 or ext3 file system, a fixed number of inodes is assigned. Which of the following commands shows the number of inodes, number of free inodes, and number of used inodes? df -i du --inodes mke2fs -i ls -i

df -i (df -i or df --inode displays the total number of inodes, used inodes, and free inodes; the percentage of inodes in use; and the mount point.)

You have created a separate partition for the sales team and mounted it to the /sales directory. The team is about to begin a new project, and they want to make sure there is enough disk space to hold upcoming files. Which of the following commands will show you the amount of free space? diff /sales free /sales df /sales part /sales

df /sales (df /sales command to view the free space on the partition.)

What command would you enter at the command prompt to list all files and directories in the badams home directory along with a file size and a total amount of space taken up by the directory?

du -c /home/badams

Which of the following commands creates a volume group named backup and initializes it by adding the third disk in a Linux system to the volume group? a. vgcreate /dev/sdc backup b. pvcreate /dev/sdc backup c. vgextend /dev/sdc backup d. lvcreate backup /dev/sdc e. vgcreate backup /dev/sdc

e. vgcreate backup /dev/sdc

A technician recently added a new disk drive to a system, and the drive is not available. Which of the following commands scans the host bus adapter (HBA) and detects the newly added drive? lvscan mdadm pvscan echo "- - -" > /sys/class/scsi_host0/scan

echo "- - -" > /sys/class/scsi_host0/scan (echo "- - -" > /sys/class/scsi_host/host0/scan re-scans the bus to detect the newly added drive.)

Which of the following commands will open the quota file for a specific user? repquota -u edquota -u quotaon -u quota -u

edquota -u

Which command should you enter at the command prompt to change the quota settings for the gshant user?

edquota -u gshant (Use edquota -u gshant to open and edit the quota file for the gshant user account. Use edquota to edit a user's quota, a group's quota, or change the grace period. Be aware of the following options: -u changes the user's quota. -g changes a group's quota. -t changes the grace period.)

Which of the following Linux file systems support journaling? ext2 VFAT ext4 swap

ext4

Which of the following is the MOST common Linux file system? ext4 JFS XFS ReiserFS

ext4

The system requirements for a new Linux computer show that the system will primarily be used to store documents of small size. Which of the following file systems would be the MOST efficient at storing these documents on a Linux system? ext2 HPFS ext3 ext4

ext4 (Ext2 and Ext3 store small files less efficiently than Ext4. HPFS is more efficient for storing files than most files systems, but HPFS is not a Linux file system.)

Which partition management utility can be used to define and change various different GUID partition configurations without committing the configuration to the disk until the w command is used? parted gdisk fdisk lsblk

gdisk

You have installed a new blank hard drive on you Linux system. This is the second drive on the system, so it is represented in the file system by the /dev/sdb file. You need to create GUID partitions on this drive. What command do you use to start the GUID disk management utility to create partitions on the /dev/sdb drive? (specify the path to sdb)

gdisk /dev/sdb

What would you enter at the command prompt to display the primary and secondary group memberships for the gshant user account?

groups gshant

Anna is attempting to unmount the mount point /mnt/data. The umount command failed and displayed error message stating that the device is busy. Anna suspects there my be an open file causing the issue. Which of the following commands will show Anna a list of open files? lsof stat uname awk

lsof (lsof displays open files in the file system. lsof displays the following information by default: The command used to access the file Process ID Name of the user accessing the file A file descriptor File node type Device numbers File size Inode address File path)

You are using LVM on your Linux system to manage the existing volumes. What command do you enter to scan for logical volumes on the system?

lvscan

Which of the following utilities is used to manage and monitor software RAID devices? pvscan lvscan /dev/mapper mdadm

mdadm

You need to create an ext4 file system on the first partition on the second hard disk drive. What command should you enter at the command prompt?

mkfs -t ext4 /dev/sdb1

A number of new file systems have been added to the server and you want them to be active now. You also do not want to bring the server down. Which command makes the changes active? mount -t init q mount -a mount -r

mount -a (mount -a forces a re-read of the entries in the /etc/fstab file and makes the settings active.)

You need to mount the CD-ROM device to the /media/cdrom directory. What command should you enter at the command prompt?

mount /dev/cdrom /media/cdrom

What is the name of the partition management utility that will both create GUID partitions and create file systems on those partitions?

parted

Which of the following commands initializes a physical volume? pvcreate pvscan lvcreate vgcreate

pvcreate

You have added a third hard disk to your Linux system. What command would you use to initialize a physical volume on this disk for later use by the Logical Volume Manager?

pvcreate /dev/sdc

You are using LVM on your Linux system to manage hard disk partitions. What command do you enter to scan for physical volumes on the system?

pvscan

You are an IT consultant for a small company. The company wants to increase the security of their small network. You want to move their passwords from the /etc/passwd file to the /etc/shadow file. Which of the following utilities will BEST accomplish this task? shadow cp pwck sync pwconv

pwconv (Use the pwconv utility to move passwords from the less-secure /etc/passwd file to the more secure /etc/shadow file. You can execute the opposite of this action with the pwunconv utility. Today, however, virtually all Linux distributions ship with shadow files enabled by default.)

What is the name of the package that must be installed if you want to use disk quotas on your Linux system?

quota

After creating the aquota.user and aquota.group files in the /home directory, what command should you enter to enable quotas for the /home directory?

quotaon /home

You created a swap area on sda3, but it is not activated. What command will activate this swap partition?

swapon /dev/sda3 or swapon -a

A user type has the following qualities: Created by default during the Linux installation Used by the system for specific roles Not used to log into the system Which of the following user types has these qualities? Root user System or service user Standard user Guest user

system or service user

You need to convert the file system of /dev/sdb3 from ext2 to ext3 without affecting the data on the drive. What command and option should you enter at the command prompt?

tune2fs -j /dev/sdb3 (Use tune2fs -j /dev/sdb3 to convert the file system from ext2 to ext3 without affecting the data on the drive. Use tune2fs to adjust tunable file system parameters on ext2, ext3, and ext4 file systems.)

The user emcmann has been transferred from the accounts payable department. She was assigned to several secondary groups that gave her rights to sensitive files and systems. You need to remove her from all her current secondary groups right away. Enter the command that will remove emcmann from all secondary groups.

usermod -G "" emcmann ()

You have just created the lsmith user account and need to assign this new user to the secondary groups admin and acct. Enter the command you would use to add lsmith to the admin and acct secondary groups.

usermod -G admin,acct lsmith

You have performed an audit and have found active accounts for employees who no longer work for the company. You want to disable those accounts. Which command example will disable a user account? usermod -l joer usermod -d joer usermod -L joer usermod -u joer

usermod -L joer (lock the user's password, thereby disabling the account.)

You are using LVM on your Linux system to manage the existing volumes. After adding and initializing the fourth hard drive to the system and creating a physical volume, what command should you use to add it to the backup volume group?

vgextend backup /dev/sdd


Kaugnay na mga set ng pag-aaral

Anatomy Midterm Review Questions

View Set

The Dark Romantics in American Literature

View Set

Lecture 5: Molecules Cross Cell Membranes in Many Ways

View Set

Physiology Ch 7, 8, 11, 12 Online Quizzes

View Set

Ch 1. Principles of Linguistic Theory

View Set

Unit 3 and 4 Ap Classroom Progress Check MCQ Questions Ap World

View Set

AP Psychology: sensation and perception

View Set

Chapter 7: Thinking and Intelligence

View Set

Los pronombres Fill in the blanks with the subject pronoun you would use to address the person(s) and the pronoun you would use when talking about the person(s).

View Set