Computer Knowledge
Operating Systems
1,344 Questions
Test your computer knowledge with these questions on operating systems. The content covers various platforms including Unix, Linux, Windows, Android, and Macintosh. These questions are commonly asked in the computer knowledge sections of banking and government exams.
Unix emulatorsLinux distributionsAndroid software stackMacintosh operating systemsWindows OS versionsSymbian OS history
Operating Systems Questions
-
CTRL+C
-
CTRL+Z
-
CTRL+B
-
CTRL+P
C
Correct answer
Explanation
CTRL+B moves the cursor backward one character in readline editing mode (used by bash and other Unix shells). This follows emacs-style keyboard shortcuts where B stands for 'backwards.' CTRL+C interrupts, CTRL+Z suspends, and CTRL+P moves to the previous history command.
-
CTRL+P
-
CTRL+C
-
CTRL+B
-
CTRL+U
A
Correct answer
Explanation
CTRL+P fetches the previous command from shell history, effectively 'pasting' the last line you entered. CTRL+C interrupts processes, CTRL+B moves the cursor back, and CTRL+U deletes from cursor to line start.
-
CTRL+W
-
CTRL+B
-
CTRL+C
-
CTRL+D
A
Correct answer
Explanation
CTRL+W deletes the word before the cursor in Unix shells - so in 'mv file1 file2', if your cursor is after 'file2', it removes 'file2'. CTRL+C sends interrupt signal, CTRL+B moves cursor back one character, CTRL+D sends end-of-transmission or logout.
-
NO
-
Yes
-
Yes,'mkfs’ is used to create a new file system.
-
NO, Cannot use ' mkfs’
C
Correct answer
Explanation
In Unix/Linux operating systems, the mkfs (make filesystem) command is the standard system administration utility used to build and initialize a new filesystem on a specified partition.
-
filter
-
kernel
-
inode
-
Shell
C
Correct answer
Explanation
An inode (index node) is the fundamental data structure in UNIX filesystems that stores file metadata like permissions, ownership, size, location data, and timestamps. Each file has a unique inode number. The kernel and shell are not data structures, and filter is a different concept entirely.
-
tar lot_of_thing.tar.Z | decomp
-
zcat lot_of_thing.tar.Z | tar xvf -
-
tar xvf lot_of_thing.tar.Z
-
tar lot_of_thing
B
Correct answer
Explanation
The command 'zcat lot_of_thing.tar.Z | tar xvf -' correctly uncompresses the .Z file using zcat and pipes the output to tar for extraction. The hyphen (-) tells tar to read from stdin. Option A pipes in wrong direction, C doesn't handle compression, and D is incomplete.
-
cat file1.txt file2.txt > new.txt
-
make new.txt=file1.txt+file2.txt
-
tail file1.txt | head file2.txt > new.txt
-
cat file1.txt file2.txt
A
Correct answer
Explanation
The command 'cat file1.txt file2.txt > new.txt' concatenates both files and redirects output to create new.txt. The > operator creates a new file (or overwrites existing). Option B uses invalid syntax, C misuses tail/head, and D only displays to screen without creating file.
-
TEST
-
CHECK
-
JCLCHK
-
EJCL ALL
B
Correct answer
Explanation
The CHECK command is widely used in mainframe editors and specific compilers to scan and catch JCL or program code syntax errors without executing the code. While JCLCHK is a CA Broadcom utility, CHECK is the general command interface option designed for standard syntax validation.
-
while command do list ; done
-
while command ; do list
-
while command ; do list ; done;
-
while command ; do list ; done
D
Correct answer
Explanation
The correct single-line while loop syntax in shell is 'while command ; do list ; done'. The semicolons allow placing the do and done keywords on the same line as commands. Option D has the proper syntax with semicolons in all required positions. Options A and C are missing semicolons, while B is missing 'done'.
-
Gnome not Unix
-
GNU not unix.
-
gnome
-
gnometrics
B
Correct answer
Explanation
GNU is a recursive acronym standing for 'GNU's Not Unix.' The recursive nature (where the acronym contains itself) is a classic hacker joke. It represents a free software operating system project started by Richard Stallman, intended to be a Unix-compatible system that is completely free software.
-
lilo
-
grub
-
ntloader
-
booter
B
Correct answer
Explanation
GRUB (Grand Unified Boot Loader) is the standard boot loader for modern Linux systems, responsible for loading the kernel into memory during system startup. LILO was an older boot loader but has been largely replaced. ntloader is specific to Windows systems, and booter is not a recognized Linux boot loader.
-
4 times to RAM
-
3 Times to RAM
-
2 times to RAM
-
RAM size
C
Correct answer
Explanation
A traditional rule of thumb for configuring virtual memory in Linux and UNIX-like systems is to allocate swap space equal to two times the size of physical RAM. While modern systems with high RAM may require less, '2 times RAM' remains the general historical standard.
-
yes
-
no
-
cant say
-
dont know
A
Correct answer
Explanation
A separate home partition is optional during Linux installation. The /home directory can simply be a directory within the root partition, containing all user files and configurations. Many distributions successfully install and run without a dedicated home partition.
-
lilo
-
grub
-
ntloader
-
booter
B
Correct answer
Explanation
GRUB (Grand Unified Boot Loader) is the standard boot loader for modern Linux systems, responsible for loading the kernel into memory during system startup. LILO was an older boot loader but has been largely replaced. ntloader is specific to Windows systems, and booter is not a recognized Linux boot loader.
-
4 times to RAM
-
3 Times to RAM
-
2 times to RAM
-
RAM size
C
Correct answer
Explanation
Traditional guidelines suggested sizing swap partition at 2 times the RAM size, though modern systems with ample RAM may use less. The 2x rule was a general heuristic for systems with limited memory to ensure adequate swap space for hibernation and memory overflow.