0% found this document useful (0 votes)
14 views3 pages

Linux OS Characteristics and Commands

Uploaded by

rakshaamin02
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Linux OS Characteristics and Commands

Uploaded by

rakshaamin02
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Operating System

principles of operating system

1. Which of the following is NOT a function of an operating system?


Answer: D) Data encryption
2. Which of the following is the primary function of an operating system's scheduler?
Answer: C) To decide which process runs next
3. Which of the following types of operating system handles multiple processes
simultaneously?
Answer: C) Multi-User Operating System
4. In a virtual memory system, what is the primary purpose of paging?
Answer: B) To make large processes fit into smaller available physical memory
5. Which scheduling algorithm gives the lowest average waiting time?
Answer: B) Shortest Job First (SJF)
6. Which of the following is a characteristic of a real-time operating system (RTOS)?
Answer: B) It is designed to handle events or inputs within a specific time constraint
7. Which of the following is NOT an example of an operating system?
Answer: D) Python
8. What does the kernel of an operating system do?
Answer: B) Coordinates the activities of the computer hardware and software
9. Which of the following is a type of process state in an operating system?
Answer: A) Ready
10. Which of the following is a key advantage of using an operating system?
Answer: A) It allows communication between the hardware and software

Linux and shell scripting

1. Which command is used to display the contents of a file in Linux?


Answer: A) cat
2. What is the default shell in most Linux distributions?
Answer: C) Bash
3. Which command is used to display the current working directory in Linux?
Answer: A) pwd
4. In Linux, which file is used for storing user information such as username and password?
Answer: B) /etc/passwd
5. Which of the following commands is used to change file permissions in Linux?
Answer: A) chmod
6. Which symbol is used to redirect output to a file, overwriting its contents in Linux?
Answer: A) >
7. How can you display a list of all files, including hidden files, in a directory in Linux?
Answer: B) ls -a
8. What is the purpose of the grep command in Linux?
Answer: B) To find text within files
9. Which of the following is the correct syntax for defining a variable in a shell script?
Answer: C) var=10
10. What is the purpose of the echo command in shell scripting?
Answer: A) To display text on the screen
11. How do you make a shell script executable in Linux?
Answer: B) chmod +x [Link]
12. Which of the following operators is used to perform logical AND in a shell script?
Answer: A) &&
13. Which command is used to display the manual page for a command in Linux?
Answer: A) man
14. How do you add a comment in a shell script?
Answer: A) # comment
15. What is the exit status of a successful command in Linux?
Answer: A) 0
16. Which of the following is a valid way to access the first argument passed to a shell script?
Answer: A) $1
17. What does the top command do in Linux?
Answer: A) It displays system resource usage and active processes
18. Which command in Linux is used to search for files in a directory hierarchy?
Answer: A) find
19. Which of the following is used to compare two files in Linux?
Answer: C) diff
20. What is the purpose of the alias command in Linux?
Answer: B) To define a shortcut for a command

windows administration

1. Which command is used to check the status of the network connection in Windows?
Answer: A) ping
2. Which of the following tools is used to manage Windows services?
Answer: B) [Link]
3. In Windows, what does the ipconfig command do?
Answer: A) Displays the network configuration settings
4. What is the purpose of the Windows Event Viewer?
Answer: B) To display system logs and event information
5. Which of the following is used to assign rights to users in a Windows environment?
Answer: B) Local Security Policy
6. Which of the following is a valid file system for Windows?
A) NTFS
B) FAT32
C) exFAT
D) All of the above Answer: D) All of the above

7. Which of the following commands is used to restart a Windows computer from the
command prompt?

Answer: A) shutdown -r
7. What is the default port for Remote Desktop Protocol (RDP) in Windows?
Answer: C) 3389
8. Which utility is used to configure and manage Windows user accounts?
Answer: D) Local Users and Groups
9. What does the netstat command display in Windows?
Answer: A) Network statistics and connections
10. Which of the following is the correct method to shut down a Windows system
immediately from the command prompt?
Answer: A) shutdown -t 0
11. What is the main purpose of the Windows Task Scheduler?
Answer: B) To automate system processes at scheduled times
12. What is the main purpose of the Windows Task Scheduler?
Answer: B) To automate system processes at scheduled times
13. What does the chkdsk command do in Windows?
Answer: B) Scans and repairs disk errors
14. Which of the following tools is used to configure Windows Group Policies?
Answer: A) [Link]
15. Which of the following commands is used to find and fix Windows system file corruption?
Answer: A) sfc /scannow
16. Which of the following is the tool for managing disk partitions in Windows?
Answer: A) Disk Management
17. Which Windows tool is used to manage and view system performance?
Answer: D) Performance Monitor
18. What is the function of the Windows "Run" dialog box?
A) To open applications and documents quickly
B) To execute system commands
19. Which of the following is the default account used to log on to a Windows system?
Answer: B) Administrator
20. What is the purpose of the Windows Firewall?
Answer: B) To block unauthorized network traffic

You might also like