Order PDF of any content from our website with a little minor Fee to donate for hard work. Online MCQs are fully free but PDF books are paid. For details: contact whatsapp +923028700085 Important notes based PDF Books are available in very little price, starting from 500/-PKR; Order Now: contact whatsapp +923028700085

The Linux System – MCQs

Q#1: Linux is:
(A) A Unix-like open-source operating system
(B) Proprietary OS by Microsoft
(C) Mobile OS only
(D) Database software
Answer: (A) A Unix-like open-source operating system

Q#2: The Linux kernel is responsible for:
(A) Managing hardware resources and system calls
(B) Word processing
(C) Email services only
(D) Web browsing
Answer: (A) Managing hardware resources and system calls

Q#3: Linux is distributed under:
(A) GNU General Public License (GPL)
(B) MIT License
(C) Apache License
(D) BSD License
Answer: (A) GNU General Public License (GPL)

Q#4: The default shell in most Linux systems is:
(A) Bash (Bourne Again Shell)
(B) CMD
(C) PowerShell
(D) Zsh only
Answer: (A) Bash (Bourne Again Shell)

Q#5: Which of the following is a Linux command to list files?
(A) ls
(B) dir
(C) list
(D) show
Answer: (A) ls

Q#6: To display the current working directory in Linux, use:
(A) pwd
(B) cd
(C) dir
(D) ls
Answer: (A) pwd

Q#7: Linux file systems include:
(A) ext4, XFS, Btrfs, FAT32
(B) NTFS only
(C) HFS only
(D) APFS only
Answer: (A) ext4, XFS, Btrfs, FAT32

Q#8: In Linux, everything is considered:
(A) A file
(B) A process only
(C) A thread only
(D) A disk sector only
Answer: (A) A file

Q#9: The root directory in Linux is represented by:
(A) /
(B) ~
(C) .
(D) ..
Answer: (A) /

Q#10: The home directory for a user is represented by:
(A) ~
(B) /
(C) .
(D) ..
Answer: (A) ~

Q#11: To view contents of a file, you can use:
(A) cat, less, more
(B) show
(C) openfile
(D) read
Answer: (A) cat, less, more

Q#12: To copy a file in Linux, you use:
(A) cp
(B) mv
(C) rm
(D) copy
Answer: (A) cp

Q#13: To move or rename a file, you use:
(A) mv
(B) cp
(C) rm
(D) rename
Answer: (A) mv

Q#14: To remove a file, you use:
(A) rm
(B) del
(C) erase
(D) remove
Answer: (A) rm

Q#15: The command chmod 755 filename changes:
(A) File permissions
(B) File owner
(C) File size
(D) File type
Answer: (A) File permissions

Q#16: In Linux, file permissions are represented as:
(A) rwxrwxrwx
(B) 123456
(C) abcdef
(D) 000000
Answer: (A) rwxrwxrwx

Q#17: To view the manual of a command, use:
(A) man command_name
(B) help command_name
(C) guide command_name
(D) info command_name
Answer: (A) man command_name

Q#18: The command to check current running processes is:
(A) ps, top
(B) ls
(C) df
(D) free
Answer: (A) ps, top

Q#19: To terminate a process in Linux, you can use:
(A) kill PID
(B) stop PID
(C) exit PID
(D) end PID
Answer: (A) kill PID

Q#20: Linux supports multitasking:
(A) True
(B) False
Answer: (A) True

Q#21: Linux supports multiuser:
(A) True
(B) False
Answer: (A) True

Q#22: The command to display disk usage is:
(A) df, du
(B) disk
(C) usage
(D) ls
Answer: (A) df, du

Q#23: The mount command is used to:
(A) Attach a filesystem to the directory tree
(B) Start a process
(C) Display memory
(D) Shutdown system
Answer: (A) Attach a filesystem to the directory tree

Q#24: The umount command is used to:
(A) Detach a filesystem
(B) Attach a filesystem
(C) Move files
(D) Change permissions
Answer: (A) Detach a filesystem

Q#25: Linux supports which type of text editors?
(A) Vi/Vim, Nano, Emacs
(B) Notepad only
(C) Word only
(D) Excel only
Answer: (A) Vi/Vim, Nano, Emacs

Q#26: To check available memory in Linux, use:
(A) free -h
(B) memcheck
(C) df -h
(D) ls -m
Answer: (A) free -h

