Online Exam Quiz

questionQuestion  1 to 30

Which command is used to view all currently running processes?

  • ps -e
  • ps -a
  • ps -u
  • ps -f
Mark for review

How do you display the current directory?

  • pwd
  • cd
  • ls
  • dir
Mark for review

Which file contains user account information?

  • /etc/passwd
  • /etc/shadow
  • /etc/group
  • /etc/gpasswd
Mark for review

Which command is used to compress files?

  • tar
  • gzip
  • zip
  • all of the above
Mark for review

Which command is used to change the group ownership of a file?

  • chown
  • chgrp
  • chmod
  • newgrp
Mark for review

What is the default shell in Red Hat?

  • csh
  • ksh
  • bash
  • zsh
Mark for review

How do you remove a package using YUM?

  • yum delete
  • yum erase
  • yum remove
  • yum uninstall
Mark for review

What is the default port for SSH?

  • 20
  • 22
  • 23
  • 25
Mark for review

Which command is used to check the current runlevel?

  • runlevel
  • init
  • systemctl
  • chkconfig
Mark for review

Which command is used to switch to a different user?

  • su
  • sudo
  • switch
  • login
Mark for review

How do you add a new repository in YUM?

  • yum-config-manager --add-repo
  • yum addrepo
  • yum add-repo
  • yumrepo --add
Mark for review

Which command is used to display open ports?

  • netstat
  • lsof
  • ss
  • all of the above
Mark for review

Which command is used to update the package list in YUM?

  • yum update
  • yum upgrade
  • yum refresh
  • yum check-update
Mark for review

What is the default configuration file for GRUB?

  • /etc/grub.conf
  • /boot/grub/grub.conf
  • /boot/grub2/grub.cfg
  • /etc/default/grub
Mark for review

What is the default directory for user home directories?

  • /home
  • /usr
  • /var
  • /root
Mark for review

How do you view the contents of a file?

  • cat
  • less
  • more
  • all of the above
Mark for review

How do you check disk space usage?

  • df
  • du
  • fdisk
  • mount
Mark for review

Which command is used to change the owner of a file?

  • chown
  • chmod
  • chgrp
  • cp
Mark for review

Which command is used to view the last 10 lines of a file?

  • head
  • tail
  • cat
  • less
Mark for review

Which file stores the list of repositories in YUM?

  • /etc/yum.repos.d
  • /etc/yum.conf
  • /etc/yum.repos
  • /etc/yum.conf.d
Mark for review

How do you change the permissions of a file?

  • chown
  • chmod
  • chgrp
  • cp
Mark for review

Which command is used to display the IP address of the system?

  • ifconfig
  • ip addr show
  • ip address
  • ip a
Mark for review

How do you create a new user in Red Hat?

  • useradd
  • adduser
  • newuser
  • mkuser
Mark for review

How do you reboot the system immediately?

  • reboot
  • shutdown -r now
  • halt
  • poweroff
Mark for review

How do you start a service in Red Hat?

  • service start
  • systemctl start
  • systemctl enable
  • service enable
Mark for review

How do you display the current date and time?

  • date
  • time
  • datetime
  • clock
Mark for review

How do you display the kernel version?

  • uname -r
  • uname -a
  • uname -v
  • uname -s
Mark for review

Which command is used to display the amount of free and used memory in the system?

  • free
  • df
  • top
  • mem
Mark for review

How do you view system logs?

  • journalctl
  • dmesg
  • tail /var/log/messages
  • all of the above
Mark for review

Which command is used to change the password of a user?

  • passwd
  • chpasswd
  • usermod
  • chage
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review