Redhat Quiz Sa1 & Sa2

20 Questions | Total Attempts: 315

SettingsSettingsSettings
Please wait...
Redhat Quiz Sa1 & Sa2

Hii this RHCSA Test is prepared by Sanjay Nigam (Linux Admin)for more Details: freely reach to me. E-mail: sanjay. [email protected] ComFollow on Instagram: @root_sanjay


Questions and Answers
  • 1. 
    Which command is used for adding a new user.?
    • A. 

      Add user

    • B. 

      Useradd

    • C. 

      Usermod

    • D. 

      Userplus

  • 2. 
    Which command is used to check the content of directory.?
    • A. 

      Ls

    • B. 

      List

    • C. 

      Lsdir

    • D. 

      Li

  • 3. 
    What will happen if we run this command.?#touch file{1..10}
    • A. 

      It create file with name file{1..10}

    • B. 

      It create 10 files

    • C. 

      Error

    • D. 

      None of these

  • 4. 
    Which is the configuration file of apache server.?
    • A. 

      /etc/httpd/conf/httpd.conf

    • B. 

      /etc/httpd.conf

    • C. 

      /var/www/apache.conf

    • D. 

      None of these

  • 5. 
    For permanent mount /etc/ is the file.
  • 6. 
    Which command is used for delete all credential of user.?
    • A. 

      Userdel user1

    • B. 

      Userdel -r user1

    • C. 

      Userdel -all user1

    • D. 

      None of these

  • 7. 
    How to add user1 in to the  sysadmin group.?
    • A. 

      Groupadd user1 sysadmin

    • B. 

      Gpasswd -a sysadmin user1

    • C. 

      Gadd user1 sysadmin

    • D. 

      Gpasswd -a user1 sysadmin

  • 8. 
    How to add these user in to the sysadmin group.?user1 , user2 , user3
    • A. 

      Gpasswd -a user1 user2 user3

    • B. 

      Gpasswd -m user1 user2 user3

    • C. 

      Gpasswd -M user1 user2 user3

    • D. 

      Gpasswd -all user1 user2 user3

  • 9. 
    How to change the shell for user.?
    • A. 

      Usermod -s

    • B. 

      User -k

    • C. 

      Usermod -S

    • D. 

      None of these

  • 10. 
    Which command is used to change the password of user.?
    • A. 

      Password

    • B. 

      Passwd

    • C. 

      Paswd

    • D. 

      Pass

  • 11. 
    What is the use of chmod command.?
    • A. 

      To set permission

    • B. 

      To create link

    • C. 

      To check contents of Directory

    • D. 

      None of these

  • 12. 
    How to formate the swap partition.?
    • A. 

      Swapformate

    • B. 

      Mkswap

    • C. 

      Mkfs

    • D. 

      None of these

  • 13. 
    Which is the file consist group information.?
    • A. 

      /etc/group

    • B. 

      /etc/shadow

    • C. 

      /etc/gshadow

    • D. 

      /etc/groupinfo

  • 14. 
    How to Lock the user.?
    • A. 

      Usermod -l user

    • B. 

      Usermod -L user

    • C. 

      Userlo user

    • D. 

      Usermod -a user

  • 15. 
     A user can't remove the data of other user while he have full permission.? just because of
    • A. 

      Stickey bit permission

    • B. 

      Special permission

    • C. 

      Nested condition

    • D. 

      None of these

  • 16. 
    How can you create maximum Primary partition ?
    • A. 

      6

    • B. 

      5

    • C. 

      3

    • D. 

      4

  • 17. 
    How to see parent Structure of Directory.?
    • A. 

      Ls

    • B. 

      Ls -r

    • C. 

      Ls -R

    • D. 

      Ls -p

  • 18. 
    How to append data in to the file.?
    • A. 

      Cat>>file

    • B. 

      Cat>file

    • C. 

      Cat

    • D. 

      None of these

  • 19. 
    MBR stands for .?
    • A. 

      Master Bit Record

    • B. 

      Master Boot Record

    • C. 

      Map Bit Record

    • D. 

      Map Boot Record

Back to Top Back to top