Unix/Lunux/Linux Administration MCQ question and answer Sample Test,Sample questions

Question:
Add this symbol to a command to run it in the background

1. &

2.*

3.2

4. $

Posted Date:-2024-01-30 14:14:10


Question:
As a privileged user, you may set the hostname with the command:

1.hostname

2.name

3.hn

4.host

Posted Date:-2024-01-30 14:16:07


Question:
Consider using the command “cd /a/b/c”, then executing “cd ..”. What does this last command do?

1. changes to your home directory

2.displays the default directory path

3.prompts you for the next directory choice

4. changes to /a/b directory

Posted Date:-2024-01-30 14:21:51


Question:
etc/resolv.conf is …

1.Configuration file with local user accounts and its identificators

2.Network interfaces configuration file

3. The DNS resolver configuration file

4. Configuration file with software sources

Posted Date:-2024-01-30 14:19:38


Question:
Executing “pwd” in shell will return:

1.None of these

2.There is no such command

3.Your password

4.Current directory

Posted Date:-2024-01-30 14:10:11


Question:
Fedora Linux uses _____ packages.

1.deb

2.ebuild

3.deb_src

4.rpm

Posted Date:-2024-01-30 14:14:56


Question:
GRUB stands for _____.

1.Grand Unified Boot Loader

2.Gentoo’s Regular Booter

3.Great Unix Boot Loader

4. GNU Released Unix Booter

Posted Date:-2024-01-30 14:03:45


Question:
How do you show all processes being run by a particular user?

1.cat /home/USERNAME/open.process

2. top –USERNAME

3.cat /etc/activeprocess | grep USERNAME

4. top -U [USERNAME]

Posted Date:-2024-01-30 14:02:18


Question:
How do you view the documentation for the command ‘kill’ in the Linux terminal?

1. kill -help

2.kill –help

3.doc kill

4.man kill

Posted Date:-2024-01-30 14:12:04


Question:
How to reveal detailed information about CPU?

1. sysinfo –cpu

2.cpusage

3.cpusage

4.cat /proc/cpuinfo

Posted Date:-2024-01-30 14:27:32


Question:
If a host is called HHH, ‘rstat HHH’ will:

1. show HHH uptime

2.show HHH load averages

3.all are correct

4.show HHH current time

Posted Date:-2024-01-30 14:25:12


Question:
If DDD is a non empty directory, and you execute ‘rmdir DDD’, it will:

1.move the contents of DDD to /tmp, and delete the DDD directory

2.delete only the contents of the DDD directory

3.produce an error

4.delete both the contents of and the DDD directory

Posted Date:-2024-01-30 14:28:36


Question:
is a boot loader that can boot Linux

1. is a boot loader that can boot Linux

2.is only used by Slackware

3.stands for “Light Loader”

4.is a type of Linux Distro

Posted Date:-2024-01-30 14:20:22


Question:
LVM is…

1.Logical Volume Manager

2. Linux Video Manager

3. Linux Volume Manager

4. Light Video Manager

Posted Date:-2024-01-30 14:20:52


Question:
mknod can create special file (used for sending or receiving data) of type:

1. character file

2. fifo (pipe) file

3.all are correct

4.block file

Posted Date:-2024-01-30 14:08:56


Question:
mount -a’ will load all filesystems listed in:

1.etc/mtab

2.etc/filesystems

3.etc/fstab

4.etc/fs.conf

Posted Date:-2024-01-30 14:04:17


Question:
On Red Hat Linux and its derivatives, which of the following commands will be appropriate to check whether a particular “package” is installed or not?

1.query-pkg

2.rpm -qa

3.pkg

4.sys

Posted Date:-2024-01-30 14:18:26


Question:
SSH stands for _____.

1.Security Shell

2. Synchronous Shell

3.System Shell

4.Secure Shell

Posted Date:-2024-01-30 14:08:36


Question:
The command du -h ~

