Tuesday, December 15, 2015

Red Hat Linux test answers of 2016.

In this post you can find Complete and recently updated Correct Question and answers of Red Hat Linux. All Answers updated regularly with new questions. Upwork Red Hat Linux test answers of 2016.



Question:* If you are logged in to a regular user account, and it is necessary for you to log in as root and become a superuser, you use:

Answer: • su

Question:* What is pNFS means?

Answer: • Parallel Network File System

Question:* To verify what state (run level) you are currently running in, you use:

Answer: • runlevel

Question:* 'xhost +' is a security problem because:

Answer: • any user with access to the system could connect to your X display

Question:* A normal user sends a print job to the default printer but later finds the print queue is big and decides to cancel the job. What would the user do to perform this task?

Answer: • The user has to list the job using Ipq and remove it using the command Iprm with the job number as the argument.

Question:* Using cat command, which option is used to print the line number?

Answer: • cat -n filename

Question:* How would you create a disk dump in RedHat Linux?

Answer: • dd if=/dev/sda of=/dev/sdb

Question:* How to show currently loaded kernel modules?

Answer: • lsmod

Question:* Route:

Answer: • modifies entries in the routing tables of routed

Question:* The runlevel that halts the system is:

Answer: • 0

Question:* If you use multiple crontab files, the directory containing them is:

Answer: • /etc/cron.d

Question:* If you are in runlevel 5, and you want to change to runlevel 3, you issue the command:

Answer: • init 3

Question:* The default RHEL window manager is...?

Answer: • Gnome

Question:* What is the most correct way to edit the current users crontab?

Answer: • crontab -e

Question:* To count words or lines in a file, you use the command:

Answer: • wc

Question:* The default highest runlevel is:

Answer: • 6

Question:* Which (free) linux distro is derived from RHEL

Answer: • CentOS

Question:* To select the level of firewall protection, you make changes in:

Answer: • /etc/sysconfig/iptables

Question:* What is the default FTP port number?

Answer: • 21

Question:* User-encrypted passwords are stored in the file:

Answer: • /etc/shadow

Question:* Route accepts the following switches (options):

Answer: • all are correct

Question:* To change the password for the root account, you use:

Answer: • the passwd command

Question:* How would you display all logical volumes?

Answer: • lvdisplay

Question:* If you need to disable the ssh service at next boot, you use:

Answer: • chkconfig sshd off

Question:* To edit your crontab file, you use:

Answer: • crontab -e

Question:* To list the most CPU-intensive processes on your system, you can use command:

Answer: • top

Question:* The main configuration file that GRUB reads when it is loaded, is:

Answer: • /boot/grub/grub.conf

Question:* The pwd command will:

Answer: • display the full path of the current working directory

Question:* What is the standard directory for temporary mount points or mounts for removable media(e.g. CD-ROM)

Answer: • /mnt

Question:* During boot init program checks default runlevel from the __________ file.

Answer: • /etc/inittab

Question:* To copy the system log to the current directory, you do:

Answer: • cp /var/log/messages .

Question:* To open a remote ssh shell with the account test_account on the host test_host, you use the command:

Answer: • ssh test_account@test_host

Question:* System logs for tasks performed on your system are maintained in the directory:

Answer: • /var/log

Question:* Which is not a valid priority in syslogd.conf?

Answer: • news

Question:* What command generates a DSA ssh key?

Answer: • ssh-keygen -t dsa

Question:* Which statements are true about a source RPM?

Answer: • Source RPMs can be compiled and installed directly.

Question:* "shutdown -r now" will:

Answer: • Requests that the system be rebooted after it has been brought down in a safe way

Question:* To configure networking via a console GUI you can use:

Answer: • system-config-network

Question:* To find the version of redhat in use you can:

Answer: • cat /etc/redhat-release

Question:* How would you check the RedHat OS version?

Answer: • cat /etc/redhat-release

Question:* What is the default port for squid:

Answer: • 3128

Question:* what does the following command do? "watch -n 1 du -hs /tmp/file"

Answer: • It runs the command du -hs /tmp/file every second and updates the output

Question:* Runlevel 6 is the:

Answer: • reboot state - it shuts down the system and reboots

Question:* The following filesystem uses journaling:

Answer: • ext3

Question:* what will the following command do? "rpm -ql nagios"

Answer: • list files in package nagios.

Question:* What does the "tcpdump" command do?

Answer: • Captures traffic on a network

Question:* What is the tee command?

Answer: • split standard output to a file

Question:* Where do the manual (man) pages for all commands reside in the File System Hierarchy (FSH)?

Answer: • /usr/share/man

Question:* /proc:

Answer: • All are correct

Question:* When creating a new user account, unless otherwise specified, the files from the __________ are automatically copied to the home directory.

Answer: • /etc/skel

Question:* Using scp to copy a file "test_file" from your machine to the remote machine "test_machine" to the /tmp directory, using the account "test_user" on the remote machine, you do:

Answer: • scp test_file test_user@test_machine:/tmp

Question:* You use samba to:

Answer: • both are correct

Question:* How would you find out the dependencies of RPM package?

Answer: • #rpm -qR

Question:* When you first add a user to the system, you must provide the user with a bare-bones version of their login, shell, and logout initialization files. The default initialization files are kept in:

Answer: • /etc/skel

Question:* From Which Version of RHEL was the pNFS introduced ?

Answer: • RHEL 6.4

Question:* How would you find out the date and time of rpm installation?

