NEW
Font size
WorksheetsRHCSA Final Exam-Batch-8
Total questions: 40
Worksheet time: 40mins
What is documentation permission of File and Folder.
666,555
644,755
666,777
022,021
What will be file & folder permissions if i set umask to 033
644,744
633,733
666,777
555,666
Which of the following command is used to count the total number of lines, words, and characters contained in a file?
wc
wcount
countw
None of the above
Identify the command which is used to remove files.
rmdir
rm
removefile
delete
Among the following which command is used to remove single characters in vim editor
x
w
p
q
Which command is used to add new user to the system?
userdel
useradd
sudoadd
adding user
Maximum how many Primary Partition can exist on single Disk?
16
15
4
5
Identify the command which is used to create Linux File systems?
createfilesystem
createdisk
mkfs
fdisk
GNU stands for ___________
Greek Needed Unix
General Unix
GNU’s Not Unix
General Noble Unix
In which of the following directory does the configuration files are present?
/etc
/root
/dev
/bin
Where is User password stored
/etc/shadow
/etc/passwd
/dev/sda1
/etc/group
How to view file inodenumber ?
ls -t
ls -i
ls -inode
ls -lt
How to view hidden files
ls -il
ls -tl
ls -ls
ls -al
Where we can see all disk files?
/etc/
/bin/
/dev/
/opt/
Which command is also used to create files?
touch
mkdir
myfile
createfile
How to get help to understand the command?
help command
cd command
man command
None of the Above
Which command is used to display mounted partition?
mount -a
show mount
give mount
df -h
Which command is used to remove Directory and sub directory and files?
rmdir
rm -r
removefiles
None of the Above
Which directory holds default files for new users ?
/usr/tmp
/etc/skel
/etc/users
None of the above
which command is used in VIM to copy line in normal mode?
xx
dd
pp
yy
Which command is used to save and exit from vim editor?
;wq
:wq
:$wq
:WQ
What is Octal value for write permission?
2
4
6
1
What do you mean by execute permission on Directory?
You can run the Directory
You can write in the Directory
You can get into the Directory
You can delete the Directory
What is third field in /etc/passwd file?
Name of the user
GID
Phone number
UID
What is default documentation permission of the file?
777
666
644
755
What is default permission of the file?
777
666
644
755
Using which file, we can give permission to user to execute Admin commands?
/etc/skel
/etc/group
/etc/passwd
/etc/sudoers
How to execute specific task on Every Monday 1pm ?
0 13 * * 1 command
0 1 1 * * command
0 13 1 * * command
* * * * * Mon Command
If file is having permission 655 then what is true?
r-x rwxrwx
r - w r - x r- x
rw- r - x r - x
r - - r - - r - -
which command is correct to change both user and group of files?
chmoduser:group file1
chmod owner file1
chown user:group file1
chown -u user -g group file1
Which command is correct to open sudoers files in safe fashion?
vim /etc/sudoers
visudo
cat /etc/sudoers
vi /etc/sudoers
How to set job which will execute daily?
* * * * job1
0 0 0 0 0 job1
0 0 * job1
None of the above
Which command is correct in order to append the content in file?
cat /etc/passwd >> /tmp/newfile
cat /etc/passwd | /tmp/newfile
cat /etc/group > /tmp/newfile
cat /etc/group | cat /etc/passwd ? /tmp/newfile
which command will not give error while creating this path /tmp/myfolder/yourfolder ?
mkdir -p /tmp/myfolder/yourfolder
touch /tmp/myfolder/yourfolder
cat /tmp/myfolder/yourfolder
a. mkdir/tmp/myfolder/yourfolder
Which command can set job which will execute once in future?
crontab -e
crontab -l
anacrontab -e
at
Which represents the user home directory?
/
.
..
~
What if user run only cd command on prompt?
It will give error.
It will do nothing
It will go to home directory of user.
None of the above
What command is used to copy files and directories?
copy
mv
cp
rm
If the umask value is 0002. what will be the permissions of new directory?
777
775
774
664
What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct
chmod –r +x /home/user1/direct
chmod –R +x /home/user1/direct
chmod –f –r +x /home/user1/direct
chmod –F +x /home/user1/direct
