An AI Terminal Assistant
Running Shell Commands
Gemini CLI also lets you run regular Linux commands. To do this, you need to prefix a command with ! (Figure 4), and then Gemini CLI executes the command in your local shell:
> !ls -al
If you need to switch back from the shell mode, just enter ! or hit the Esc key. As a result, you rarely need to switch out of the CLI environment when running general prompts and commands simultaneously.
Working with Local Files
Another interesting Gemini CLI feature is the ability to work on files such as scripts, configs, source code, etc. To attach a file, you append an @ symbol before the file name in your prompt as shown in Figure 5. If the files are in a different directory, you can modify the prompt by giving a full path for the file as shown in Figure 6.
Built-In Tools
Gemini offers many built-in tools to make your work easier. To see a list of available tools, enter
> /tools
Figure 7 shows a list of tools that can help you with writing files, reading content, or generating structured output. For example, the prompt in Figure 8 will search for a text string inside a specific file.
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Microsoft Issues Warning About Linux Vulnerability
The company behind Windows has released information about a flaw that affects millions of Linux systems.
-
Is AI Coming to Your Ubuntu Desktop?
According to the VP of Engineering at Canonical, AI could soon be added to the Ubuntu desktop distribution.
-
Framework Laptop 13 Pro Competes with the Best
Framework has released what might be considered the MacBook of Linux devices.
-
The Latest CachyOS Features Supercharged Kernel
The latest release of CachyOS brings with it an enhanced version of the latest Linux kernel.
-
Kernel 7.0 Is a Bit More Rusty
Linux kernel 7.0 has been released for general availability, with Rust finally getting its due.
-
France Says "Au Revoir" to Microsoft
In a move that should surprise no one, France announced plans to reduce its reliance on US technology, and Microsoft Windows is the first to get the boot.
-
CIQ Releases Compatibility Catalog for Rocky Linux
The company behind Rocky Linux is making an open catalog available to developers, hobbyists, and other contributors, so they can verify and publish compatibility with the CIQ lineup.
-
KDE Gets Some Resuscitation
KDE is bringing back two themes that vanished a few years ago, putting a bit more air under its wings.
-
Ubuntu 26.04 Beta Arrives with Some Surprises
Ubuntu 26.04 is almost here, but the beta version has been released, and it might surprise some people.
-
Ubuntu MATE Dev Leaving After 12 years
Martin Wimpress, the maintainer of Ubuntu MATE, is now searching for his successor. Are you the next in line?