Answer: • # rpm -qi

Question:* If you set your /etc/inittab file to have the default init entry to be 'init:3:default:', then your system default runlevel is:

Answer: • full multiuser mode with login to command-line interface; allows remote file sharing with other systems on your network. Also referred to as the text mode state

Question:* The following entry appears in the /etc/crontab as follows: 30 4 * * 1 /bin/sh /home/Tom/rmcore 2>&1 /dev/null

Answer: • "rmcore" will execute every Monday at 4:30 a.m.

Question:* Larry, working as root, needs to change the ownership of the file "myfile" from "james" to "mary." He should:

Answer: • chown mary myfile

Question:* which command is used to see aging of password?

Answer: • chage

Question:* How to find out memory usage:

Answer: • All are correct

Question:* After extending LVM logical volume that has file system what should be done to extend file system?

Answer: • resize2fs /dev/lvm_volume

Question:* To power down the system, you use:

Answer: • all are correct

Question:* Which Standard does pNFS Stands for..

Answer: • NFS 4.1

Question:* For partitioning disks, you use:

Answer: • both are correct

Question:* Files located at "/etc/rc.d/rc<x>.d/" directories(where <x> is the number of the runlevel) are:

Answer: • symbolic links

Question:* To check the list of shells installed on the system, you look in:

Answer: • /etc/shells

Question:* The __________ program can add password for a group. It is used to administer /etc/group, and /etc/gshadow.

Answer: • gpasswd

Question:* To disable SSH root login you should:

Answer: • Set "PermitRootLogin no" in /etc/ssh/sshd_config

Question:* To display IP routing table you can use:

Answer: • All variants are correct

Question:* You configure an OpenSSH server in the file:

Answer: • /etc/ssh/sshd_config

Question:* What is the permission of /etc/shadow?

Answer: • 400

Question:* The user smith issued the egrep "^[[: upper:]]" words.txt command. What does this command do?

Answer: • displays all lines in the words.txt file that begins with an uppercase letter

Question:* What is the purpose of the file /etc/updatedb.conf?

Answer: • configuration file for mlocate package

Question:* Identify the true statement about configure script.

Answer: • It creates the necessary Makefiles based on the user information.

Question:* If umask is 0022, what is the by default permission of a file?

Answer: • 644

Question:* For all filesystems listed in /etc/mtab, to display the total space allowed for a user or group, you use the command:

Answer: • quota

Question:* How to list users that are logged on?

Answer: • All answers

Question:* The command to check your current runlevel is:

Answer: • both are correct

Question:* If you want to set a samba share as read/write, you set it with the following in /etc/samba/smb.conf:

Answer: • writeable = yes

Question:* What is the default I/O scheduler elevator?

Answer: • cfq

Question:* Which command is used to kill a process gracefully?

Answer: • kill -15 <PID>

Question:* Which of the following are valid iptable chains?

Answer: • Forward, Input, Output

Question:* Which of the following options is true of the entry below? /dev/cdrom /cd iso9660 ro,user,noauto 0 0

Answer: • This is an "fstab" entry which lets any user mount the CD-ROM.

Question:* Scripts within a cron directory are run:

Answer: • in alphabetical order

Question:* In a file delimited by commas, what command will print the 3rd column of data:

Answer: • awk -F, '{print $3}'

Question:* You use the SUSPEND character to suspend an already running process. Which signal does it send to the process?

Answer: • SIGSTOP

Question:* What command will free the page cache?

Answer: • echo 1 > /proc/sys/vm/drop_caches

Question:* When mounting a volume listed in "fstab",

Answer: • it suffices to give only the mount point

Question:* Which statement is true about the files and directories created inside the /project directory that have 2777 permissions?

Answer: • All files and directories will have the same group as that of the /project directory.

Question:* How to find out what packages are currently installed?

Answer: • yum list installed

Question:* If your /etc/inittab file becomes corrupted, to start up your system, bypassing the inittab file, so you could edit the file to fix it; you can reboot and enter the following command at the boot prompt:

Answer: • linux single

Question:* What file is used for 'HOSTNAME' configuration?

Answer: • /etc/sysconfig/network

Question:* What is the default maximum number of open files a user can have by default?

Answer: • 1024

Question:* System-wide values used by user and group creation utilities such as useradd and usergroup are kept in the file:

Answer: • /etc/login.defs

Question:* The /projects directory is being shared by server1 with the share name datashare through samba. To access the shared directory as bob you issue the following command: smbclient //server1/datashare -U 'bob%foouser' What happens when you execute the command?

Answer: • The share will be accessed with the credentials of bob without being prompted for a password.

Question:* The line '0 2 * * 1-5 tar cf /home/backp /home/projects' in a crontab will:

Answer: • back up the projects directory at 2:00 A.M. every weekday

Question:* If you use 'shutdown now', it will:

Answer: • transfer your system into maintenance mode

Question:* To change the system runlevels, you use:

Answer: • telinit

Question:* How to kill user session?

Answer: • pkill -9 -u username

Question:* What file will show you with what options kernel was started?

Answer: • /proc/cmdline

Question:* To have 'grep' match only whole lines, you use:

Answer: • grep -x



No comments:

HTML5 Upwork (oDesk) TEST ANSWERS 2022

HTML5 Upwork (oDesk) TEST ANSWERS 2022 Question: Which of the following is the best method to detect HTML5 Canvas support in web br...

Disqus for upwork test answers