Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 4

Which of the following commands is used to view the PDF files in Linux?


Options are :

  • pdf2ps
  • ps2pdf
  • evince (Correct)
  • a2ps

Answer : evince

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

You work as a network administrator for company Inc. The company has a Linux-based network. You want to create a file named foobar.zip and put it into a directory named filesdir. Which of the following commands will you use to accomplish the task?


Options are :

  • gunzip foobar.zip
  • tar -tvf foobar.tar
  • unzip foobar.zip filesdir
  • zip -r foobar.zip filesdir (Correct)

Answer : zip -r foobar.zip filesdir

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?


Options are :

  • tail -f /var/adm/messages (Correct)
  • tail /var/adm/messages
  • cat /var/adm/messages
  • tail -n 3 /var/adm/messages

Answer : tail -f /var/adm/messages

Which of the following text editing tools can be used to edit text files without having to open them?


Options are :

  • less
  • sed (Correct)
  • more
  • vi

Answer : sed

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as the root user on the Linux operating system. He wants to delete all files whose names end with a number. Which of the following commands will John use to accomplish the task?


Options are :

  • rm [^0-9]
  • rm [0-9]*
  • rm *[0-9] (Correct)
  • rm ^[0-9]

Answer : rm *[0-9]

Which of the following is NOT the feature of SELinux in the Red Hat enterprise Linux?


Options are :

  • SELinux implements Mandatory Access Control (MAC) security in Red Hat Enterprise Linux.
  • SELinux does not provide Kernel-level security. (Correct)
  • SELinux applies to all users, including root.
  • All process and files have a context.

Answer : SELinux does not provide Kernel-level security.

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. You want to run two programs, foo and bar. You also want to ensure that bar is executed if and only if foo has executed successfully. Which of the following command sequences will John use to accomplish the task?


Options are :

  • foo | bar;
  • foo || bar;
  • foo && bar; (Correct)
  • foo; bar;

Answer : foo && bar;

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 4

Which of the following commands is used to view failed login attempts on a user account?


Options are :

  • lastb (Correct)
  • lastw
  • lastf
  • lastlog

Answer : lastb

You want to append a tar file if the on-disk version of the tar file has a modification date more recent than its copy in the tar archive. Which of the following commands will you use to accomplish the task?


Options are :

  • tar -u (Correct)
  • tar -x
  • tar -c
  • tar -t

Answer : tar -u

You work as a Network Administrator for Perfect World Inc. The company has a Linux- based network. You have configured a Linux server to connect to the Internet. Before connecting it to the Internet, you want to check all the files on which SUID has been set. Which of the following commands will you choose to list all such programs?


Options are :

  • ls -suid
  • find /-perm -2000
  • find /-perm -4000 (Correct)
  • ls -l

Answer : find /-perm -4000

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

Fill in the blank with the appropriate tool. __________ is a public domain collection of tools to allow Unix systems to manipulate MS-DOS files: read, write, and move around files on an MS-DOS file system.


Options are :

  • mtools (Correct)
  • None

Answer : mtools

You work as a Network Administrator for Net Perfect Inc. The company has a Linux-based network. By using the VI utility, you have created a document that has 100 lines. You want to replace all the occurrences of "net" with "Net" in the first 50 lines of the document. Which of the following commands will you use?


Options are :

  • :1,50 s/net/Net/g (Correct)
  • :1,100 s/net/Net/g
  • :s/net/Net/g
  • :1,$ s/net/Net/g

Answer : :1,50 s/net/Net/g

You work as a 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 know which directory you are currently working on. Which of the following tools would you use to accomplish the task?


Options are :

  • mv
  • pwd (Correct)
  • cd
  • ls

Answer : pwd

Red Hat RH-133 Linux System Administration Practice Exam Set 5

Which of the following statements are true about file permissions? Each correct answer represents a complete solution. Choose three.


Options are :

  • The write permission means that the file can be edited and saved.
  • The read permission means that only the file name can be read not the contents of the file.
  • A,B,D (Correct)
  • The execute permission means that the file can be run if it is a program or script.
  • The read permission means that the contents of the file can be seen with a command such as cat or less.

Answer : A,B,D

Which of the following key-combinations are used to view a file in two windows in a single vim screen? Each correct answer represents a complete solution. Choose two.


Options are :

  • Ctrl-w, v
  • :q!
  • :wq
  • Ctrl-w, s
  • A,B (Correct)

Answer : A,B

