Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Function of OS include: a. Execute and provide services for applications. b.

ID: 3682324 • Letter: 1

Question

1. Function of OS include:

a. Execute and provide services for applications.

b. Resource management

c. Standardization of user interface

2. Suppose the following files are in the current working directory: abc.tx, abcd.tx, bcd.tx, amm.doc, ammc.txt. What is the return result after executing command "ls a"?

a.) abc.txt

amm.doc

b.) abc.txt

abcd.txt

ammc.tx

c.)bcd.txt

3. Suppose a file 'test.tx' has the following lines as its content:

Hello World

What is going to be its content after executing the following two commands:

echo "Introduction to Linux"> test.txt

echo "Hello Linux" >> test.txt

a.) Hello World

Hello Linux

b.) Hello Linux

c.) Introduction To Linux

Hello Linux

Explanation / Answer

1). Ans: a, b, c

An operating system has three main functions: (1) manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software. Keep in mind, however, that much of the work of an operating system is hidden from the user; many necessary tasks are performed behind the scenes. In particular, the first listed function, managing the computer's resources, is taken care of without the user being aware of the details. Furthermore, all input and output operations, although invoked by an applications program, are actually carried out by the operating system. Although much of the operating system functions are hidden from view, you will know when you are using an applications software package, and this requires that you invoke-call into action-the operating system. Thus you both establish a user interface and execute software.

2). I have doubt whether it is ls a or ls -a . Please confirm my doubt.

3).

c.) Introduction To Linux

Hello Linux

echo - command used to print sentence to standard output console

input > output -> after execution of this line , input string will be in outut file. If file already exist, it will replace with new file

input >> outputfile -> this is equavalent to concatenation. input string will concatenate with data available in output file