Online Exam Quiz

questionQuestion  1 to 30

Which command is used to find files?

  • find
  • locate
  • whereis
  • all of the above
Mark for review

Which command is used to view disk usage?

  • df
  • du
  • fdisk
  • mount
Mark for review

How do you display the current date and time?

  • date
  • time
  • datetime
  • clock
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 list all users on the system?

  • cat /etc/passwd
  • cat /etc/shadow
  • cat /etc/group
  • cat /etc/gpasswd
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 start a service in Red Hat?

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

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

  • chown
  • chmod
  • chgrp
  • cp
Mark for review

How do you install a package using YUM?

  • yum add
  • yum install
  • yum get
  • yum put
Mark for review

How do you create a new user in Red Hat?

  • useradd
  • adduser
  • newuser
  • mkuser
Mark for review

Which command is used to show system uptime?

  • uptime
  • top
  • who -b
  • w
Mark for review

How do you create a symbolic link?

  • ln
  • ln -s
  • link
  • mklink
Mark for review

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

  • chown
  • chgrp
  • chmod
  • newgrp
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 password of a user?

  • passwd
  • chpasswd
  • usermod
  • chage
Mark for review

How do you enable a service to start at boot?

  • systemctl enable
  • systemctl start
  • systemctl boot
  • systemctl autostart
Mark for review

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

  • at
  • cron
  • crontab
  • schedule
Mark for review

What is the default shell in Red Hat?

  • csh
  • ksh
  • bash
  • zsh
Mark for review

How do you list all installed packages in a Red Hat system?

  • rpm -qa
  • rpm -ivh
  • yum list installed
  • dpkg -l
Mark for review

Which command is used to display open ports?

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

How do you display the current user's username?

  • whoami
  • who
  • id
  • uname
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

How do you add a new repository in YUM?

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

What is the default port for SSH?

  • 20
  • 22
  • 23
  • 25
Mark for review

Which command is used to switch to a different user?

  • su
  • sudo
  • switch
  • login
Mark for review

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

  • hostnamectl
  • hostname
  • host
  • sethostname
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

What is the default package manager in Red Hat?

  • apt
  • yum
  • rpm
  • dpkg
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