water baloon 4

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

[APUE03] Which one of the following choices is NOT correct about i-node.

Unix does not have v-node. Instead, a generic i-node structure is used.

[APUE04] Which one of the following statements is NOT correct?

Any user can create a hard or symbolic link to a directory.

[APUE03] Which one of the following statements is NOT correct?

Associated with each file descriptor are the file descriptor flags and a pointer to a file table entry, and inode.

[APUE03] For file IO with buffering, consider the following statistics for a benchmark. The file was read using the program here with standard output redirected to /dev/null. The file system used for this test was the Linux ext4 file system with 4,096-byte blocks. Which one of the following statements is NOT correct?

Bigger the buffer size means better in performance evidenced in this statistics.

[APUE03] With File "open" call, this option ____ generates an error if path doesn't refer to a directory.

O_DIRECTORY

[APUE04] Which one of the following statements is not correct?

Given a pathname, the function nstat obtains the information about the named file.

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access. The file access tests that the kernel performs each time a process opens, creates, or deletes a file depend on the owners of the file (st_uid and st_gid), the effective IDs of the process (effective user ID and effective group ID), and the supplementary group IDs of the process, if supported. The two owner IDs are properties of the file, whereas the two effective IDs and the supplementary group IDs are properties of the process. The tests performed by the kernel are as follows:

If the process is executing the file, the user-execute bit must be on if the process group ID of the process equals the group ID of the file (i.e., the process group owns the file).

[APUE03] Which one of the following choices is NOT correct about v-node?

In SVR4, the v-node replaced the file system-independent i-node of SVR3. Solaris is derived from SVR4 and, therefore, uses i-nodes only.

[APUE04] Which one of the following statements is NOT correct?

In all modern systems, chown does not follow symbolic links.

[APUE03] Which one of the following statements is NOT correct?

In general, the term atomic operation refers to an operation consisting of multiple steps where each step can be interruptible for an atomic signal.

[APUE04] Which one of the following statements is NOT correct? Consider umask command.

Like the octal format with umask command, the symbolic format specifies which permissions are to be denied (i.e., clear in the file creation mask) instead of which ones are to be denied (i.e., set in the file creation mask).

[APUE03] With File "open" call, this option ____ creates the file if it doesn't exist.

O_CREAT

[APUE03] With File "open" call, this option ____ generates an error if O_CREAT is also specified and the file already exists. This test for whether the file already exists and the creation of the file if it doesn't exist is an atomic operation.

O_EXCL

[APUE03] With File "open" call: if path refers to a FIFO, a block special file, or a character special file, this option ___ sets the nonblocking mode for both the opening of the file and subsequent I/O.

O_NONBLOCK

[APUE03] Which one of the following statements is NOT correct? Consider the following figure.

One reason each process gets its own file table entry is so that each process can share its own current file IO status with the other.

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access, and chmod command.

Read permission lets us read the directory, obtaining and searching through a list of all the filenames in the directory.

[APUE04] ___ is a type of file that points to another file.

Symbolic link

[APUE03] With File "lseek" call, which one of the following statements is not correct?

The "current file offset" is initialized to 0 and the next write pointer is set to the end of the file if the O_APPEND option is specified.

[APUE04] Which one of the following statements is NOT correct? Consider the following commands. $ ln -s /no/such/file myfile $ ls myfile myfile $ cat myfile cat: myfile: No such file or directory $ ls -l myfile lrwxrwxrwx 1 sar 13 Jan 22 00:26 myfile -> /no/such/file

The "ln" command creates a symbolic link. Here a symbolic link is created to point a file named "myfile."

[APUE04] Which one of the following statements is not correct? Consider the file and/or directory access, and chmod command.

The chmod command is typically used to modify the six permission bits.

[APUE04] Every process has six or more IDs associated with it. This ____ determines one's file access permissions.

The effective user ID and the effective group ID

[APUE04] Which one of the following statements is NOT correct?

The function which removes a directory entry is always called "delete."

[APUE04] Which one of the following statements is NOT correct? Using mkdir command, testdir has been just created. Consider the figure below as a result.

The i-node whose number is 2549 has a type field of ''directory'' and a link count equal to 3.

APUE03] Which one of the following statements is NOT correct? Consider Unix file IO (e.g., read and write).

The lseek function modifies only the current file offset in the file table entry. It forces I/O take place.

[APUE03] With "read" function, which one of the following statements is NOT correct?

The number of bytes actually read is always same as the amount requested for a successful read.

[APUE04] Every process has six or more IDs associated with it. ____ identify who we really are. These two fields are taken from our entry in the password file when we log in. Normally, these values don't change during a login session, although there are ways for a superuser process to change them.

The real user ID and the real group ID

[APUE04] Which one of the following statements is NOT correct? Consider umask bits.

The umask value 0700 is to allow the user (owner) to read, write, or execute the files

[APUE03] Which one of the following statements is NOT correct?

This convention of the designation of the file descriptors 0,1,2 (of a running process) is a standard and feature of the UNIX kernel.

[APUE04] Which one of the following statements is NOT correct? Consider the file and/or directory access.

To delete an existing file, we need only the write permission for the file itself.

[APUE04] Which one of the following statements is not correct? Consider umask.

To ensure that anyone can read a file, we should set the umask to 0777.

[APUE03] With "lseek" call, which one of the following statements is NOT correct?

Using the file's offset greater than the file's current size, one can create a hole in a file and is not allowed as a legal file operation.

[APUE03] With "read" function, consider the cases for the number of bytes actually read is less than the amount requested. Which one of the following statements is NOT correct?

When reading a full data done but a signal may cause its partial data to be lost.

[APUE03] Which one of the following statements is NOT correct? Consider the following dup and dup2 calls. #include <unistd.h> int dup(int fd); int dup2(int fd, int fd2);

With dup2, if fd2 is already open, it will generate FD_CLOEXEC to close the file and then open it.

[APUE03] Which one of the following statements is NOT correct? The kernel maintains a file table for all open files of which each file table entry contains _____.

a file descriptor

[APUE03] Which one of the following statements is correct? The following figure shows ____.

how two processes can share a file

[APUE03] Which one of the following statements is NOT correct? With FreeBSD 8.0, Linux 3.2.0, Mac OS X 10.6.8, and Solaris 10, the limit of the maximum number of file descriptors is ___.

incremented by the multiples of file block size

[APUE04] On contemporary systems, the use of ___ has been extended. The Single UNIX Specification allows this bit to be set for a directory. If this is set for a directory, a file in the directory can be removed or renamed only if the user has write permission for the directory and meets one of the following criteria: (a) Owns the file, (b) Owns the directory, and (c) Is the superuser.

the sticky bit

[APUE04] The directories /tmp and /var/tmp are typical candidates for ___. These are directories in which any user can typically create files. The permissions for these two directories are often read, write, and execute for everyone (user, group, and other). But users should not be able to delete or rename files owned by others.

the sticky bit

[APUE04] The ____ function sets the file mode creation mask for the process and returns the previous value.

umask

[APUE04] Which one of the following statements is not correct? The stat function returns ___ of the following file information.

v-node number


Set pelajaran terkait

BUS221: Chapter 3 quiz- Courts, ADR, Court procedures

View Set

Chapters 5 (test2) study questions

View Set

Chapter 55: Management of Patients With Urinary Disorders

View Set

Word Chapter 2 Formatting Characters and Paragraphs

View Set