If you own a device powered by Android 15, a fascinating feature awaits you: a fully functional Linux terminal. This addition brings a wealth of familiar commands to your fingertips, enhancing your mobile experience in unexpected ways. However, it’s important to note the limitations; for instance, running GUI applications can be quite challenging and often requires considerable effort. While some have managed to install games like Doom, the process is not straightforward.
Also: With Android 16, the Linux terminal gets all the space it needs
Despite these hurdles, the Linux terminal offers a plethora of opportunities for those willing to embrace the command line. Here’s a closer look at what you can achieve with this innovative tool.
1. SSH
Connecting to remote machines via SSH can be cumbersome, especially for those who struggle with mobile typing. Fortunately, the SSH config file can simplify this process significantly. By configuring your SSH connections, you can reduce the need to type lengthy commands. Here’s how:
- Open the Linux terminal app and install SSH.
- Connect to your desired remote machine, which will create the necessary .ssh folder.
- Exit the connection and type
nano .ssh/config
to edit your SSH configuration. - Add the following lines:
- Save the file by tapping Ctrl in the terminal keyboard menu bar, followed by x.
Host hive
Hostname 192.168.1.176
User gilly
Now, instead of typing ssh gilly@192.168.1.176
, you can simply type ssh hive
. A significant improvement!
2. Learn the Linux command line
The Linux terminal app serves as an excellent platform for learning the intricacies of the Linux command line. You can execute commands, install new ones, and access the manual pages for guidance. Should you encounter any issues, disabling and re-enabling the terminal support in Android allows for a fresh start. This flexibility makes it an ideal environment for those eager to expand their command-line skills.
Also: The first 5 Linux commands every new user should learn
After installing the Ollama command-line AI, I faced a storage issue in the virtual environment. Instead of going through the hassle of uninstalling, I simply disabled the Linux terminal app and re-enabled it, restoring my setup effortlessly.
3. Develop
For developers or those learning programming languages, the Linux terminal app provides a portable coding environment. Python comes pre-installed, allowing you to dive right into development. For instance, creating a simple “Hello, World” application can be accomplished with:
nano hello.py
In the file, you would add:
print(“Hello, ZDNET”)
After saving, run the program with:
python3 hello.py
This will yield the output “Hello, ZDNET,” showcasing the potential of coding directly from your mobile device. Keep in mind, however, that development is limited to the command line without GUI support.
4. Use a database
Surprisingly, you can install the MariaDB database server through the Linux terminal app. This capability allows you to create and manage databases entirely via command line. To install MariaDB, simply execute:
sudo apt install mariadb-server
This feature is particularly beneficial for those looking to hone their database management skills while on the move.
5. Keep notes hidden in plain sight
One of the most intriguing uses of the Linux terminal app is the ability to store notes discreetly. If you have sensitive information to keep on your phone, you can create a hidden file using the Nano editor:
nano ~/.stuff
In this file, you can jot down any information you wish to keep private. When you need to access it, simply open the terminal app and use Nano or the less
command to view the contents:
less ~/.stuff