Linux Operating Systems Fundamentals

Test your knowledge of Linux operating systems including installation, partitioning, basic commands, and shell scripting.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

How would you check f two strings are equal?

  1. a. test $a –eq $b
  2. b. test $a –equal $b
  3. c. test $a = $b
  4. d. sh –c test $a == $b
Question 2 Multiple Choice (Single Answer)

Which of the following would return the process ID of the sleep command

  1. a. sleep 1 & echo $
  2. b. sleep 1 & echo $#
  3. c. sleep 1 & echo $$
  4. d. sleep 1 & echo $!
  5. e. sleep 1 && echo $0
Question 3 Multiple Choice (Single Answer)

Which of the following will always output “maple”?

  1. a. $tree = maple;echo $tree
  2. b. tree = maple; echo $tree
  3. c. tree=maple; export $tree; sh –c “echo $tree”
  4. tree=maple; export tree; sh -c "echo $tree"
Question 4 Multiple Choice (Single Answer)

Which of the following will output “cat”?

  1. a. case “dog” in *) echo cat;; esac
  2. b. case “cat” in cat) echo$1 exit
  3. c. case cat dog rabbit; echo $1
  4. d. echo cat | case $1 in cat) echo $1 ;; esac
  5. e. case (cat dog rabbit) {echo $2}
Question 5 Multiple Choice (Single Answer)

Which of the following will output “onetwothree”?

  1. a. for n in one two three ; do echo –n $n ; done
  2. b. for val ; do echo –n $val ; done <one two three
  3. for n in one two three ; do echo -n $n ; done
  4. d. foreach n in one two three; do echo –n $n ; done
  5. e. foreach n in one two three { echo –n $n }
Question 6 Multiple Choice (Single Answer)

What is the command to list the processes running in your system.

  1. ifconfig
  2. top
  3. ps
  4. ls
Question 7 Multiple Choice (Single Answer)

command used to see the last few lines of a file?.

  1. less
  2. tail
  3. more
  4. cat
Question 8 Multiple Choice (Single Answer)

what is GNU.

  1. Gnome not Unix
  2. GNU not unix.
  3. gnome
  4. gnometrics
Question 9 Multiple Choice (Single Answer)

which command is used to display the network interfaces in a linux system.

  1. ipconfig
  2. ifconfig
  3. netstat
  4. neat
Question 10 Multiple Choice (Single Answer)

what is K means in KDE sessions.

  1. killer
  2. knome
  3. K (just k, alphabet before L)
  4. kick
Question 11 Multiple Choice (Single Answer)

command for listing file contents page wise

  1. less
  2. huge
  3. make
  4. take
Question 12 Multiple Choice (Single Answer)

command for crating a new file in linux terminal

  1. hold
  2. touch
  3. make
  4. copycom
Question 13 Multiple Choice (Single Answer)

command for deleating a file in linux terminal

  1. del
  2. delete
  3. rm
  4. remove
Question 14 Multiple Choice (Single Answer)

command for listing all the contents of a folder

  1. dir
  2. show contents
  3. show dir contents
  4. ls
Question 15 Multiple Choice (Single Answer)

command for listing file contents normally

  1. cat
  2. dog
  3. mouse
  4. lion
Question 16 Multiple Choice (Single Answer)

what is the name of Linux boot loader

  1. lilo
  2. grub
  3. ntloader
  4. booter
Question 17 Multiple Choice (Single Answer)

what is essential partition in installing linux

  1. swap
  2. etc
  3. root or /
  4. var
Question 18 Multiple Choice (Single Answer)

how much amount of disk space is needed for a swap partition in general

  1. 4 times to RAM
  2. 3 Times to RAM
  3. 2 times to RAM
  4. RAM size
Question 19 Multiple Choice (Single Answer)

can you install without creating a home partition

  1. yes
  2. no
  3. cant say
  4. dont know
Question 20 Multiple Choice (Single Answer)

using root user in a GUI environment is a security issue ??

  1. yes
  2. no
  3. cant say
  4. dont know