Beruflich Dokumente
Kultur Dokumente
Answer : A.
Answer : C.
Answer : A.
4)User id 0 is
a)An innvalid user id
b)The id of the root user
c)The id of a user when the user's account is deleted
d)None of the above
Answer : B.
Answer :B.
6)Executing the 'cd ..' command when at the root level causes
a)Error message indicating the user can't access beyond the root level
b)Behavior is unix-flavor dependent
c)Results in changing to the 'home' directory
d)Nothing happens
Answer : D.
Answer : A.
Answer :A.
Answer : C.
Answer : B.
Description: In a typical unix file system, every filesystem has one superblock only.
There may be a redundant superblock to protect against failures
11)A filename is modified using the command “mv filea fileb”, where fileb already
exists. In this scenario, which of the following is true?
a)fileb’s inode number is changed to filea’s inode number
b)fileb’s inode number does not change, remains the same the old fileb
c)The inode entry for fileb is not affected by this command
d)None of the above
Answer :A.
Description: fileb has the inode number that filea had earlier and the inode entry of fileb
is released to the kernel.
Answer :A.
Description: Inodes are unique within a filesystem, the kernel maintains the free inodes
list and reallocates them when needed
13)A user creates a large data file ( ~ 1 MB size). Which of the following is true
regarding the storage of this file on disk?
a)The file is stored in contiguous data disk blocks
b)The file is stored in disk blocks that are not contiguous, the disk blocks maintain the
pointer to the next storage block
c)The inode information alone is not sufficient to identify all the disk blocks
d)The file is stored in disk blocks that may not be contiguous, the inode keeps track of
where the data blocks are
Answer:D.
Description: The file is stored in disk data blocks that may not be contiguous, the details
of these are stored in the inode addressing information
Answer:B.
Description: Since the setuid bit is set for /usr/bin/passwd, the program runs as root. Root
has access to update the /etc/passwd file.
Answer:D.
Description:This command can be run only by the owner of the file( or root), and it adds
execute permission for all
Answer:B.
Description: For deleting a file, directory write permission is sufficient, irrespective of
file write permissions. The system prompts for user confirmation if there is no file write
permission
17)A user creates a link to a file file1 using the following command “ln file1
file2”.Which of the following is true of a ls –ali output on this directory? The directory
does not contain any other files or directories.
a)file1 and file2 have the same inode numbers
b)The number of links for file1 is displayed as 1
c)The number of links for the directory (.) is displayed as 3
d)a & c
Answer:A. Files that are hard—linked have the same inode number.The number of links
field is 2 for both file1 and file2.The number of links displayed for the directory is not
incremented because of the links created in files in the directory.
18)A user does a chmod operation on a file. Which of the following is true?
a)The last accessed time of file is updated
b)The last written time of file is updated
c)The inode access time of file is updated
d)a & c
Answer:C.
Description: The file contents are not accessed or updated, hence file access/write times
are not updated. The permissions info is stored in the inode, hence the inode time is
updated.
Answer:B.
Description: Initialized global data is stored as part of data segment;Local variables are
stored on stack
Answer:D.