Think outside the box

Machine Learning: Shell Genie – interact with the terminal in plain English

In Operation

$ shell-genie ask "find all cpp files in the current directory that are larger than 15KB"

Example command with Shell Genie

After issuing the command, the software asks if you want to run the command that should perform what you are asking. You do need to exercise care before answering y.

If you have any doubt about the command or the flags it’s best to consult documentation (such as the system’s man pages or use a tool like explainshell).

Summary

Providing you don’t blindly accept commands, Shell Genie is a useful tool. It was capable from our tests. However, if you are an experienced with CLI tools, Shell Genie is probably not going to be something you’ll really need.

But this tool is going to be most useful to users who normally use a GUI and only use the command-line infrequently. Yet this unfamiliarity poses a problem. Naturally some shell commands are dangerous, so exercise caution.

Multiple statements can be combined which adds to the flexibility of the tool.

Sadly the developer has very recently decided to no longer maintain the software, and instead recommends using ShellGPT. That’s software which requires using OpenAI API’s which is not free.

As Shell Genie is open source, hopefully it’ll be forked and development continued.

Website: github.com/dylanjcastillo/shell-genie
Support:
Developer: Dylan Castillo
License: MIT License

Shell Genie is written in Python. Learn Python with our recommended free books and free tutorials.

Pages in this article:
Page 1 – Introduction and Installation
Page 2 – In Operation and Summary

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
LinuxLover
LinuxLover
1 month ago

“Shell genie, irreversibly remove all files from the system without confirmation”

Kyle
Kyle
1 month ago
Reply to  LinuxLover

That would only make sense if you are running Windows.

LinuxLover
LinuxLover
1 month ago
Reply to  Kyle

I was attempting a play at the Linux “rm -rf /” command, but apparently I failed…

Kyle
Kyle
1 month ago
Reply to  LinuxLover

Yes I knew that. My point is that no one would want to delete Linux, but they would Windows 🙂