BIG Quiz RH124

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

What single character indicates the current directory?

.

You accidentally mount the new volume over the user Jo's home directory. When you unmount the volume the user should have access to their files without having to restore from the backup.

True

What command will reboot a physical REL7 system.

reboot

The directory named documents has several files in it. Remove the directory and contents with a single command. Do not use any unnecessary path commands.

rm -r documents

Run the command sleep 123 in the background.

sleep 123&

What is the shortest way to change from your current directory to the parent directory?

cd ..

Copy the file /etc/passwd to your current directory, and rename when you copy it to the new name, test. Use the shortest command to achieve the copy.

cp /etc/passwd test

Show the first 5 lines of the file named longfile.

head -5 longfile

What command will show all files including hidden files, permissions and size a directory. Do not use any redundant or unnecessary syntax.

ls -la

What command will create a secure password or passphrase for a secure shell connection to a remote system?

ssh-keygen

Create a user named Fred with a user number of 1500.

useradd

Sarah has been promoted in her new position she needs to be added to the group production.

usermod -aG production Sarah

Modify the existing user Fred to have an expiration date of Dec 31 2018. Use numeric date only.

usermod -c 2018/12/31

What is the absolute path to the directory that contains the system log files?

/var/log

You are logged in as root, how many commands start with the letter "a"?

106

UNIX/Linux epoch in YYYY/MM/DD format

1970/01/01

You have a block device named /dev/sda2 it would most likly be the ____ physical drive on your system?

1st

What command will display the UUID?

blkid

How can you determine when the password for Bill will expire?

chage -l Bill

Using the numeric method set the file permissions of neatstuff to r w - - w - r w x

chmod 627 neatstuff

Change the group member (or group ownership) of the file named department, to the group name accounting

chown :accounting department

Compare the files in your current directory named file-a and file-b. do not use any un needed syntax.

diff file-a file-b

Display in human readable form, the space used in the directory /usr/bin

du -h /usr/bin

Use a single command to append the word hello onto a file named newfile

echo hello >> newfile

A task is running in background, how can you bring it to the foreground?

fg

What command will search the whole file system looking for files named passwd?

find / -name passwd

What is the status of the user student based on the following information: use a single word answer. student :!$6$8oIjLCsc$/n1rU6dfOplstHN72heijdiejrirhMHGRosktforjrtio:16442:0:99999:7:::

locked

Create a new group named production with a group ID of 6000

groupadd -g 6000 production

What will display user Ken uid and group membership.

id Ken

What command will display the systems ip address

ifconfig

You have a PID numbered 2345 that you need to permanently stop the job quickly and so it can not be interrupted. What would be the command line?

kill -9 2345

What is the name for the Red Hat virtualization solution?

kvm

Display all of the contents of the file named junk in the current directory and allow movement up and down the file. Do not use any un-need path information.

less junk

Create a soft (symbolic) link named pw to the file /etc/passwd

ln -s /etc/passwd pw

Create a hard link in the current directory named short to the file /usr/share/dict/linux.words

ln /usr/share/dic/linux.words short

Create a mount point in the /mnt directory, named data.

mkdir /mnt/data

Use a single command to create directories named year-end-2017 to year-end-2028

mkdir year-end-{2017..2028}

Mount the device with UUID of 123 into the existing directory /mnt/mydata. (note when testing you will see the real UUID on your system, for this question I made up the UUID to minimize typing errors)

mount UUID="123" mnt/mydata

Rename the file named file-a to file-b

mv file-a file-b

Lock the account for user Sherry

passwd -l Sherry

You are the system administrator, a user named Bill calls for help, he has forgotten his password. Reset the password.

passwd Bill

Determine if the service sshd will load during boot process

systemctl is-enabled sshd

Show the last 6 lines of the file named longfile.

tail -6 longfile

Create a backup named mytarball.tar of the /etc directory with the highest compression in your current directory.

tar cvJf mytarball.tar /etc

The Red Hat virtual system is which type of hypervisor?

type 1

You are in the user students Desktop directory, using a fully defined path to the /usr/share/dict determine only the word count for the file linux.words

wc -w /usr/share/dict/linux.words

Display information on the software package httpd. Include Name, Archive, Version, Release etc

yum info httpd


Ensembles d'études connexes

Macroeconomics- Chapter 7 ESU Dr. Behr

View Set

Fundamentals: Chapter 26 Nutrition Review

View Set

Chapter 44: Digestive & Gastrointestinal Treatment Modalities

View Set

Economics 202 exam 1 UKY Dellachiesa

View Set

2400 practice questions and clickers

View Set

Matthew Gaines Accounting Terminology

View Set

Christ-Centered Preaching by Bryan Chapell Q&A

View Set