> For the complete documentation index, see [llms.txt](https://wiki.zacheller.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.zacheller.dev/pentest/privilege-escalation/restricted-linux-shell-escape.md).

# Restricted Linux Shell Escape

Start with Console editors like ed, ne, nano, pico, vi, vim, gedit, etc.

&#x20;**compgen** is a bash built-in command which is used to list all the commands that could be executed in the Linux system. Usage: `compgen -c`

{% embed url="<https://fireshellsecurity.team/restricted-linux-shell-escaping-techniques/>" %}

{% embed url="<https://gtfobins.github.io/>" %}
