Skip to content

πŸ’» A smart command-line assistant for everyday Linux users. Translate natural language into Linux commands β€” offline, fast, and beginner-friendly.

License

Notifications You must be signed in to change notification settings

khalid1055/linux-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”§ linux-helper

πŸ’» linux-helper is an AI-assisted command-line companion designed for everyday Linux users, not just developers.

This tool allows you to write simple, natural English instructions like:

Show me the files here  
Install VLC  
What is my IP address?  
Search for "error" in logs  

…and automatically translates them into the correct Linux commands:

ls
sudo apt install vlc
ip a
grep -r "error" /var/log/

πŸ’‘ Why linux-helper?

Most Linux tools are built for advanced users and developers.
linux-helper simplifies the Linux experience for students, tech enthusiasts, and new users by acting as a smart shell assistant.

  • 🧠 Understands natural English input
  • βš™οΈ Suggests or runs real system commands
  • πŸ’¬ Explains what each command does before execution
  • πŸ”’ Works offline (local matching engine, with optional AI integrations)
  • 🧱 Modular design (fuzzy, exact, or AI-based matching)

πŸ› οΈ Built with:

  • Python 3
  • RapidFuzz for fuzzy matching
  • Modular architecture (easy to extend)
  • JSON-based command mapping

πŸš€ Roadmap:

  • πŸ€– Local AI model integration (LLaMA, Mistral, GPT4All)
  • πŸ’» Optional GUI (Tkinter, Textual, or Web-based)
  • πŸ“¦ pip and .deb install support

πŸ“‚ Project Structure:

linux-helper/
β”‚
β”œβ”€β”€ main.py              # CLI entry point
β”œβ”€β”€ matcher/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ base.py          # Base matcher interface
β”‚   β”œβ”€β”€ fuzzy.py         # Fuzzy matching logic
β”‚   β”œβ”€β”€ exact.py         # Exact match logic
β”‚   └── embedding.py     # (planned) AI matching
β”œβ”€β”€ commands.json        # Natural phrases to command mapping
└── README.md

✨ Getting Started

Before running the tool, make sure Python 3 is installed.

Then install required dependencies:

pip install rapidfuzz

To run the assistant:

pip install linux-helper
linux-helper

This will launch the assistant, ready to interpret and execute your natural-language Linux tasks.


🀝 Contributing

Want to add more commands, improve accuracy, or build a GUI? Pull requests are welcome!


πŸ“œ License

MIT License. Use it, modify it, share it.

About

πŸ’» A smart command-line assistant for everyday Linux users. Translate natural language into Linux commands β€” offline, fast, and beginner-friendly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published