Linux Command Line Tutorial
The Linux command line is a powerful interface for interacting with the operating system. Here are
essential commands and their practical use cases.
**1. File Handling Commands**
- `ls` List directory contents
- `cp source destination` Copy files
- `mv oldname newname` Move/Rename files
- `rm filename` Remove a file
**2. Process Management**
- `ps aux` View running processes
- `kill PID` Terminate a process
- `top` Display active system processes
**3. User Permissions and chmod**
Permissions in Linux are assigned using Read (r), Write (w), and Execute (x).
- Example: `chmod 755 [Link]` gives read/write/execute to the owner and read/execute to others.
**4. Networking Commands**
- `ping [Link]` Check internet connectivity
- `curl [Link]` Fetch data from a URL
- `netstat -tulnp` View open ports
**5. Shell Scripting Basics**
Bash scripting automates tasks.
- Example:
```bash
#!/bin/bash
echo "Hello, Linux!"
```
Mastering these commands allows efficient Linux system management.