Font size
WorksheetsRH124 MCQ & Practical session - set 02
Total questions: 36
Worksheet time: 45mins
All these questions are to be answered in Practical mode. Before updating the answer, please show it to instructor.
-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.
-- 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
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
Find all installed packages names in the system, and put the names into a file named packages.txt.
-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
What is the command used to find the system performance and output refreshed every second?
uptime
top
ps -ef
All the above
Location of system log
/var/log/messenger
/var/log/messages
/var/log/messages
/var/log/systemlog
Which command is more efficient to find files with less time period?
find
tree
locate
All the above
Which file can be used to make DNS resolution on Linux server
(a)
What command to be used to restart the service sshd
(a)
