Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

RedHat RH033 - Red Hat Linux Essentials

Page: 3 / 5
Total 153 questions

You work as the Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to keep an eye on the system log file /var/adm/messages. Which of the following commands should you use to read the file in real time?

A.

tail -f /var/adm/messages

B.

tail /var/adm/messages

C.

cat /var/adm/messages

D.

tail -n 3 /var/adm/messages

Which of the following information does the /etc/passwd file contain? Each correct answer represents a complete solution. Choose all that apply.

A.

Numerical group ID

B.

User name

C.

Shadow password

D.

Numerical user ID

E.

Reserved gecos ID

F.

User's home directory

Which of the following commands will you use to change the home directory of a user and move all of its contents to the new home directory?

A.

usermod -d -m

B.

usermod -g

C.

usermod -o -u

D.

usermod -u

Which of the following commands look through the currently running processes, and list the process IDs that match the selection criteria to stdout?

Each correct answer represents a complete solution. Choose all that apply.

A.

top

B.

pkill

C.

sort

D.

pgrep

Which of the following cp command parameters copies only when the source file is newer than the destination file or when the destination file is missing?

A.

-u

B.

-l

C.

-p

D.

-s

John works as the Network Technician for Tech Perfect Inc. The company has a Linux-based network.

John wants to view a PDF document on his Linux system. Which of the following commands should John use to accomplish the task?

A.

ps2pdf

B.

enscript

C.

evince

D.

a2ps

What will be the output of the following command? echo $(date %M) > date.txt

A.

It will print a string "date %M".

B.

The current time (Month) will be written in the date.txt file.

C.

The current time (Minutes) will be written in the date.txt file.

D.

It will create a variable $(date %M).

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. Rick, a Sales Manager, wants to combine the contents of the Sale1.txt and Sale2.txt files to

a new file named FinSale.txt. Which of the following commands will he use to accomplish the task?

A.

ls Sale1.txt Sale2.txt < FinSale.txt

B.

cat Sale1.txt Sale2.txt < FinSale.txt

C.

ls Sale1.txt Sale2.txt > FinSale.txt

D.

cat Sale1.txt Sale2.txt > FinSale.txt

You work as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. Each Friday evening, you want to delete the temporary files on a Linux server. Which of the following actions will you perform to accomplish the task?

A.

Create a recurring CRON job to delete the temporary files on the server.

B.

Ask users to delete their temporary files daily.

C.

Ask your assistant to delete all the temporary files at the scheduled time.

D.

Use the at command to create a job to delete the temporary files on the server each Friday evening.

You want to check whether the cc process is running on a computer. Which of the following commands can you use to accomplish the task? Each correct answer represents a complete solution.

Choose all that apply.

A.

ps -aux | more

B.

tail -f

C.

ps -aux | grep cc

D.

ps -aux