CORRECT SOLUTIONS||100%
GUARANTEED PASS||UPDATED
2026/2027 SYLLABUS||<<NEWEST
VERSION>>
[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.
The chmod command allows one to specify u for user (owner), g for group, and o
for other.
The three categories (read, write, and execute) are used in various ways by
different functions with the chmod command.
Whenever we want to open any type of file by name, we must have execute
permission in each directory mentioned in the name, including the current
directory, if it is implied.
The excute-permission bit for a directory is often called the search bit. - ANSWER
✓ The chmod command is typically used to modify the six permission bits.
[APUE04] Which one of the following statements is NOT correct?
Consider the following commands.$ ln -s /no/such/file myfile$ ls myfilemyfile$
cat myfilecat: myfile: No such file or directory$ ls -l myfilelrwxrwxrwx 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."
The file "myfile" does exist, yet cat says there is no such file, because "myfile" is a
symbolic link.
Here the file pointed to by the symbolic link doesn't exist.
The -l option to "ls" command gives us one hint: the first character is an l, which
means a symbolic link.
The -l option to "ls" command gives us one hint: the sequence -> also indicates a
symbolic link.
The ls command with option (-F) that appends an at-sign (@) to filenames that are
symbolic links. - ANSWER ✓ The "ln" command creates a symbolic link. Here a
symbolic link is created to point a file named "myfile."
, [APUE04] Every process has six or more IDs associated with it. This ____
determines one's file access permissions.
The real user ID and the real group ID
The effective user ID and the effective group ID
The saved set-user-ID and the saved set-group-ID
The virtual user ID and the virtual group ID
The system user ID and the system group ID - ANSWER ✓ The effective user ID
and the effective group ID
[APUE04] Which one of the following statements is NOT correct?
There are two types of links: hard link and symbolic link.
Any user can create a hard or symbolic link to a directory.
A symbolic link is an indirect pointer to a file.
A hard link points directly to the i-node of the file.
Hard links normally require that the link and the file reside in the same file system.
- ANSWER ✓ Any user can create a hard or symbolic link to a directory.
[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 directory access bit
the user write bit
the user execute bit
the sticky bit
the special bit - ANSWER ✓ the sticky bit
[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 effective user ID of the process is 0 (the superuser), access is allowed. This
gives the superuser free rein throughout the entire file system.
,If the effective user ID of the process equals the owner ID of the file (i.e., the
process owns the file), access is allowed if the appropriate user access permission
bit is set. Otherwise, permiss - ANSWER ✓ 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).
[APUE04] Every process has six or more IDs associated with it. ____ contain
copies of the effective user ID and the effective group ID, respectively, when a
program is executed.
The real user ID and the real group ID
The effective user ID and the effective group ID
The saved set-user-ID and the saved set-group-ID
The virtual user ID and the virtual group ID
The system user ID and the system group ID - ANSWER ✓ The saved set-user-ID
and the saved set-group-ID
[APUE04] Which one of the following statements is NOT correct?Consider the
file and/or directory access, and chmod command.
To open the file /usr/include/stdio.h, we need execute permission in the directory /,
execute permission in the directory /usr, and execute permission in the directory
/usr/include.
If the current directory is /usr/include, then we need execute permission in the
current directory to open the file stdio.h.
Read permission lets us read the directory, obtaining and searching through a list
of all the filenames in the directory.
Execute permission lets us pass through the directory when it is a component of a
pathname that we are trying to access (in order to search the directory to look for a
specific filename).
If the PATH environment variable specifies a directory that does not have execute
permission enabled, the shell will never find executable files in that directory. -
ANSWER ✓ 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.
Regular file
Directory file
Block Special file
Character Special file
FIFO
, Socket
Symbolic link - ANSWER ✓ Symbolic link
[APUE04] Which one of the following statements is NOT correct?
Symbolic links are typically used to ''move'' a file or an entire directory hierarchy
to another location on a system.
If the function follows a symbolic link, a pathname argument to the function refers
to the file pointed to by the symbolic link.
In all modern systems, chown does not follow symbolic links.
There are no file system limitations on a symbolic link and what it points to.
Anyone can create a symbolic link to a directory. - ANSWER ✓ In all modern
systems, chown does not follow symbolic links.
[APUE04] ____ is a type of file providing unbuffered I/O access in variable-sized
units to devices. All devices on a system are either block special files or character
special files.
Regular file
Directory file
Block Special file
Character Special file
FIFO
Socket
Symbolic link - ANSWER ✓ Character Special file
[APUE04] ____ is a type of file used for communication between processes. It's
sometimes called a named pipe.
Regular file
Directory file
Block Special file
Character Special file
FIFO
Socket
Symbolic link - ANSWER ✓ FIFO
[APUE04] ___ is a type of file used for network communication between
processes. ___ can also be used for non-network communication between
processes on a single host.
Regular file
Directory file