# Unix Tutorial: Examples

Hi! I'm [Gleb Reys](https://gleb.reys.net) and this is my page for collecting examples of Unix/Linux commands in addition to [**Unix Tutorial**](https://www.unixtutorial.org) website.

## Time and Date Commands

* [**date**](/date.md) - show current date and time in any format you like
* [**uptime**](/uptime.md) - report system stats since last reboot or power on

## Working with Files and Directories

### Filesystem navigation

* **ls** - list files/directories
* **cd** - change directory
* **pwd** - confirm current directory

### File management

* **cp** - copy files/directories
* **rm** - remove files and directories
* **mv** - move (and rename) files/directories
* **chmod** - change access permissions
* **chown** - change ownership of a file or directory

### Working with files

* **cat** - show contents of a file; concatenate multiple files into one
* **grep** - find text information using patters
* **touch** - create empty file or refresh modification date for existing file
* **more** - pager for contolled browsing of a text file
* **less** - advanced pager for viewing text files

### Disk Usage

* **du** - show disk space consumed by a file or directory
* **df** - show disk usage (free space and inodes)

Project by [**Unix Tutorial**](https://www.unixtutorial.org)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://examples.unixtutorial.org/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