Q#27: The Linux kernel version can be checked by:
(A) uname -r
(B) kernelver
(C) version -k
(D) oscheck
Answer: (A) uname -r

Q#28: sudo command is used for:
(A) Running commands with superuser privileges
(B) Display files
(C) Copy files
(D) Delete files only
Answer: (A) Running commands with superuser privileges

Q#29: To check network configuration, use:
(A) ifconfig or ip addr
(B) netconfig
(C) netcheck
(D) ipconfig only
Answer: (A) ifconfig or ip addr

Q#30: To search text within files, use:
(A) grep
(B) find
(C) search
(D) locate
Answer: (A) grep

Q#31: To find files by name, use:
(A) find /path -name “filename”
(B) grep
(C) search
(D) locate only
Answer: (A) find /path -name “filename”

Q#32: To compress files in Linux, you can use:
(A) tar, gzip, bzip2
(B) zip only
(C) compress only
(D) rar only
Answer: (A) tar, gzip, bzip2

Q#33: Cron jobs in Linux are used for:
(A) Scheduling tasks
(B) Process termination
(C) Memory allocation
(D) Disk formatting
Answer: (A) Scheduling tasks

Q#34: /etc/passwd file contains:
(A) User account information
(B) Kernel modules
(C) Disk partitions
(D) Network settings
Answer: (A) User account information

Q#35: /etc/shadow file contains:
(A) Encrypted passwords
(B) Usernames only
(C) Kernel modules
(D) IP addresses
Answer: (A) Encrypted passwords

Q#36: Linux supports which file permission categories?
(A) Owner, Group, Others
(B) Admin only
(C) CPU only
(D) Disk only
Answer: (A) Owner, Group, Others

Q#37: The root user in Linux has:
(A) Full administrative privileges
(B) Limited permissions
(C) Read-only access
(D) Execute-only access
Answer: (A) Full administrative privileges

Q#38: To display the last lines of a file, use:
(A) tail filename
(B) head filename
(C) cat filename
(D) more filename
Answer: (A) tail filename

Q#39: To display the first lines of a file, use:
(A) head filename
(B) tail filename
(C) cat filename
(D) more filename
Answer: (A) head filename

Q#40: /var/log directory stores:
(A) System log files
(B) Temporary files
(C) User home files
(D) Kernel only
Answer: (A) System log files

Q#41: chmod 644 file.txt sets permissions:
(A) Owner read/write, group and others read-only
(B) All read/write
(C) Owner execute only
(D) Others execute only
Answer: (A) Owner read/write, group and others read-only

Q#42: chown user:group file changes:
(A) Owner and group of the file
(B) Permissions only
(C) File size
(D) File type
Answer: (A) Owner and group of the file

Q#43: df -h displays:
(A) Disk space in human-readable format
(B) Memory usage
(C) Process list
(D) CPU load
Answer: (A) Disk space in human-readable format

Q#44: ps aux shows:
(A) List of running processes
(B) Disk usage
(C) Memory statistics
(D) Network configuration
Answer: (A) List of running processes

Q#45: Linux supports which process scheduling types?
(A) Round-robin, FIFO, priority scheduling
(B) Only FIFO
(C) Only LIFO
(D) Only CPU-based
Answer: (A) Round-robin, FIFO, priority scheduling

Q#46: mount /dev/sdb1 /mnt does:
(A) Mounts sdb1 device at /mnt
(B) Formats the disk
(C) Deletes files
(D) Creates partitions only
Answer: (A) Mounts sdb1 device at /mnt

Q#47: To shutdown Linux immediately, use:
(A) shutdown -h now
(B) poweroff
(C) halt
(D) All of the above
Answer: (D) All of the above

Q#48: history command shows:
(A) Previously executed commands
(B) Disk usage
(C) File list
(D) CPU info
Answer: (A) Previously executed commands

Q#49: Linux supports which types of interprocess communication (IPC)?
(A) Pipes, message queues, shared memory, semaphores
(B) Disk only
(C) CPU only
(D) None
Answer: (A) Pipes, message queues, shared memory, semaphores

Q#50: The main advantage of Linux is:
(A) Open-source, secure, stable, multiuser and multitasking
(B) Proprietary software
(C) High cost
(D) Only single-user support
Answer: (A) Open-source, secure, stable, multiuser and multitasking

Contents Copyrights Reserved By T4Tutorials