Linux Operating Systems Fundamentals
Test your knowledge of Linux operating systems including installation, partitioning, basic commands, and shell scripting.
Questions
How would you check f two strings are equal?
- a. test $a –eq $b
- b. test $a –equal $b
- c. test $a = $b
- d. sh –c test $a == $b
Which of the following would return the process ID of the sleep command
- a. sleep 1 & echo $
- b. sleep 1 & echo $#
- c. sleep 1 & echo $$
- d. sleep 1 & echo $!
- e. sleep 1 && echo $0
Which of the following will always output “maple”?
- a. $tree = maple;echo $tree
- b. tree = maple; echo $tree
- c. tree=maple; export $tree; sh –c “echo $tree”
- tree=maple; export tree; sh -c "echo $tree"
Which of the following will output “cat”?
- a. case “dog” in *) echo cat;; esac
- b. case “cat” in cat) echo$1 exit
- c. case cat dog rabbit; echo $1
- d. echo cat | case $1 in cat) echo $1 ;; esac
- e. case (cat dog rabbit) {echo $2}
Which of the following will output “onetwothree”?
- a. for n in one two three ; do echo –n $n ; done
- b. for val ; do echo –n $val ; done <one two three
- for n in one two three ; do echo -n $n ; done
- d. foreach n in one two three; do echo –n $n ; done
- e. foreach n in one two three { echo –n $n }
What is the command to list the processes running in your system.
- ifconfig
- top
- ps
- ls
command used to see the last few lines of a file?.
- less
- tail
- more
- cat
what is GNU.
- Gnome not Unix
- GNU not unix.
- gnome
- gnometrics
which command is used to display the network interfaces in a linux system.
- ipconfig
- ifconfig
- netstat
- neat
what is K means in KDE sessions.
- killer
- knome
- K (just k, alphabet before L)
- kick
command for listing file contents page wise
- less
- huge
- make
- take
command for crating a new file in linux terminal
- hold
- touch
- make
- copycom
command for deleating a file in linux terminal
- del
- delete
- rm
- remove
command for listing all the contents of a folder
- dir
- show contents
- show dir contents
- ls
command for listing file contents normally
- cat
- dog
- mouse
- lion
what is the name of Linux boot loader
- lilo
- grub
- ntloader
- booter
what is essential partition in installing linux
- swap
- etc
- root or /
- var
how much amount of disk space is needed for a swap partition in general
- 4 times to RAM
- 3 Times to RAM
- 2 times to RAM
- RAM size
can you install without creating a home partition
- yes
- no
- cant say
- dont know
using root user in a GUI environment is a security issue ??
- yes
- no
- cant say
- dont know