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 betaThe output of the last command will be:
Mathematics Information Technology SAME. | |
Mathematics Information Technology. | |
Information Technology. | |
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 ?
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 ?
Only I is correct. | |
Only II is correct. | |
Both I and II are correct. | |
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
Every operation on a file is instantly visible to all processes | |
No changes are visible to other processes until the file is closed | |
These are best suited for centralized systems | |
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.