1.duplicates the current process

2.searches you home directory for duplicate filenames

3.deletes your account and home directory

4.lists the size of all files within your $HOME with sizes in human readable form

Posted Date:-2024-01-30 14:24:29


Question:
The jobs command

1. puts all foreground jobs in the background

2.lists background jobs

3.prints a dedication to Steve Jobs

4. provides basic accounting information for all current jobs

Posted Date:-2024-01-30 14:23:59


Question:
The Linux Kernel was written by?

1.Brian Kernighan

2.Dennis Ritchie

3.Richard Stallman

4.Linus Torvalds

Posted Date:-2024-01-30 14:05:59


Question:
The loaded modules in the kernel are listed in /proc/modules. You can get this list using the command:

1.lsmod

2.lsattr

3.listmodules

4.modules

Posted Date:-2024-01-30 14:09:33


Question:
The netstat command give information on:

1. all are correct

2.active sockets

3.open sockets

4.routing tables

Posted Date:-2024-01-30 14:11:35


Question:
the ‘-r’ switch to the mount command will:

1.mount remote (network) filesystems

2.mount filesystem only after a read-write check is performed

3.mount removable (e.g., CD-ROM) filesystem

4. mount a filesystem as read-only

Posted Date:-2024-01-30 14:22:47


Question:
The ”rm” command is used to:

1.remove a kernel module owned by you

2.run an M4 macro

3.mount a remote file system

4.delete a file

Posted Date:-2024-01-30 14:07:18


Question:
To access the value of an environment variable, we _____.

1.add the dollar ($) symbol before the variable name

2. type the variable’s name (in lower case only)

