Linux-Operating-systems

Question 1

Consider the execution of the following commands in a shell on a linux operating system.

system
bash$cat alpha
Mathematics
bash$in alpha beta
bash$ rm alpha
bash$cat >> beta << SAME
Information Technology
SANE
bash$ cat beta
The output of the last command will be:
A
Mathematics Information Technology SAME.
B
Mathematics Information Technology.
C
Information Technology.
D
Information Technology SAME.
Question 1 Explanation: 
Note: Out of syllabus.
Question 2
In Unix, files can be protected by assigning each one a 9-bit mode called rights bits. Now, consider the following two statements:

I. A mode of 641 (octal) means that the owner can read and write the file, other members of the owner’s group can read it, and users can execute only.

II. A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access.

Which of the following options is correct with reference to the above statements ?
A
Only I is correct.
B
Only II is correct.
C
Both I and II are correct.
D
Both I and II are incorrect.
Question 2 Explanation: 
To change file permissions we are using chmod and chown. To display all permissions using ls -l command.



Question 3
UNIX semantics for shared file access are characterized by
A
Every operation on a file is instantly visible to all processes
B
No changes are visible to other processes until the file is closed
C
These are best suited for centralized systems
D
Every operation on a file is instantly visible to all processes and these are best suited for centralized systems
There are 3 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access