Skip to content
GK24
Computer AwarenessMedium

Which of the following statements about MS-DOS and Linux is correct?

  1. A.Both are case sensitive in command and file names
  2. B.MS-DOS is multi-user while Linux is single-user
  3. C.Linux is case sensitive and multi-user while MS-DOS is neither
  4. D.Both use the backslash as the separator in a path

Correct answer

C. Linux is case sensitive and multi-user while MS-DOS is neither

Explanation

The correct answer is C. Linux treats upper and lower case as different, so a file named Report is not the same as report, and it is built as a multi-user, multitasking system in which several accounts can work at once with separate permissions and a login. MS-DOS ignores case and is a single-user, single-tasking system with no login at all in its plain form. Option A is wrong because MS-DOS is not case sensitive; DIR and dir do the same thing. Option B is wrong because it reverses the fact, since it is Linux that supports many users. Option D is wrong because the backslash is the DOS separator while Linux uses the forward slash, and in Linux the backslash instead marks an escape character. Two further differences are worth holding: MS-DOS is proprietary and discontinued, whereas Linux is free and open source under the GNU General Public Licence.

Read the full article: MS-DOS and Linux Commands: Internal, External and Shell

View all
Q5.Computer AwarenessMedium

In Linux, the command chmod 777 on a file gives which set of permissions?

  1. A.Read and write to the owner only
  2. B.Read, write and execute to the owner, the group and others
  3. C.Read and execute to everyone, write to nobody
  4. D.Execute to the owner, read to the group, nothing to others
Show answer
Correct answer: B. Read, write and execute to the owner, the group and others

In the numeric form of chmod each of the three digits stands for one set of users, in the order owner, group and others, and each digit is the sum of read as 4, write as 2 and execute as 1.