{"id":2807,"date":"2024-02-28T23:32:41","date_gmt":"2024-02-28T18:02:41","guid":{"rendered":"https:\/\/www.veeble.org\/kb\/?p=2807"},"modified":"2025-03-12T11:29:30","modified_gmt":"2025-03-12T05:59:30","slug":"chatgpt-in-linux-command-line-using-shell-genie-ai","status":"publish","type":"post","link":"https:\/\/www.veeble.com\/kb\/chatgpt-in-linux-command-line-using-shell-genie-ai\/","title":{"rendered":"Get ChatGPT Assist in Linux Terminal with Shell Genie AI"},"content":{"rendered":"\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"494\" data-id=\"2853\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1.png\" alt=\"How to use shell genie\" class=\"wp-image-2853\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1.png 1080w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1-300x137.png 300w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1-1024x468.png 1024w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/How-to-use-shell-genie-1-768x351.png 768w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>If you&#8217;ve ever felt confused looking at the Linux command line and couldn&#8217;t remember a command you learned recently, you&#8217;re not alone. Linux is powerful, but its command line can be tricky and hard to remember. That&#8217;s where Shell Genie comes into play, transforming the CLI from daunting to delightful. It&#8217;s like having a tech-savvy friend right by your side, ready to interpret your commands in plain English.<\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"what-is-shell-genie\">What is Shell Genie?<\/h4>\n\n\n<p>Shell Genie is more than just a tool; it serves as a bridge between human language and computer code. Shell Genie, powered by cutting-edge AI, allows you to communicate with your Linux system as if it were a person. Forget about memorizing commands or searching the internet for syntax; Shell Genie understands what you mean, regardless of how you say it.<\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"why-youll-love-shell-genie\">Why You&#8217;ll Love Shell Genie<\/h4>\n\n\n<p><strong>Talk Naturally:<\/strong> Shell Genie understands you. When you ask it to &#8220;find my vacation photos&#8221; or &#8220;clean up old files,&#8221; it knows exactly what to do.<br><br><strong>Learn together:<\/strong> The more you engage, the better Shell Genie becomes at predicting and optimizing your commands, allowing you to do your tasks faster and more easily.<br><br><strong>Everyone is Invited:<\/strong> Whether you&#8217;re a Linux rookie or a seasoned sysadmin, Shell Genie makes everyone feel at ease on the command line.<\/p>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"installation\">Installation<\/h4>\n\n\n<p>Before proceeding with the installation, ensure that the system is up to date and that the packages: python3, python3.10-venv, and pip3 are installed on your system. If not, you can install them using the following commands:<\/p>\n\n\n\n<p>For Ubuntu\/Debian:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update -y\nsudo apt install python3-pip python3.10-venv -y<\/code><\/pre>\n\n\n\n<p>For Centos\/RedHat-based OS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum update -y\nsudo yum install python3-pip python3.10-venv -y<\/code><\/pre>\n\n\n\n<p>To install Shell Genie, you&#8217;ll need the pipx tool. To get pipx, you must execute the following command first:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install --user pipx<\/code><\/pre>\n\n\n\n<p>Ensure that globally installed Python scripts managed by pipx can be easily executed from the command line, simply run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python3 -m pipx ensurepath<\/code><\/pre>\n\n\n\n<p>To apply the changes immediately without restarting the terminal, execute <code>source ~\/.bashrc<\/code>. This reloads the config file, applying changes, including the PATH update by <code>pipx ensurepath<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>source ~\/.bashrc<\/code><\/code><\/pre>\n\n\n\n<p>Now, install Shell Genie with the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pipx install shell-genie<\/code><\/pre>\n\n\n\n<p>The output will look like:<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-28-221605.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"122\" data-id=\"2842\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-28-221605.png\" alt=\"Install Shell Genie\" class=\"wp-image-2842\" srcset=\"https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-28-221605.png 719w, https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Screenshot-2024-02-28-221605-300x51.png 300w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>Shell Genie installation is completed. Now you can choose the backend you wish to use with Shell Genie by executing the init tool.<\/p>\n\n\n\n<pre class=\"wp-block-verse\">Shell Genie offers two backend AI options: <a href=\"https:\/\/platform.openai.com\/docs\/overview\" target=\"_blank\" rel=\"noopener\">OpenAI GPT 3.5<\/a> and Free-Genie. Use <a href=\"https:\/\/platform.openai.com\/docs\/overview\" target=\"_blank\" rel=\"noopener\">OpenAI GPT-3.5<\/a> with an OpenAI API key, or opt for Free-Genie, Shell Genie's own AI.<\/pre>\n\n\n\n<p>A reference for creating OpenAI GPT 3.5 API key is already available in our tutorial: <a href=\"https:\/\/www.veeble.org\/kb\/how-to-use-chatgpt-on-linux-terminal\/#:~:text=Steps%20to%20create,for%20security%20reasons.\" target=\"_blank\" rel=\"noopener\">How to use ChatGPT on Linux Terminal<\/a>. Please refer to it!<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shell-genie init<\/code><\/pre>\n\n\n\n<p>After executing the above command, you will encounter some prompts. Choose the options that best match your requirements.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/free-genie.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1262\" height=\"290\" data-id=\"2844\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/free-genie.gif\" alt=\"shell-genie init\" class=\"wp-image-2844\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n<h4 class=\"wp-block-heading\" id=\"running-shell-genie\">Running Shell Genie<\/h4>\n\n\n<p>Shell Genie works with the <code>ask<\/code> command, where you can interactively perform various tasks in your command line with simple English. Here are some example prompts which will give you an idea to make use of the Shell Genie:<\/p>\n\n\n\n<p><strong>Create a New Directory or File:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shell-genie ask \"Create a file named example.txt\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/creating-file.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"178\" data-id=\"2846\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/creating-file.gif\" alt=\"How to use Shell Genie\" class=\"wp-image-2846\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>List out the Files Present in the Current Directory:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shell-genie ask \"list out all the files in the current directory\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-5 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/listing.gif\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"178\" data-id=\"2847\" src=\"https:\/\/www.veeble.org\/kb\/wp-content\/uploads\/2024\/02\/listing.gif\" alt=\"How to use Shell Genie\" class=\"wp-image-2847\"\/><\/a><\/figure>\n<\/figure>\n\n\n\n<p>The provided prompts offer simple examples, yet they illustrate the versatility of Shell Genie&#8217;s capabilities. With its AI-powered functionality, Shell Genie is equipped to handle more complex tasks efficiently, making it a powerful tool for streamlining various operations within your shell environment.<\/p>\n\n\n\n<p>Explore the diverse range of Shell-Genie prompts and unleash its advanced features to elevate your productivity, foster creativity, and delve into a multitude of topics. The possibilities are endless! \ud83e\uddde\u200d\u2642\ufe0f<\/p>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-call-to-action uagb-block-34ca39b4 wp-block-button\"><div class=\"uagb-cta__wrap\"><h3 class=\"uagb-cta__title\">Take Control with cPanel<\/h3><p class=\"uagb-cta__desc\">Manage every aspect of your website with our intuitive cPanel. From email setup to file management, enjoy complete control. Experience reliable hosting with robust features.<\/p><\/div><div class=\"uagb-cta__buttons\"><a href=\"https:\/\/www.veeble.com\/in\/cpanel-hosting\/\" class=\"uagb-cta__button-link-wrapper wp-block-button__link\" target=\"_blank\" rel=\"noopener noreferrer\">Explore cPanel Plans<svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\"><path d=\"M504.3 273.6l-112.1 104c-6.992 6.484-17.18 8.218-25.94 4.406c-8.758-3.812-14.42-12.45-14.42-21.1L351.9 288H32C14.33 288 .0002 273.7 .0002 255.1S14.33 224 32 224h319.9l0-72c0-9.547 5.66-18.19 14.42-22c8.754-3.809 18.95-2.075 25.94 4.41l112.1 104C514.6 247.9 514.6 264.1 504.3 273.6z\"><\/path><\/svg><\/a><\/div><\/div>\n\n\n\n<div style=\"height:25px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-veeble-hosting wp-block-embed-veeble-hosting\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.veeble.org\/kb\/how-to-use-chatgpt-on-linux-terminal\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you&#8217;ve ever felt confused looking at the Linux command line and couldn&#8217;t remember a command you learned recently, you&#8217;re not alone. Linux is [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":7720,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5,3],"tags":[],"class_list":["post-2807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-installation"],"uagb_featured_image_src":{"full":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI.jpg",1366,768,false],"thumbnail":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI-150x150.jpg",150,150,true],"medium":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI-300x169.jpg",300,169,true],"medium_large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI-768x432.jpg",768,432,true],"large":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI-1024x576.jpg",1024,576,true],"1536x1536":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI.jpg",1366,768,false],"2048x2048":["https:\/\/www.veeble.com\/kb\/wp-content\/uploads\/2024\/02\/Get-ChatGPT-Assist-in-Linux-Terminal-with-Shell-Genie-AI.jpg",1366,768,false]},"uagb_author_info":{"display_name":"Adrian Antony","author_link":"https:\/\/www.veeble.com\/kb\/author\/adrian\/"},"uagb_comment_info":0,"uagb_excerpt":"If you&#8217;ve ever felt confused looking at the Linux command line and couldn&#8217;t remember a command you learned recently, you&#8217;re not alone. Linux is [&hellip;]","_links":{"self":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/comments?post=2807"}],"version-history":[{"count":15,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2807\/revisions"}],"predecessor-version":[{"id":8014,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/posts\/2807\/revisions\/8014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media\/7720"}],"wp:attachment":[{"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/media?parent=2807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/categories?post=2807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.veeble.com\/kb\/wp-json\/wp\/v2\/tags?post=2807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}