You work as a Network Administrator for Tech Perfect Inc. The company has a Linux- based network. There are six files in a directory on your laptop. You want to find out the file types of all the files at a time. Which of the following commands will you use?


Options are :

  • mount
  • file (Correct)
  • fsck
  • init

Answer : file

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 5

You work as a Network Administrator for company.com Inc. You have created a PostScript file by using a program. You want to convert it to a PDF file. Which of the following commands will you use to accomplish the task?


Options are :

  • pdf2ps
  • enscript
  • ps2pdf (Correct)
  • a2ps

Answer : ps2pdf

Which of the following commands is used to set down the interface and flush all its addresses?


Options are :

  • ifdown (Correct)
  • down
  • ifup
  • ifconfig

Answer : ifdown

You want to temporarily change your primary group to another group of which you are a member. In this process, a new shell will be created, and when you exit the shell, your previous group will be reinstated. Which of the following commands will you use to accomplish this task?


Options are :

  • chmod
  • newgrp (Correct)
  • chgrp
  • chown

Answer : newgrp

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

Which of the following commands does not save changes before exiting from the VI editor?


Options are :

  • zz
  • :q! (Correct)
  • :w
  • :q

Answer : :q!

You work as the Network Administrator for McNeil Inc. The company has a Linux- based network. You are working as a root user on the Red Hat operating system. Joe is a user in your company. You want to remove Joe's tmp files that are 3 days older. Which of the following command syntaxes should you use to accomplish the task?


Options are :

  • find /tmp -ctime +3 user Joe -ok rm {} \;
  • find /tmp -cmin +3 -user Joe -ok rm {} \;
  • find /tmp -ctime +3 -user Joe -ok rm {} \; (Correct)
  • find /tmp -cmin +3 user Joe -ok rm {} \;

Answer : find /tmp -ctime +3 -user Joe -ok rm {} \;

Fill in the blank with the correct answer to complete the statement below. The_________ permission is the minimum required permission that is necessary for a user to enter a directory and list its contents.


Options are :

  • Read (Correct)
  • None

Answer : Read

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 4

When you remove a user account from your Linux system, the files and directories of this user may still remain on the system. Which of the following commands can you use to remove all items from your Linux system? Each correct answer represents a complete solution. Choose two.


Options are :

  • userdel -f
  • userdel -h
  • userdel -r
  • A,B (Correct)
  • userdel -c

Answer : A,B

John works as a Network Administrator for Perfect Solutions Inc. The company has a Linux-based network. John is working as a root user on the Linux operating system. He wants to change the group membership of the file foo to group bar. Which of the following commands will he use to accomplish the task?


Options are :

  • chgroup bar foo
  • chgroup foo bar
  • chgrp foo bar
  • chgrp bar foo (Correct)

Answer : chgrp bar foo

You are a newly appointed network technician at Net Perfect Inc. The company has a Linux-based network. You want to install a package named firefox on your Linux system. Which of the following commands will you use to accomplish the task?


Options are :

  • yum update firefox
  • yum install firefox (Correct)
  • yum -ivh firefox
  • yum i firefox

Answer : yum install firefox

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

You want to run a program in future. However, you do not want to run it more than once. Which of the following commands will you use to accomplish the task?


Options are :

  • rsync
  • at (Correct)
  • crontab
  • sync

Answer : at

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network. You are working a root user on the Red Hat operating system. You want to search for files named snow.html, Snow.html, SNOW.html in the current directory. Which of the following commands should you use to accomplish the task?


Options are :

  • find name snow.html
  • find -iname snow.html (Correct)
  • find -name snow.html
  • find -i snow.html

Answer : find -iname snow.html

Which of the following utilities will resume suspended jobs from the current environment if job control is enabled?


Options are :

  • fg
  • jobs
  • bg (Correct)
  • top

Answer : bg

Red Hat RH033 Linux Essentials Engineer (RHCE) Practice Exam Set 1

Which of the following commands copies files between hosts on a network and uses the same authentication as ssh, and will ask for passwords or passphrases if they are needed for authentication?


Options are :

  • cp
  • rcp
  • scp (Correct)
  • mv

Answer : scp

You are a newly appointed Technician for company.com Inc. You are working on the Red Hat operating system. As you are about to leave for some important work, you want to shut down your system immediately. Which of the following commands can you use to accomplish this? Each correct answer represents a complete solution. Choose all that apply.


Options are :

  • shutdown -h now
  • A,C,D (Correct)
  • halt -h
  • /sbin/stop
  • poweroff -h

Answer : A,C,D

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions