wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

RH124 MCQ & Practical session - set 02

Total questions: 36

Worksheet time: 45mins

Name
Class
Date
1-5.

All these questions are to be answered in Practical mode. Before updating the answer, please show it to instructor.

1.
  • -Create user student01, student02 and add to group root

-Make ID student01 to have /sbin/nologin shell.

-Make id student02 to have /bin/false shell.

4 lines
2.

-- The user student01 should be able to become root user without a password, set the shell to /bin/bash and also execute commands without a password.

-- Create a folder /tmp/student01, create five files ( Assessment[1,2,3,4,5]) and allow student02 to make any changes inside the folder but student02 cant delete any of the file

-- Student02 should add Content in assessment3 file " I modified this file on <timestamp> and my name <EmpID>

Capture the history here

4 lines
3.

Add additional IP address to existing network connection with IPv4 address named eth0, using the following data: Ipv4 192.0.1.3/24 gateway 192.0.1.1

use ip command to capture the network status for

-- ip address

-- route details

4 lines
4.

Find all installed packages names in the system, and put the names into a file named packages.txt.

4 lines
5.

-Create and add folder name /opt/mysystem/bin/ to the system PATH for all users

-create a file "hello.sh" in the above folder

-add - echo "This is working at time $(date +%Y%m%d)" - inside the file

-make hello.sh executable

-go to /home/student02

-execute command hello.sh

capture the output

4 lines
6.
Which of the following command is used to count the total number of lines, words, and characters contained in a file?
a)
wc
b)
wcount
c)
countw
d)
none of the above
7.
Identify the command which is used to remove files.
a)
delete
b)
rm
c)
dm
d)
erase
8.
Among the following command which is used with vi editors to delete a single character?
a)
a
b)
x
c)
y
d)
z
9.
Choose the TCP/IP Protocol which is used for remote terminal connection service?
a)
FTP
b)
UDP
c)
RARP
d)
Telnet
10.
Identify the service which is used to translate a domain name to IP address.
a)
NIS
b)
SMB
c)
DNS
d)
NFS
11.
Which of the following command is used to add a new user to the system?
a)
adduser
b)
linuxconf
c)
useradd
d)
All of the above
12.
FSF stands for __________
a)
File server first
b)
Free software file
c)
Free Software Foundation
d)
First server first
13.
Identify the command which is used to remove dirs.
a)
rmdir
b)
rd
c)
remove
d)
rdir
14.
Which of the following is used to back up over typing errors in vi?
a)
$
b)
#
c)
@
d)
!
15.
GNU stands for ___________.
a)
Greek Needed Unix
b)
General Unix
c)
Gnu's Not unix
d)
Generl Nobel Unix
16.
What is the core of the Linux operating system?
a)
Kernel
b)
Terminal
c)
Command
d)
Application
17.
In which of the following directory does the configuration files are present?
a)
/bin
b)
/root
c)
/etc
d)
/dev
18.
Identify the OS which is not based on Linux.
a)
Ubuntu
b)
BSD
c)
CentOS
d)
Red Hat
19.
Where is the user password stored?
a)
/etc/passwd
b)
/root/passwd
c)
/etc/shadow
d)
/etc/password
20.
Which command is used to display the operating system name
a)
wc
b)
uname
c)
osname
d)
os
21.
Which option of ls command used to view file inode number
a)
-i'
b)
-I'
c)
-a'
d)
-o'
22.
Using which of the following command can hidden files be viewed?
a)
ls -a
b)
ls -h
c)
ls -l
d)
ls -k
23.
Which of the following sign is used to represent the user home directory?
a)
/
b)
.
c)
~
d)
:
24.
Identify the command which is used to display the unix version.
a)
uname -t
b)
uname -r
c)
uname -n
d)
kernel
25.
Choose the following statement is true or false: Directory is a type of file.
a)
True
b)
False
26.
Which of the following is used to represent the top-level directory?
a)
*
b)
\
c)
#
d)
/
27.
Identify this script which is run for setting a global defaults for users
a)
/etc/.log
b)
/etc/.bashrc
c)
/etc/.profile
d)
/etc/profile
28.
Linux Kernel was founded by?
a)
Richard Stallman
b)
Linux Torvalds
c)
Dennis Rittiche
d)
Ben Thomson
29.
Which of the following command is used to change the working directory?
a)
changed
b)
chdr
c)
dr
d)
cd
30.

What is the command used to find the system performance and output refreshed every second?

a)

uptime

b)

top

c)

ps -ef

d)

All the above

31.
OSS stands for _____________
a)
Original Source Software
b)
Open System Software
c)
Original System Server
d)
Open Source Software
32.
Which of the following commands is used to display and create files?
a)
lynx
b)
cat
c)
vi
d)
ed
33.
What is Linux?
a)
Linux is a programming language
b)
Linux is a software program
c)
Linux is an operating system
d)
Linux is a text editor
34.
The Linux shell is both _______ and _______ language.
a)
scripting, interpreter
b)
high level, low level
c)
interactive, responsive
d)
interpreter, executing
35.
In which language Linux is written?
a)
C++
b)
C
c)
JAVA
d)
Python
36.
Which editor came into existance first
a)
vi
b)
emacs
c)
ex
d)
ed
37.

Location of system log

a)

/var/log/messenger

b)

/var/log/messages

c)

/var/log/messages

d)

/var/log/systemlog

38.

Which command is more efficient to find files with less time period?

a)

find

b)

tree

c)

locate

d)

All the above

39.

Which file can be used to make DNS resolution on Linux server

(a)  

40.

What command to be used to restart the service sshd

(a)