## Touching Files

Creating, Moving, and Destroying files.

### Creating
1.  `touch file.txt`: Creates an empty file.
2.  `mkdir foldername`: Creates a directory (Make Directory).
3.  `echo "Hello" > file.txt`: Creates a file containing "Hello".

### Reading
1.  `cat file.txt`: Dumps the whole file to screen. Good for small files.
2.  `less file.txt`: Opens a paginated viewer. Scroll with arrows. Quit with `q`. Good for huge logs.
3.  `head file.txt`: Shows first 10 lines.
4.  `tail file.txt`: Shows last 10 lines.
    *   `tail -f /var/log/syslog`: **Follow**. Shows new lines as they are written in real-time. Crucial for debugging.

### Moving & Renaming
Linux uses `mv` for both.
*   **Move**: `mv file.txt /tmp/` (Moves file to tmp).
*   **Rename**: `mv file.txt newname.txt` (Moves file to same place with new name).

### Copying
*   `cp file.txt file_backup.txt`
*   `cp -r folder/ folder_backup/` (Recursive copy for directories).

### Deleting (The Dangerous Part)
*   `rm file.txt`: Remove file. **There is no Recycle Bin**. It is gone.
*   `rm -r folder/`: Remove directory.
*   `rm -rf /`: **The Forbidden Command**. Recursively Force remove Root. Deletes the entire OS. Do not run this.

### Hidden Files
In Linux, any file starting with `.` is hidden.
*   `.bashrc`: Your shell configuration.
*   `.ssh/`: Your keys.
You must use `ls -a` to see them.