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

Which of the following commands is used to create a partition on a new hard disk of a Linux computer?


Options are :

  • mount
  • fsck
  • crpar
  • fdisk (Correct)

Answer : fdisk

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

You are working with the vi editor and writing a textfile. Which of the following commands will you use if you want to move the cursor 3 characters to the right?


Options are :

  • 3w
  • 3b
  • 3l (Correct)
  • 3h

Answer : 3l

You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to know how many words are present in the file named file1.txt. You type the following command on the terminal: wc file1.txt. The command displays the following output: 40 245 1800 file1.txt How many words are present in the file file1.txt?


Options are :

  • 1800
  • 245 (Correct)
  • 40
  • 285

Answer : 245

John is a newly appointed Network technician at McNeil Inc. The company has a Linux- based Network. John is currently working on the /tmp directory. The /tmp directory has a file named file3.txt. John wants to copy this file in a subdirectory named backup of his home directory /home/John. Which of the following commands should John use to accomplish his task? Each correct answer represents a complete solution. Choose three.


Options are :

  • cp file3.txt backup
  • cp file3.txt /home/John/backup
  • A,B,D (Correct)
  • cp file3.txt ~/backup
  • cp file3.txt /home/John/backup/

Answer : A,B,D

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

You work as a Network Administrator for Tech World Inc. The company has a Linux-based network. The permissions on a file named Report are shown below: rwxr--r-- You want to add a sticky bit to the file. Which of the following commands will you use?


Options are :

  • chmod 7744 report
  • chmod 1744 report (Correct)
  • chmod 4744 report
  • chmod 2744 report

Answer : chmod 1744 report

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to see first five lines of the file /etc/passwd. Which of the following commands should you use to accomplish the task?


Options are :

  • head /etc/passwd
  • head -n 5 /etc/passwd (Correct)
  • head 5 -n /etc/passwd
  • tail -n 5 /etc/passwd

Answer : head -n 5 /etc/passwd

Which of the following commands list the configured printers in a Linux network? Each correct answer represents a complete solution. Choose all that apply.


Options are :

  • lpstat -r
  • lpstat -l
  • lpstat -o
  • A,B (Correct)
  • lpstat -a

Answer : A,B

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

You work as a Network Administrator for McNeil Inc. The company has a Linux-based network. You are a root user on the Red Hat operating system. You want to see all directories and files, including hidden files of your home directory in long listing format. Which of the following command-line utilities would you use to accomplish this task?


Options are :

  • ls -al /root (Correct)
  • ls -h /root
  • ls -s /root
  • ls

Answer : ls -al /root

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 grant ownership of the file foofile to a user John. Which of the following commands should you use to accomplish this task?


Options are :

  • chown John foofile (Correct)
  • chmod John foofile
  • chgrp foofile John
  • chown foofile John

Answer : chown John foofile

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?


Options are :

  • -p
  • -u (Correct)
  • -l
  • -s

Answer : -u

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

Which of the following commands can be used to delete all jobs queued in a printer? Each correct answer represents a complete solution. Choose all that apply.


Options are :

  • lprm -
  • lprm - *
  • lprm -all
  • lprm -a all (Correct)

Answer : lprm -a all

Which of the following statements are true about open source software? Each correct answer represents a complete solution. Choose two.


Options are :

  • It is software whose license does not allow for the distribution of the software source's source code.
  • Open source software and its source code must be freely distributable.
  • C,D (Correct)
  • In OSS all users must be able to modify the source code and create derived works.
  • In OSS access to source code by third parties commonly requires the party to sign a nondiscloser agreement.

Answer : C,D

You work as the Network Administrator for Tech Perfect Inc. The company has a Linux- based Network. You are working as a root user on the Red Hat operating system. You want to find out the disk space usage of a remote host named York. For this, you have to remotely login to York and run the command to determine how much disk space has been used on per filesystem basis. Which of the following command syntaxes should you use to securely access the data from the remote host?


Options are :

  • ssh 'df -h' York
  • ssh 'df -h'
  • York ssh 'df -h'
  • ssh York 'df -h' (Correct)

Answer : ssh York 'df -h'

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

