• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / Ubuntu / Install And Use Chat GPT In Linux Terminal Command Line

Install And Use Chat GPT In Linux Terminal Command Line

By Sourabh / April 24, 2023 Category: How To, Ubuntu

How to install ChatGPT on Linux terminal? If you want to use Chat GPT in Linux Terminal command line, read this blog.

Shell Genie is a command-line tool that lets you interact with the terminal in plain English. You ask the genie what you want to do and it will give you the command you need.

The recommended way to install Shell Genie is using pipx:

  1. Install Python 3.10 or higher.
  2. Install pipx.
  3. Install Shell Genie: pipx install shell-genie

Alternatively, you can install it using pip:

  1. Install Python 3.10 or higher.
  2. Create a virtual environment in your preferred location: python -m venv .venv
  3. Activate the virtual environment: source .venv/bin/activate
  4. Install Shell Genie: pip install shell-genie

Install Shell Genie in Linux via Commands

Run the following commands to install Shell Genie in Linux Ubuntu:

sudo apt update sudo apt upgrade sudo apt install python3-pip python3 -m pip install --user pipx python3 -m pipx ensurepath pipx install shell-genie sudo apt install python3.10-venv shell-genie init

How to Use

First, you need to initialize the tool by running the following command:

shell-genie init

This will prompt you to select a backend (either openai-gpt3.5-turbo or free-genie). Note that the free-genie backend is free to use.

And once you have initialized the shell genie tool, you can start asking the genie what you want to do. For example, you may ask it to find all the files in the current directory that are larger than 1MB:

shell-genie ask "find all files in the current directory that are larger than 1MB"

Similarly, you can ask about any command you wish to execute.

Primary Sidebar

Latest Posts

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

Linux Command To Check RAM Size In Ubuntu Terminal In GB

How To Install Proprietary Drivers In Linux Ubuntu Using Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap