Where are system and mail log files typically located in Red Hat Linux ?
Show answer Hide answer
Answer: A. /var/log
Explanation
The standard directory for storing system and mail log files in Linux is var log. Log daemons write event records, authentication attempts, and mail delivery reports here. Centralizing logs in this directory simplifies system auditing and troubleshooting procedures. The var hierarchy contains variable data files including logs, temporary caches, and spools. System logging services organize operational messages into dedicated text files for review. Disk space usage in this directory can grow large over time if log rotation fails.
Security analysts inspect authentication logs in this directory to detect unauthorized login attempts. System administrators monitor system logs regularly to identify hardware errors and software failures. Configuring log rotation prevents log files from consuming all available disk storage space. Option B points to an incorrect configuration path that does not store system log files. Option C points to a nonstandard root directory location rather than the var directory. Option D is incorrect because only the first option represents the proper log storage path.
- Subject
- Computer Science
- Category
- Software Engineering
- Topic
- —
- Difficulty
- medium
Related questions
Q1. Which command forces all filesystem buffers to be written out to disk ?
Show answer Hide answer
Answer: B. sync
The sync command forces the operating system kernel to flush cached buffers to disk. Executing this instruction writes all pending filesystem data from memory to storage media. System operators run this utility to ensure...
Q2. Which command navigates into a directory whose name begins with the letter ‘p’ ?
Show answer Hide answer
Answer: C. cd p*
The asterisk acts as a wildcard matching any character sequence following the initial letter p. Combining cd with a wildcard pattern directs the shell to enter the first matching directory entry. Shell globbing expands p...
Q3. Name service resolution order is configured in which file?
Show answer Hide answer
Answer: C. /etc/nsswitch.conf
The file /etc/nsswitch.conf configures name service resolution order for system lookups. Operating systems check this file to determine whether to query local files, DNS, or LDAP. Service databases like hosts, passwords,...
Q4. When located within the programs directory, which command copies the three files wb, collect, and mon into the misc directory under their original names ?
Show answer Hide answer
Answer: B. cp wb collect mon ../misc
The cp command accepts multiple source file names followed by a target directory argument. This syntax copies all specified source files directly into the destination folder. Original filenames are preserved when transfe...
Q5. Transmitting email messages between servers relies upon what TCP/IP protocol?
Show answer Hide answer
Answer: C. SMTP
SMTP establishes the standard communication rules required for routing email messages between independent servers. Mail transfer agents rely on this protocol to deliver outbound messages across internet boundaries reliab...
Q6. Which command removes all files in the working directory along with every file and subfolder contained within its subdirectories ?
Show answer Hide answer
Answer: B. rm -r *
The command rm -r * recursively removes all files and subdirectories inside the working directory. Adding the recursive flag allows the removal tool to traverse and delete nested folder structures. Executing this command...