Fill in the blank with the command to complete the statement below. Do not enter the full path of the command. The ___________ command is used to remove the print jobs that have been queued for printing by using a secure connection.


Options are :

  • None
  • lprm -E (Correct)

Answer : lprm -E

You work as a Technician for Net World Inc. The company has a Linux-based network. You have configured a file server on the company's etwork. You want to summarize disk usage of each file in a particular directory on the file server. Which of the following commands will you use?


Options are :

  • df
  • du (Correct)
  • dfsck
  • fsck

Answer : du

Fill in the blank with appropriate word. The------------ command copies files between hosts on a network. It uses ssh for data transfer, and uses the same authentication and provides the same security as ssh. It will ask for passwords or passphrases if they are needed for authentication.


Options are :

  • None
  • SCP (Correct)

Answer : SCP

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

Which of the following environmental variables represents the PID value of the last child process?


Options are :

  • $! (Correct)
  • $!!
  • $?
  • $$

Answer : $!

Which of the following commands displays the inode number of a file in the Linux operating system?


Options are :

  • ls -i (Correct)
  • ls -l
  • ls
  • cat

Answer : ls -i

Which of the following commands is used to access Windows resources from Linux workstation?


Options are :

  • rsync
  • scp
  • smbclient (Correct)
  • mutt

Answer : smbclient

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

You work as the Network Administrator for McNeil Inc. The company has a Linux-based network. You are working as a root user on Red Hat operating system. You are currently running a program named My_program. You are getting some error messages while executing the program. You want to redirect these error messages to a file named file2 rather than being displayed on the screen. Which of the following tools should you use to accomplish the task?


Options are :

  • My_program 2>> file2
  • My_program > file2
  • My_program >> file2
  • My_program 2> file2 (Correct)

Answer : My_program 2> file2

You work as a Network Administrator for McRoberts Inc. The company has a Linux-based network. You have created a script named lf.cgi. You want to provide the following permissions on it: rwsr-sr-- Which of the following commands will you execute?


Options are :

  • chmod 6754 (Correct)
  • chmod 7754
  • chmod 4754
  • chmod 2754

Answer : chmod 6754

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?


Options are :

  • usermod -u
  • usermod -o -u
  • usermod -d -m (Correct)
  • usermod -g

Answer : usermod -d -m

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

You work as the Network technician for McNeil Inc. The company has a Linux-based Network. You are working on the Red Hat operating system. You want to remove some write protected files and directories. Which of the following commands should you use to accomplish this task?


Options are :

  • rmdir
  • rm
  • rm -rf (Correct)
  • rm -f

Answer : rm -rf

Which of the following key-combinations is used to redo a change undone by a u command in vim?


Options are :

  • Ctrl-w, Arrow
  • Ctrl-r (Correct)
  • Ctrl-w, v
  • Ctrl-w, s

Answer : Ctrl-r

You want to repeat the last command you entered in the bash shell. Which of the following commands will you use?


Options are :

  • history !! (Correct)
  • history ##
  • history !#
  • history !1

Answer : history !!

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

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.


Options are :

  • tail -f
  • A,C,D (Correct)
  • ps -aux | grep cc
  • ps -aux | more
  • ps -aux

Answer : A,C,D

Which of the following operators is used to connect the output of one command to the input of another command?


Options are :

  • | (Correct)
  • &>
  • >
  • 2>

Answer : |

Which of the following is a multi-platform instant messaging client, based on a library named libpurple?


Options are :

  • Pidgin
  • Thunderbird (Correct)
  • mutt
  • Evolution

Answer : Thunderbird

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

You run the ps -aux command on the terminal. You get the following output: You notice that the process id 24224 is showing the status message S on the stat column. What does this indicate?


Options are :

  • The process id 24224 is in stopped status.
  • The process id 24224 is in sleeping status. (Correct)
  • The process id 24224 is hanged.
  • The process id 24224 is in running status.

Answer : The process id 24224 is in sleeping status.

Which shell script is the first startup script run when a login shell is started in Linux?


Options are :

  • /etc/profile (Correct)
  • ~/.bashrc
  • /etc/bashrc
  • /etc/profile.d

Answer : /etc/profile

Comment / Suggestion Section
Point our Mistakes and Post Your Suggestions