Online Exam Quiz

questionQuestion  1 to 30

How do you change the hostname of the system?

  • setname
  • hostnamectl
  • changename
  • hostname
Mark for review

Which command is used to display the groups a user belongs to?

  • usergroups
  • groups
  • group
  • showgroups
Mark for review

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

  • ipconfig
  • ifconfig
  • netstat -i
  • ip addr show
Mark for review

Which command is used to update the package database?

  • update
  • apt-get update
  • apt update
  • pkg update
Mark for review

How do you display the size of a file?

  • filesize
  • size
  • du -sh
  • ls -lh
Mark for review

How do you display the last few lines of a file?

  • finish
  • end
  • bottom
  • tail
Mark for review

Which command is used to copy files in Linux?

  • copy
  • mv
  • cp
  • cpmove
Mark for review

How do you change the ownership of a file?

  • chgrp
  • chown
  • chperm
  • owner
Mark for review

How do you display the memory usage?

  • memusage
  • memory
  • free
  • memstat
Mark for review

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

  • grpown
  • chgrp
  • chown
  • chperm
Mark for review

How do you display the system logs?

  • logview
  • dmesg
  • syslog
  • log
Mark for review

What is the default shell in most Linux distributions?

  • fish
  • bash
  • zsh
  • sh
Mark for review

How do you edit a text file in a terminal?

  • nano
  • edit
  • open
  • vi
Mark for review

How do you display the current date and time?

  • datetime
  • time
  • now
  • date
Mark for review

Which file contains user account information?

  • /etc/users
  • /etc/passwd
  • /etc/accounts
  • /etc/shadow
Mark for review

Which command is used to schedule a command to run at a later time?

  • at
  • cron
  • timed
  • schedule
Mark for review

Which command is used to change the current directory?

  • move
  • cd
  • chdir
  • mv
Mark for review

How do you create a new empty file?

  • touch
  • makefile
  • create
  • newfile
Mark for review

How do you compare the contents of two files?

  • cmp
  • diff
  • comp
  • compare
Mark for review

How do you display the kernel version?

  • uname -v
  • kernel
  • version
  • uname -r
Mark for review

How do you display the contents of a text file?

  • open
  • cat
  • display
  • show
Mark for review

Which command is used to delete files?

  • erase
  • rm
  • del
  • remove
Mark for review

How do you reboot the system?

  • reboot
  • restart
  • shutdown -r
  • reboot -r
Mark for review

What is the command to display the current working directory?

  • cwd
  • pwd
  • dir
  • ldir
Mark for review

How do you display the first few lines of a file?

  • start
  • head
  • top
  • begin
Mark for review

Which command is used to move files?

  • mv
  • move
  • mfile
  • trans
Mark for review

Which command is used to create a symbolic link?

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

How do you list open files and the processes that opened them?

  • fopen
  • fileproc
  • openfiles
  • lsof
Mark for review

Which file contains system-wide environment variables?

  • /etc/bashrc
  • /etc/profile
  • /etc/env
  • /etc/environment
Mark for review

How do you display a list of active network connections?

  • net route
  • netstat
  • route
  • ip addr
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