top of page

Shell Genie | ChatGPT

Shell Genie is a new command line tool that can be used to ask how to perform various tasks, and it gives you the shell command you need. To generate the commands, it uses OpenAI's GPT-3 or Free Genie, a free-to-use backend provided by the Shell Genie developer.


Once Shell Genie shows a command, it will ask if you want to run it. Make sure you understand the command before doing that! You could use something like Explain Shell to understand what the command does. Also, it's probably best you only use this for queries/commands that can't break things on your computer. Not all commands will work as expected, so use this at your own risk! ⚠️



Install and use Shell Genie:

sudo apt install pipx
apt install python3.11-venv
python -m venv .venv

source .venv/bin/activate

pip install shell-genie

Shell Genie should now be installed in ~/.local. In case ~/.local/bin is not available in your PATH, add it.

pipx can do this automatically for you – run pipx ensurepath, then open a new terminal window to use the new PATH.


To use Shell Genie, you'll need to configure it.

shell-genie init

Enter the website platform.openai.com/account/api-keys and click the [ + Create new secret key ] button to generate the API.


Inform the generated API in the terminal and press enter to proceed

Answer y to confirm the version of the Linux system you are using and press enter


The configuration is successful!


Enter the command below followed by the --help parameter to get more details about the shell-genie tool:

shell-genie ask --help

Example:

shell-genie ask "apt update" --explain



23 views0 comments

Recent Posts

See All

BusyBox is a collection of Linux system utilities that are combined into a single executable. It is designed to be run on devices with limited resources such as routers, embedded systems, and other si

The SSH server is an encrypted program that uses the SSH protocol to allow users the authority to access other machines’ services securely. However, like other servers, the SSH server may become prone

Shred is a program that will overwrite your files in a way that makes them very difficult to recover by a third party. Normally, when you delete a file, that portion of the disk is marked as being rea

bottom of page