Online Exam Quiz

questionQuestion  1 to 30

Which command is used to terminate a process?

  • kill
  • killall
  • pkill
  • all of the above
Mark for review

How do you display the current directory?

  • pwd
  • cd
  • ls
  • dir
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 switch to a different user?

  • su
  • sudo
  • switch
  • login
Mark for review

How do you display the current user's username?

  • whoami
  • who
  • id
  • uname
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 reboot the system immediately?

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

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

What is the default shell in Red Hat?

  • csh
  • ksh
  • bash
  • zsh
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 amount of free and used memory in the system?

  • free
  • df
  • top
  • mem
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

What is the default port for SSH?

  • 20
  • 22
  • 23
  • 25
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 date and time?

  • date
  • time
  • datetime
  • clock
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 change the system's hostname?

  • hostnamectl
  • hostname
  • host
  • sethostname
Mark for review

How do you enable a service to start at boot?

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

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

  • passwd
  • chpasswd
  • usermod
  • chage
Mark for review

How do you check disk space usage?

  • df
  • du
  • fdisk
  • mount
Mark for review

How do you create a new directory?

  • mkdir
  • mkfile
  • touch
  • mktree
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 change the owner of a file?

  • chown
  • chmod
  • chgrp
  • cp
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 command to copy files and directories?

  • cp
  • mv
  • rm
  • scp
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

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

What is the default directory for user home directories?

  • /home
  • /usr
  • /var
  • /root
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