> For the complete documentation index, see [llms.txt](https://tingreavinash.gitbook.io/the-tech-toolbox/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tingreavinash.gitbook.io/the-tech-toolbox/developer-reference/linux.md).

# Linux

### Basic Commands

<table><thead><tr><th width="209">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>ls</code></td><td>List files and directories in current directory.</td></tr><tr><td><code>cd</code></td><td>Change directory.</td></tr><tr><td><code>pwd</code></td><td>Print working directory.</td></tr><tr><td><code>mkdir</code></td><td>Make a new directory.</td></tr><tr><td><code>touch</code></td><td>Create a new file.</td></tr><tr><td><code>cat</code></td><td>Display the contents of a file.</td></tr><tr><td><code>cp</code></td><td>Copy files or directories.</td></tr><tr><td><code>mv</code></td><td>Move or rename files or directories.</td></tr><tr><td><code>rm</code></td><td>Remove files or directories.</td></tr><tr><td><code>sudo</code></td><td>Run a command with administrative privileges.</td></tr></tbody></table>

### System Information

<table><thead><tr><th width="189">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>uname</code></td><td>Print system information.</td></tr><tr><td><code>df</code></td><td>Report file system disk space usage.</td></tr><tr><td><code>top</code></td><td>Display system resource usage.</td></tr><tr><td><code>ps</code></td><td>Report a snapshot of the current processes.</td></tr><tr><td><code>whoami</code></td><td>Print current user name.</td></tr></tbody></table>

### Network and Internet

<table><thead><tr><th width="196">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>ping</code></td><td>Test network connectivity.</td></tr><tr><td><code>ifconfig</code></td><td>Display network interface configuration.</td></tr><tr><td><code>netstat</code></td><td>Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.</td></tr><tr><td><code>dig</code></td><td>DNS lookup utility.</td></tr><tr><td><code>wget</code></td><td>Download files from the Internet.</td></tr></tbody></table>

### Compression and Archives

<table><thead><tr><th width="202">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>tar</code></td><td>Manipulate archives in the tar format.</td></tr><tr><td><code>gzip</code></td><td>Compress or decompress files using gzip algorithm.</td></tr><tr><td><code>zip</code></td><td>Compress files into ZIP archive format.</td></tr><tr><td><code>unzip</code></td><td>Extract files from a ZIP archive.</td></tr></tbody></table>

### Text Manipulation

<table><thead><tr><th width="207">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>grep</code></td><td>Search files for a particular pattern.</td></tr><tr><td><code>sed</code></td><td>Stream editor for filtering and transforming text.</td></tr><tr><td><code>awk</code></td><td>Pattern scanning and text processing language.</td></tr><tr><td><code>cut</code></td><td>Select sections from each line of a file.</td></tr><tr><td><code>sort</code></td><td>Sort lines of text files.</td></tr></tbody></table>

### File Permissions

<table><thead><tr><th width="207">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>chmod</code></td><td>Change file permissions.</td></tr><tr><td><code>chown</code></td><td>Change file ownership.</td></tr><tr><td><code>chgrp</code></td><td>Change group ownership of file.</td></tr></tbody></table>

### Miscellaneous

<table><thead><tr><th width="239">Command</th><th>Description</th></tr></thead><tbody><tr><td><code>history</code></td><td>Show command history.</td></tr><tr><td><code>man</code></td><td>Display manual pages.</td></tr><tr><td><code>date</code></td><td>Print or set the system date and time.</td></tr><tr><td><code>echo</code></td><td>Print a message to the screen.</td></tr><tr><td><code>exit</code></td><td>Exit the current shell.</td></tr></tbody></table>

These are just a few examples of common Linux commands. There are many more commands available, and each command has additional options and arguments that can be used to tailor its behavior.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://tingreavinash.gitbook.io/the-tech-toolbox/developer-reference/linux.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
