Online Exam Quiz

questionQuestion  1 to 30

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

  • chown
  • chgrp
  • chmod
  • newgrp
Mark for review

Which command is used to change the system's hostname?

  • hostnamectl
  • hostname
  • host
  • sethostname
Mark for review

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

  • chown
  • chmod
  • chgrp
  • cp
Mark for review

What is the purpose of the /etc/fstab file?

  • To list mounted filesystems
  • To configure network settings
  • To list swap files
  • To configure GRUB
Mark for review

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

  • head
  • tail
  • cat
  • less
Mark for review

Which command is used to find files?

  • find
  • locate
  • whereis
  • all of the above
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

How do you view the contents of a file?

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

Which command is used to compress files?

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

How do you create a new user in Red Hat?

  • useradd
  • adduser
  • newuser
  • mkuser
Mark for review

How do you display the current date and time?

  • date
  • time
  • datetime
  • clock
Mark for review

How do you list all users on the system?

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

How do you start a service in Red Hat?

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

What is the default shell in Red Hat?

  • csh
  • ksh
  • bash
  • zsh
Mark for review

How do you reboot the system immediately?

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

How do you display the current user's username?

  • whoami
  • who
  • id
  • uname
Mark for review

Which command is used to view the manual page of a command?

  • man
  • help
  • info
  • doc
Mark for review

How do you schedule a one-time task using cron?

  • at
  • cron
  • crontab
  • schedule
Mark for review

Which command is used to view disk usage?

  • df
  • du
  • fdisk
  • mount
Mark for review

Which command is used to display open ports?

  • netstat
  • lsof
  • ss
  • all of the above
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

Which command is used to check the current runlevel?

  • runlevel
  • init
  • systemctl
  • chkconfig
Mark for review

How do you create a new directory?

  • mkdir
  • mkfile
  • touch
  • mktree
Mark for review

Which file is used to configure network interfaces?

  • /etc/network/interfaces
  • /etc/sysconfig/network-scripts/ifcfg-eth0
  • /etc/netplan/50-cloud-init.yaml
  • /etc/hosts
Mark for review

Which command is used to switch to a different user?

  • su
  • sudo
  • switch
  • login
Mark for review

How do you remove a package using YUM?

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

Which command is used to show system uptime?

  • uptime
  • top
  • who -b
  • w
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 update the package list in YUM?

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

Which command is used to view all currently running processes?

  • ps -e
  • ps -a
  • ps -u
  • ps -f
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