wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

RHCSA Final Exam-Batch-8

Total questions: 40

Worksheet time: 40mins

Name
Class
Date
1.

What is documentation permission of File and Folder.

a)

  666,555

b)

 644,755

c)

    666,777

d)

   022,021

2.

What will be file & folder permissions if i set umask to 033

a)

    644,744

b)

633,733

c)

  666,777

d)

     555,666

3.

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

4.

Identify the command which is used to remove files.

a)

rmdir

b)

rm

c)

removefile

d)

delete

5.

Among the following which command is used to remove single characters in vim editor

a)

  x

b)

   w

c)

   p

d)

  q

6.

Which command is used to add new user to the system?

a)

     userdel

b)

    useradd

c)

  sudoadd

d)

    adding user

7.

Maximum how many Primary Partition can exist on single Disk?

a)

  16

b)

   15

c)

4

d)

5

8.

Identify the command which is used to create Linux File systems?

a)

createfilesystem

b)

createdisk

c)

mkfs

d)

fdisk

9.

GNU stands for ___________

a)

Greek Needed Unix

b)

     General Unix

c)

GNU’s Not Unix

d)

   General Noble Unix

10.

In which of the following directory does the configuration files are present?

a)

   /etc

b)

   /root

c)

     /dev

d)

  /bin

11.

Where is User password stored

a)

     /etc/shadow

b)

   /etc/passwd

c)

     /dev/sda1

d)

  /etc/group

12.

How to view file inodenumber ?

a)

ls -t

b)

     ls -i

c)

   ls -inode

d)

ls -lt

13.

How to view hidden files

a)

   ls -il

b)

ls -tl

c)

ls -ls

d)

ls -al

14.

Where we can see all disk files?

a)

/etc/

b)

/bin/

c)

     /dev/

d)

/opt/

15.

Which command is also used to create files?

a)

touch

b)

    mkdir

c)

myfile

d)

createfile

16.

How to get help to understand the command?

a)

  help command

b)

cd command

c)

    man command

d)

   None of the Above

17.

Which command is used to display mounted partition?

a)

  mount -a

b)

  show  mount

c)

give mount

d)

  df -h

18.

Which command is used to remove Directory and sub directory and files?

a)

rmdir

b)

   rm -r

c)

   removefiles

d)

  None of the Above

19.

Which directory holds default files for new users ?

a)

/usr/tmp

b)

     /etc/skel

c)

     /etc/users

d)

None of the above

20.

which command is used in VIM to copy line in normal mode?

a)

xx

b)

    dd

c)

  pp

d)

  yy

21.

Which command is used to save and exit from vim editor?

a)

   ;wq

b)

    :wq

c)

     :$wq

d)

    :WQ

22.

What is Octal value for write permission?

a)

2

b)

    4

c)

  6

d)

  1

23.

What do you mean by execute permission on Directory?

a)

You can run the Directory

b)

You can write in the Directory

c)

You can get into the Directory

d)

You can delete the Directory

24.

What is third field in /etc/passwd file?

a)

Name of the user

b)

  GID

c)

Phone number

d)

  UID

25.

What is default documentation permission of the file?

a)

    777

b)

  666

c)

    644

d)

  755

26.

What is default permission of the file?

a)

777

b)

   666

c)

    644

d)

    755

27.

Using which file, we can give permission to user to execute Admin commands?

a)

   /etc/skel

b)

  /etc/group

c)

/etc/passwd

d)

/etc/sudoers

28.

How to execute specific task on Every Monday 1pm ?

a)

  0  13 * 1  command

b)

   0   1   1 * * command

c)

    0 13 1 * *  command

d)
  • * * * * * Mon  Command

29.

If file is having permission 655 then what is true?

a)

    r-x rwxrwx

b)

   r - w r - x r- x

c)

     rw- r - x r - x

d)

   r - - r - - r - -

30.

which command is correct to change both user and group of files?

a)

     chmoduser:group  file1

b)

chmod  owner  file1

c)

     chown user:group  file1

d)

  chown   -u user -g group file1

31.

Which command is correct to open sudoers files in safe fashion?

a)

vim /etc/sudoers

b)

    visudo

c)

   cat /etc/sudoers

d)

   vi /etc/sudoers

32.

How to set job which will execute daily?

a)
  • * * *    *  job1

b)

    0 0 0 0 0 job1

c)

    0 0 * job1

d)

    None of the above

33.

Which command is correct in order to append the content in file?

a)

cat /etc/passwd >> /tmp/newfile

b)

  cat /etc/passwd  | /tmp/newfile

c)

  cat /etc/group > /tmp/newfile

d)

  cat /etc/group | cat /etc/passwd  ? /tmp/newfile

34.

which command will not give error while creating this path /tmp/myfolder/yourfolder ?

a)

  mkdir -p /tmp/myfolder/yourfolder

b)

touch /tmp/myfolder/yourfolder

c)

  cat /tmp/myfolder/yourfolder

d)

a.     mkdir/tmp/myfolder/yourfolder

35.

Which command can set job which will execute once in future?

a)

   crontab -e

b)

    crontab -l

c)

anacrontab -e

d)

    at

36.

Which represents the user home directory?

a)

     /

b)

     .

c)

    ..

d)

~

37.

What if user run only cd command on prompt?

a)

It will give error.

b)

It will do nothing

c)

    It will go to home directory of user.

d)

  None of the above

38.

What command is used to copy files and directories?

a)

copy

b)

mv

c)

   cp

d)

rm

39.

 If the umask value is 0002. what will be the permissions of new directory?

a)

     777

b)

775

c)

   774

d)

    664

40.

What is the command to set the execute permissions to all the files and subdirectories within the directory /home/user1/direct

a)

chmod –r +x /home/user1/direct

b)

chmod –R +x /home/user1/direct

c)

chmod –f –r +x /home/user1/direct

d)

chmod –F +x /home/user1/direct