Unix/Linux File Systems and Commands

Covers Unix/Linux operating system fundamentals including file systems, inodes, file permissions, storage devices, and essential command-line utilities

20 Questions Published

Questions

Question 1 True/False

Grep usually takes the input from another command (usually content of file or folders etc) where Find works without taking input from another command

  1. True
  2. False
Question 2 Multiple Choice (Single Answer)

The tar command archives and extracts files to and from a single file called a tarfile.

  1. Yes, Correct
  2. No This is for JAR command
  3. TAR and JAR are same
  4. none of these
Question 3 Multiple Choice (Single Answer)

which is faster

  1. cpio
  2. mv
  3. cpip
  4. cp
Question 4 Multiple Choice (Single Answer)

Default time in UNIX is called

  1. EPOCH
  2. JULIAN
  3. Both the above
  4. None of the above
Question 5 Multiple Choice (Single Answer)

current user -> test, base user -> root which of the following is correct

  1. whoami will display root
  2. who am i will display test
  3. who am i will display root
  4. None of the above
Question 6 Multiple Choice (Single Answer)

script command is

  1. used to record/spool your session
  2. create a new login session
  3. No such command exists
  4. a &  b are correct
Question 7 Multiple Choice (Single Answer)

giving the command cd , what will be the action of the shell

  1. it will change directory to user home directory
  2. it will give out an error
  3. it will remain silent
  4. both a & b
Question 8 Multiple Choice (Single Answer)

how to create a directory test and its child subtest using a single command

  1. mkdir /test/subtest
  2. mkdir -P /test/subtest
  3. mkdir -p /test/subtest
  4. none of the above
Question 9 Multiple Choice (Single Answer)

will the command cd* work

  1. Yes under certain circumstances.
  2. No.
  3. I Dont Know
  4. cd command will not work with * switch
Question 10 Multiple Choice (Single Answer)

In Unix, files on a file-system are accessible before mouting ?

  1. Yes, they are visible
  2. No, files are not visible before mouting
  3. Sometimes they are visible
  4. It depends on booting option
  5. It depends on file system
Question 11 Multiple Choice (Single Answer)

File access permission 100 implies that:

  1. Read only access for Others
  2. Read only access for Group
  3. Read only access for Owner
  4. Read only access for everyone
Question 12 Multiple Choice (Single Answer)

inode contains following information

  1. File mode
  2. file size
  3. File Creation time
  4. File access time
  5. File links count
  6. all of the above
Question 13 Multiple Choice (Single Answer)

inode contains ____ direct pointers to data blocks of file data

  1. 10
  2. 12
  3. 15
  4. 8
Question 14 Multiple Choice (Single Answer)

Blocks pointing to data blocks (single indirect, double indirect) are collectively known as ______

  1. Pointer data
  2. Metadata
  3. Information data
  4. backup data
Question 15 Multiple Choice (Single Answer)

If your file size is (12*size of one block) or less, how many indirect pointing blocks do you need ?

  1. 1
  2. 0
  3. 4
  4. 8
Question 16 Multiple Choice (Single Answer)

If in an Indirect pointer block has:1) address is of 2 bytes and 2)one block is of 1024 bytes, then how many pointers to indirect blocks can this block have ?

  1. 400
  2. 512
  3. 1024
  4. 2048
Question 17 Multiple Choice (Single Answer)

File access permisions are grouped in this sequence:

  1. Owner, Group, others
  2. Owner, others, group
  3. Group, others, owner
  4. Owner, Group, others,everyone
Question 18 Multiple Choice (Single Answer)

Tape is a ____ access type of storage media

  1. Random access media
  2. Sequential access media
  3. Depending on Filesystem, it is sequential of Random access
  4. Depends on boot sequence
Question 19 Multiple Choice (Single Answer)

A Snapshot takes _______ copy of the file system.

  1. Last night's copy
  2. Today morning's copy
  3. Point in time copy
  4. data copy
Question 20 Multiple Choice (Single Answer)

How many devices can be connected through SCSI cable according to SCSI-1

  1. 8
  2. 16
  3. 32
  4. 64