https://drive.google.com/file/d/1Qwg-3z3MoEkOcfQkuXlJikoH4UrtCzpr/view?usp=sharing

1. Command Syntax Structure

Explanation

Every Linux command follows a standard structure that helps you understand how to use it correctly. Knowing this syntax is essential for using commands effectively and troubleshooting issues.

Command Structure

command [options] <arguments>

Note: Square brackets [ ] indicate optional elements. Angle brackets < > indicate required arguments.


2. Using the man Command (Manual Pages)

Explanation

The man command displays the manual pages (documentation) for any command, configuration file, or system service. This is the most reliable source of detailed information about how a command works, its options, and examples.

Basic Usage

man <command_or_file>

Examples

man cat          # Shows manual for the 'cat' command
man route        # Shows manual for the 'route' command
man lsblk        # Shows manual for the 'lsblk' command
man rsyslog.conf # Shows manual for the rsyslog configuration file
man sshd         # Shows manual for the SSH daemon

Lab Steps

  1. Open a terminal.