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 change the current directory?

  • move
  • cd
  • chdir
  • mv
Mark for review

Which command is used to delete files?

  • erase
  • rm
  • del
  • remove
Mark for review

How do you compare the contents of two files?

  • cmp
  • diff
  • comp
  • compare
Mark for review

How do you search for a package using apt?

  • apt search
  • pkg search
  • apt find
  • search
Mark for review

How do you remove a directory?

  • remdir
  • rmdir
  • deldir
  • rmd
Mark for review

How do you create a new empty file?

  • touch
  • makefile
  • create
  • newfile
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 the contents of a text file?

  • open
  • cat
  • display
  • show
Mark for review

How do you change the ownership of a file?

  • chgrp
  • chown
  • chperm
  • owner
Mark for review

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

  • at
  • cron
  • timed
  • schedule
Mark for review

How do you install a package using apt?

  • pkg install
  • apt add
  • apt install
  • apt-get install
Mark for review

How do you display the memory usage?

  • memusage
  • memory
  • free
  • memstat
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 display the IP address of the system?

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

How do you display the kernel version?

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

How do you display the size of a file?

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

How do you check the disk usage of a directory?

  • diskfree
  • df
  • diskuse
  • du
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 view the manual page for a command?

  • doc
  • help
  • guide
  • man
Mark for review

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

  • start
  • head
  • top
  • begin
Mark for review

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

  • fopen
  • fileproc
  • openfiles
  • lsof
Mark for review

Which command is used to create a symbolic link?

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

Which command is used to terminate a process?

  • endproc
  • terminate
  • stop
  • kill
Mark for review

How do you edit a text file in a terminal?

  • nano
  • edit
  • open
  • vi
Mark for review

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

  • usergroups
  • groups
  • group
  • showgroups
Mark for review

How do you display the current date and time?

  • datetime
  • time
  • now
  • date
Mark for review

Which command is used to copy files in Linux?

  • copy
  • mv
  • cp
  • cpmove
Mark for review

How do you display the disk partitions?

  • diskpart
  • fdisk -l
  • showpart
  • part
Mark for review

How do you display the system logs?

  • logview
  • dmesg
  • syslog
  • log
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