Basic File Attributes: Settings Associated with Computer Files that Grant or Deny Certain Rights

This is a computer science engineering quiz on UNIX, which includes questions on the basic file attributes in UNIX i.e, the settings associated with the computer files that grant or deny certain rights.

images.jpg
Start Quiz

An attribute is a specification of an object that defines its property.

True False

Which command is used to list the attributes of a file?

cp list ls attr

In how many categories are links divided?

1 2 4 0

Soft linked files are provided with different inode number as the original one.

True False

Which option is used with ls command to list the directory attributes rather than its contents?

-b -a -l -d

A file contains 1026 bytes. How many bytes of disk space will it consume if size of a disk block is 1024 bytes?

1026 1024 2048 4096

File attributes are of major concern as compared to directory attributes while performing operations on file system.

True False

Which command is used to change the ownership of a file?

chmod change ch chown

Which of the following is invalid filename?

shutry TRY trial my .file None of the above

Which set option is used with vi editor to display line numbers on screen?

nm nu ic li None of the above

Which of the following set options is used with vi editor to ignore case while searching for patterns?

ic ai sm ts None of the above

Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?

chmod 761 note chmod 671 note chmod 167 note chmod 4=rwx, g=rw note None of the above

Which of the following commands is used to display the directory attributes rather than its contents?

ls -l -d ls -l ls -x ls -F None of the above

Which one of the following is not an attribute displayed by ls command?

File permissions

File ownership

Links

Word count of file

What are links referred to as in file attributes?

Number of filenames of a single file that are maintained by the system

Number of duplicates of a single file

Number of copies of a single file

Number of files present in a directory

Quiz/Test Summary
Title: Basic File Attributes: Settings Associated with Computer Files that Grant or Deny Certain Rights
Questions: 15
Contributed by:
james