Andy Walker / Android Authority
One among Google’s important improvements that has gone largely unnoticed this yr was the rollout of Linux Terminal support baked proper into Android. If you happen to personal a Pixel and are working the most recent steady model of Android, you may allow the app and open up a world of prospects. Positive, the terminal is daunting, however because of its presence in a digital machine, it stays largely remoted out of your telephone’s vital interior workings. This makes it the right playground.
If you happen to’re asking your self how a black display screen with incoherent strains of textual content is usually a playground, you’ve come to the precise place. On this piece, I’ll element some helpful, not-so-useful, and downright enjoyable methods to make use of the Linux Terminal app in your Android phone.
Have you ever enabled the Linux Terminal app in your Pixel?
1278 votes
Become familiar with the fundamentals

Andy Walker / Android Authority
Getting misplaced within the terminal is straightforward, so a little bit assistance is all the time welcome. I’ve been leaning closely on this sensible Linux Terminal companion app referred to as Linux Command Library to assist with the important, must-know instructions. Nevertheless, you needn’t ever transcend the terminal itself for assist.
There are two parameters you’ll want to recollect: assist
and man
.
- Assist shows an inventory of instructions which are accessible to you. Consider it as a phonebook.
- Man, then again, shows the handbook pages for utilities and instructions.
It’s a good suggestion to make use of the assist
command to discover the probabilities broadly, after which man
to drill down into these you’re concerned about. The person parameter is used as such, with ls for instance:
There are two different essential instructions you’ll have to know. They’re:
- Replace the system:
sudo apt replace
andsudo apt improve
- Set up a bundle:
sudo apt set up [name of the package]
- Take away previous strains from the terminal:
clear
- Shut the at present working program: often
CTRL c
until in any other case specified by the utility
Experiment with system data instruments

Andy Walker / Android Authority
Let’s have a look at one thing easy earlier than we get into the extra technical objects. Linux has a number of system data instruments you could entry via the terminal. Operating them on the Pixel will provide you with detailed details about how a lot RAM and CPU energy Debian is utilizing, in addition to different particulars associated to your digital machine.
There are two choices accessible: neofetch
, which shows a much less nuanced overview of your system, and htop
, which presents real-time updates of system useful resource utilization.
sudo apt set up neofetch
As soon as put in, kind neofetch
or htop
within the terminal and hit the Enter button to run them.
Play a recreation, or two, or three!
The command line might sound an impractical approach to play video games, however terminal video games simply ooze allure. Taking part in Bastet, a Tetris-like block stacking recreation, was one of many first issues I realized the best way to do on Linux, and it’s one thing I nonetheless do to today. Sure, utilizing the Pixel 8’s comparatively small display screen and management buttons is awkward, nevertheless it’s nonetheless a blast.
To put in it, use the command under:
After all, Bastet isn’t your solely choice. Discover a few of my favourite terminal video games under, together with their set up instructions:
sudo apt set up pacman4console
sudo apt set up moon-buggy
sudo apt set up ninvaders
Management different gadgets in your community
Maybe one of many extra helpful methods to make use of the terminal in your Android telephone is to command different gadgets in your community via SSH. If you happen to’ve constructed your personal Pi-hole to dam advertisements or build your own digital assistant, you may simply SSH into it out of your telephone via the terminal and investigate cross-check it sometimes.
You’ll need to put in SSH utilizing the command under
Alternatively, for those who’re not a Pi-hole proprietor, you may nonetheless SSH into virtually any machine, out of your homemade NAS to your desktop.
Flip the Terminal right into a secret pocket book
There are a number of textual content editors that make full use of the terminal, however nano is my favourite. I’ve used it for years on the desktop, and now I can attempt it on the terminal.
To put in it, enter the next command:
As soon as it’s put in, run nano
.
Now you can use the terminal to take notes, too. It can save you the present word in a textual content file and recollect it when you reopen the app. Good!
Step into the Matrix

Andy Walker / Android Authority
Your Android telephone is usually a portal to 1999, when leather-based trench coats had been nonetheless all the fad. The scrolling matrix display screen continues to be a agency a part of widespread tradition, and you’ll flip your terminal window into one thing related because of cmatrix
.
To put in it, kind the next into the terminal in your telephone, adopted by the Enter key:
To run the utility, kind the next, adopted by the Enter key:
Your telephone’s terminal window ought to now be coated in vertically cascading textual content.
To cease the command, faucet the CTRL button adopted by C.
Stress check your Pixel
Do you have to stress check telephones identified for heating issues? In all probability not, nevertheless it’s enjoyable nonetheless. After constructing a system, it’s a good suggestion to emphasize check it to examine what it’s able to, how scorching it’ll get, and whether or not all of the elements are in working order. You are able to do this, too, utilizing conventional Android apps. Nevertheless, it’s way more enjoyable to make use of the terminal.
First, set up the stress testing instrument:
As soon as put in, you may stress check the CPU by working the next command:
stress –cpu [number of cpus] –timeout [how long you want the test to run, in seconds]
For instance, the Pixel 8 has 9 CPU cores, so to emphasize check all of them my command could be:
stress –cpu 9 –timeout 60
To observe the progress of the check, open htop
in a second terminal tab, and change between the 2 views. You’ll discover the CPU cores on htop kick as much as 100% and stay fairly excessive for the allotted time.
Turn out to be a digital cat mum or dad

Andy Walker / Android Authority
If you happen to’re a fan of early 2010s popular culture, you may flip your costly Google telephone right into a Nyan Cat show. Run the under command:
Then kind nyancat
and hit Enter to run the utility. Your terminal will show a flying poptart-encased feline with rainbow trails.
That is only the start!
The Linux Terminal app is a superb addition to Android telephones. Whereas customers solely have entry to a text-based portal to the Debian digital machine, Google is planning to run full-scale Linux apps on Android’s desktop mode finally. That’s fairly thrilling, and one thing we will all stay up for sooner or later. For now, the terminal is a superb studying and experimenting instrument for many and a transportable improvement toolkit for others.
The objects above are merely meant to spotlight the terminal’s potential. Some have put in full-blown graphical interfaces, turning their Pixels into moveable Linux machines. We’ve even managed to install and run Doom. The probabilities are solely actually restricted by your creativeness, so I encourage you to maintain studying assets, guides, and how-tos detailing the extra intricate methods of utilizing the terminal on Android.
Do you might have a enjoyable means of utilizing the Linux Terminal in your telephone? Maybe I missed one thing helpful. If that’s the case, let the neighborhood know within the feedback under.