Online Exam Quiz

questionQuestion  1 to 30

What is the default directory for user home directories?

  • /home
  • /usr
  • /var
  • /root
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 change the owner of a file?

  • chown
  • chmod
  • chgrp
  • cp
Mark for review

How do you rename a file?

  • mv
  • cp
  • rename
  • rm
Mark for review

How do you display the current date and time?

  • date
  • time
  • datetime
  • clock
Mark for review

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

  • passwd
  • chpasswd
  • usermod
  • chage
Mark for review

Which file contains user account information?

  • /etc/passwd
  • /etc/shadow
  • /etc/group
  • /etc/gpasswd
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

How do you display the current user's username?

  • whoami
  • who
  • id
  • uname
Mark for review

How do you change the permissions of a file?

  • chown
  • chmod
  • chgrp
  • cp
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

What is the default shell in Red Hat?

  • csh
  • ksh
  • bash
  • zsh
Mark for review

Which command is used to switch to a different user?

  • su
  • sudo
  • switch
  • login
Mark for review

How do you create a new directory?

  • mkdir
  • mkfile
  • touch
  • mktree
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

Which command is used to find files?

  • find
  • locate
  • whereis
  • all of the above
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 command to copy files and directories?

  • cp
  • mv
  • rm
  • scp
Mark for review

Which command is used to display open ports?

  • netstat
  • lsof
  • ss
  • 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 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

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

  • chown
  • chgrp
  • chmod
  • newgrp
Mark for review

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

  • at
  • cron
  • crontab
  • schedule
Mark for review

How do you start a service in Red Hat?

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

Which file contains the system hostname?

  • /etc/hostname
  • /etc/hosts
  • /etc/resolv.conf
  • /etc/network/interfaces
Mark for review

How do you reboot the system immediately?

  • reboot
  • shutdown -r now
  • halt
  • poweroff
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

What is the default package manager in Red Hat?

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