# Linux

## Filesystem Hierarchy

[Filesystem Hierarchy Standard](https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)

```
/ – The Root Directory

/bin – Essential User Binaries

These Binaries must be present when the system is mounted in single-user mode.

/sbin- system administration programs (fdisk, mkfs, sysctl, etc)

/etc - configuration flies /tmp- temporary files (typically deleted on boot)

/usr/bin - applications (apt, neat, nmap, etc.) /usr/share- application support and data files

Not essential for single-user mode.
```

## Package Management

Kali Linux usages advanced package tool (apt).

## Customizing the Bash Environment

The HISTIGNORE variable is particularly useful for filtering out basic commands that are run frequently, such as Is, exit, history, bg, etc:

`export HISTIGNORE="&:ls:[bf]g:exit:history"`

The HISTCONTROL variable defines whether or not to remove duplicate commands, commands that begin with spaces from the history, or both.

`export HISTCONTROL=ignoredups`

HISTTIMEFORMAT controls date and/or timestamps in the output of the history command.

`export HISTTIMEFORMAT='%F %T'`


---

# 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:

```
GET https://nullbrain.gitbook.io/nullbrain/basics/linux.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.