3.add the hash (#) symbol after the variable name

4.add the dollar ($) symbol after the variable name

Posted Date:-2024-01-30 14:27:01


Question:
To query DNS (Internet domain name) servers, you use the command:

1.dns

2.lsrouted

3.dnsquery

4.nslookup

Posted Date:-2024-01-30 14:13:41


Question:
To read one or more files and type them on standard output, you use:

1.ls

2.cat

3.type

4.biff

Posted Date:-2024-01-30 14:22:20


Question:
To start another shell under the current shell you use the command:

1.bash

2.All of these

3.sh

4.csh

Posted Date:-2024-01-30 14:13:20


Question:
To transfer files in an insecure way to and from a remote network site host, you use the command:

1.ftp

2.tcp

3.ucp

4.sftp

Posted Date:-2024-01-30 14:18:48


Question:
To use chown recursively, instead of using _recursive you can use:

1.NAME

2.r

3.c

4.R

Posted Date:-2024-01-30 14:26:06


Question:
Ubuntu is based on…

1.Fedora

2.Slackware

3.Debian

4.None of these

Posted Date:-2024-01-30 14:05:19


Question:
uname -a will output…

1.kernel info

2.architecture

3.date where the kernel was built

4.All of the answers are correct.

Posted Date:-2024-01-30 14:21:23


Question:
What command can be used to delete a directory, recursively searching for files and other directories and deleting them?

1.rd

2.rmdir

3. rm -d

4. rm -r

Posted Date:-2024-01-30 14:16:35


Question:
What does GRUB stand for?

1. Grand Unified Bootloader

2.Grand Unification Bootloader

3.Great Unique Bootloader

4.Gum Removal Under Boot

Posted Date:-2024-01-30 14:03:16


Question:
What does it means when the ps commands shows a ‘Z’ in the status column for a process?

1.The process is in sleep mode.

2. The process is running at top priority.

3.The process is a zombie process.

4.The process is running at low priority.

Posted Date:-2024-01-30 14:11:05


Question:
What does the pwd command do?

1.It saves the current working directory, so that you can return there with the popd command.

2. It asks the password of the current user, and the prompts for a new password.

3.It prints the path of the current working directory

4. It launches the power management daemon.

Posted Date:-2024-01-30 14:08:11


Question:
What is swap?

1.Swap space is the area on a hard disk which is part of the Virtual Memory of your machine (Swap+RAM)

2.Swap is the cache of your HDD

3. Swap is the cache of your Physical Memory (RAM)

4.Swap is the ability to switch between users in one terminal session

Posted Date:-2024-01-30 14:12:38


Question:
What is the linux mascot?

1.Hat

2.Gecko

3.Elephant

4.Penguin

Posted Date:-2024-01-30 14:01:49


Question:
What is the right command to save file and exit in Vim?

1. :wq

2. :a

3. :q

4. :q!

Posted Date:-2024-01-30 14:14:35


Question:
What is the ssh command?

1.It is the standard shell: it has a restricted set of commands, but those are portable across different Linux distributions.

2.It is the synchronous shell: all commands are performed in real-time.

3.It is the secure shell; it is used to restrict actions available to users.

4.It is the secure shell; it is used to connect to remote hosts via an authenticated and encrypted channel.

Posted Date:-2024-01-30 14:07:44


Question:
What will show you all the subdirectories of the current directory?

1.rm

2.ls

3.cd

4.cp

Posted Date:-2024-01-30 14:06:25


Question:
Which answer assists you in finding help on the whois command?

1. help whois

2.man whois

3.none of these

4.man help whois

Posted Date:-2024-01-30 14:13:01


Question:
Which firewall is most commonly used on Linux?

1.ipchains

2.ipfw

3.pf

4.iptables

Posted Date:-2024-01-30 14:19:15


Question:
Which of the following is not an editor?

1.expr

2.vi

3.emacs

4.ex

Posted Date:-2024-01-30 14:25:33


Question:
Which return value from an ioctl request indicates success?

1.ENOTTY

2. 0

3.EINVAL

4.EBADF

Posted Date:-2024-01-30 14:23:21


Question:
With which userspace is Linux typically paired?

1.Hurd

2.System V

3.GNU

4.BSD

Posted Date:-2024-01-30 14:15:31


Question:
___ is a Linux “desktop environment”.

1.XFCe

2.Gnome

3.KDE

4. All of these

Posted Date:-2024-01-30 14:10:33


Question:
____ command starts the default desktop environment.

1.gdm

2.xterm

3.startx

4.gdm-start

Posted Date:-2024-01-30 14:27:56


Question:
‘mkfs’ is used to:

1.create a filesystem on a device (such as a hard disk partition)

2.format a floppy disk

3.create a fast changing section on a hard disk

4. create a named pipe (fifo) on a device

Posted Date:-2024-01-30 14:06:57


More MCQS

  1. Unix MCQS Set 1
  2. Unix MCQS Set 2
  3. Unix MCQS Set 3
  4. Unix MCQS Set 4
  5. Linux Mcqs Questions Set 1
  6. Linux Mcqs Questions Set 2
  7. Linux Mcqs Questions Set 3
  8. Linux Mcqs Questions Set 4
  9. Linux Mcqs Questions Set 5
  10. Linux Mcqs Questions Set 6
  11. Linux Mcqs Questions Set 7
  12. Linux Mcqs Questions Set 8
  13. Linux Mcqs Questions Set 9
  14. Linux Mcqs Questions Set 10
  15. Linux Mcqs Questions Set 11
  16. Linux Mcqs Questions Set 12
  17. Linux Mcqs Questions Set 13
  18. Linux Mcqs Questions Set 14
  19. Unix MCQ Set 01
  20. Unix MCQ Set 02
  21. UNIX SYSTEM Mcq
  22. Unix MCQ
  23. Linux MCQ Unit 1
  24. Linux MCQ Unit 2
  25. LINUX MCQ QUESTIONS AND ANSWER
  26. Linux File Permissions MCQ Questions Answers
  27. Linux Administration MCQ question and answer
  28. Linux MCQ QUESTIONS AND ANSWER
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!