在安卓手机上使用 Linux 终端
安卓 终端 Linux
![](/data/attachment/album/202202/19/190329mrnlr1fzkrmeewe5.jpg)


想练习 Linux 命令吗？你不需要为此而安装一个完整的发行版。


有很多 [让你在线使用 Linux 终端的网站](https://itsfoss.com/online-linux-terminals/)。这些网站在桌面上运行良好，但在移动设备上却不适合。


别担心。安卓毕竟是基于 Linux 内核的。有几个应用程序可以让你用你的安卓智能手机练习 Linux 命令，或通过 SSH 连接到远程服务器。


当然，你不应该指望它能取代你在台式机上使用的常规 [Linux 终端仿真器](https://itsfoss.com/linux-terminal-emulators/)。在安卓上有相当多的这类应用。


为了方便起见，我添加了两个不同的类别，一个涵盖了终端模拟器，另一个是为远程连接功能（SSH）以及终端界面量身定做的。



> 
> 非 FOSS 提醒！
> 
> 
> 这里提到的一些应用程序不是开源的，它们都做了适当的提示。它们被涵盖在这里是因为它们可以让你在安卓上使用 Linux 终端。
> 
> 
> 


### Linux 终端仿真器应用


请注意，你需要在你的安卓手机上有 root 权限，才能使用 `ls` 等命令在目录中导航、复制/粘贴、并执行高级操作。


**注意：** 对于大多数应用程序/终端，没有 root 权限你将只限于基本的操作，如测试 ping、更新，以及在支持的地方安装包。


#### 1、Qute 终端仿真器（非 FOSS）


![](/data/attachment/album/202202/19/190401qb3n71djb54iv05i.jpg)


[Qute](https://play.google.com/store/apps/details?id=com.ddm.qute&hl=en_IN&gl=US) 终端模拟器提供了对你的安卓设备上的内置命令行 Shell 的访问。


你可以在你的智能手机上使用常见的命令，如 `ping`、`trace`、`cd`、`mkdir` 等等。除了一些 [有用的 Linux 命令](https://itsfoss.com/linux-command-tricks/) 之外，你还可以安装 bin 文件和创建 [shell 脚本](https://itsfoss.com/shell-scripting-resources/)。


伴随着 bash 脚本编辑器和对已 root 的设备的支持，它应该是一个令人兴奋的选择，可以尝试。


它还提供了启用浅色主题、隐藏键盘、切换语法高亮和其他一些功能。


不幸的是，开发者提到，根据谷歌最新的隐私政策，安卓 11 及更新版本存在一些已知的问题。因此，如果没有一个已 root 的设备，你可能做不了什么。


#### 2、安卓终端仿真器（FOSS）


![](/data/attachment/album/202202/19/190401u0jwj49r6r0qu50r.jpg)


Jack Palevich 的 “[终端仿真器](https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en_IN&gl=US)” 是最古老的可用于安卓的 Linux 终端仿真器之一。


你可以使用简单的命令、添加多个窗口，并使用启动器的快捷键进行快速操作。


它最好的地方是没有任何广告和应用内购买选项，也没有干扰性元素。然而，它已经很久没有被维护了，它的 [GitHub 页面](https://github.com/jackpal/Android-Terminal-Emulator/) 也在 2020 年被归档，这标志着它的开发已经结束。


但即使在目前的状态下，它似乎也对众多用户有用。因此，在否定它之前，你可以试试。


#### 3、Material Terminal（非 FOSS）


![](/data/attachment/album/202202/19/190402u4duu4ety6t5czcd.jpg)


[Material Terminal](https://play.google.com/store/apps/details?id=yarolegovich.materialterminal&hl=en_IN&gl=US) 是 “安卓终端仿真器” 的重新换肤版本。


你可以获得相同的功能，有多个窗口、没有广告、基本命令开箱即用，还可以选择在已 root 的设备上安装 Busy Box，以及其他命令行工具。


简单的说，就是前一个选项中的一切，加上一个 Material Design 用户界面。很好，对吗？


### SSH 客户端和 Linux 终端


你想要一个能够使用 SSH 连接的安卓终端仿真器吗？或者，也许只是为 SSH 远程连接而定制？


这里有一些选择：


#### 4、Termux（FOSS）


![](/data/attachment/album/202202/19/190402jcdkov3grcfiggen.jpg)


[Termux](https://play.google.com/store/apps/details?id=com.termux) 是一个相当流行的可用于安卓的终端仿真器。它有一个全面的软件包集合，让你体验 bash 和 zsh。


如果你有 root 权限，你还可以 [用 nnn 管理文件](https://itsfoss.com/nnn-file-browser-linux/)，并用 `nano`、`vim` 或 `emacs` 来编辑文件。用户界面除了终端外没有其他东西。


你还可以 [使用 SSH 访问服务器](https://linuxhandbook.com/ssh-basics/)。除此之外，你还可以用 clang、`make` 和 `gbd` 进行 C 语言开发。当然，这些都取决于你的需要，以及你是否有一个已 root 的设备。


你也可以查看它的 [GitHub 页面](https://github.com/termux/termux-app) 来解决发现的问题。截至目前，由于一些技术原因，Play Store 版本的更新已停止了。因此，如果可用的 Play Store 版本不能工作，你可以通过 [F-Droid](https://f-droid.org/en/packages/com.termux/) 安装最新版本。


#### 5、Termius（非 FOSS）


![](/data/attachment/album/202202/19/190403ex9a9rhasjj7s6ax.jpg)


[Termius](https://play.google.com/store/apps/details?id=com.server.auditor.ssh.client&hl=en_IN&gl=US) 是一个 SSH 和 SFTP 的定制客户端，专门用于从安卓设备进行远程访问。


通过 Termius，你可以管理 UNIX 和 Linux 系统。Play Store 页面将其描述为一个漂亮的安卓版 Putty 客户端，这一点是正确的。


用户界面很容易理解，看起来并不令人困惑。它还支持 Mosh 和 Telnet 协议。


当你连接到一个远程设备时，它可以检测到操作系统，如树莓派、Ubuntu、Fedora。你也可以用你的键盘连接到运行这个应用程序的手机上工作。最重要的是，没有任何广告或横幅，使它成为一个完美的远程连接应用程序。


它确实提供了可选的高级服务（14 天免费试用），具有更多的功能，如加密的交叉同步、SSH 密钥代理转发、SFTP、终端标签等。你也可以在其 [官方网站](https://termius.com/) 上了解更多关于它的信息。


#### 6、JuiceSSH（非 FOSS）


![](/data/attachment/album/202202/19/190403qntky86zgzk2969r.jpg)


[JuiceSSH](https://play.google.com/store/apps/details?id=com.sonelli.juicessh&hl=en_IN&gl=US) 是另一个流行的 SSH 客户端，有大量免费的功能和一个可选的专业版升级。


除了支持 Telnet 和 Mosh 之外，你还可以使用一些第三方插件来扩展功能。你可以从一系列可用的选项中调整外观，并按组轻松组织你的连接。


不要忘了，还有 IPv6 支持。


如果你选择专业版升级，你可以与 AWS 集成，启用安全同步，自动备份等等。


#### 7、ConnectBot（FOSS）


![](/data/attachment/album/202202/19/190403mc0ccc0lv6c3mebv.jpg)


如果你想要的只是一个简单的 SSH 客户端，[ConnectBot](https://play.google.com/store/apps/details?id=org.connectbot&hl=en_IN&gl=US) 应该能满足你的需求。


你可以管理同时进行的 SSH 会话、创建安全隧道，并获得在其他应用程序之间复制/粘贴的能力。


### 赠品：无需 root 设备就能访问 Linux 发行版和命令


如果你没有已 root 的安卓手机，也不打算去 root 它，你有一个独特的选择，让你在智能手机上安装 Linux 发行版。


* [Andronix](https://andronix.app/) （部分开源）


你可以得到广泛的 Linux 发行版和琳琅满目的桌面环境以及窗口管理器。


最重要的是，你不需要一个已 root 的设备来使用各种 Linux 命令。你只需要安装你最喜欢的发行版就可以做到这一切。


除了使用方便外，它还提供高级选项，使你能够获得离线发行版安装和跨设备同步命令的能力。


当然，你安装了一个 Linux 发行版并不意味着你可以做所有事情，但它仍然是一个很好的选择。你可以在 [Play Store](https://play.google.com/store/apps/details?id=studio.com.techriz.andronix) 找到它，并在 [GitHub](https://github.com/AndronixApp) 上了解关于它的更多信息。


总结
--


在安卓上访问 Linux 终端并不像选择一个终端模拟器那么简单。你需要检查对命令的支持，以及它能让你在已 root 的、未 root 的设备上做什么，然后再继续。


如果你想做实验，任何一个选项都应该做得很好。


你的个人最爱是什么？我们是否错过了列出任何你的最爱？请在下面的评论中告诉我。




---


via: <https://itsfoss.com/using-linux-terminal-android/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[wxy](https://github.com/wxy) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

Want to practice Linux commands? You don’t need to install a full-fledge distribution for that. There are plenty of [websites that let you use Linux terminal online](https://itsfoss.com/online-linux-terminals/).

Those websites work well on the desktop but not on the mobile devices.

Fret not. Android is based on Linux kernel, after all. There are several apps that let you use your Android smartphone to practice Linux commands to connect to a remote server via SSH.

Of course, you should not expect it to replace your regular [Linux terminal emulators](https://itsfoss.com/linux-terminal-emulators/) available for desktops. But, there are quite a few interesting options available for Android.

To make things easier, I added two different categories, one that covers terminal emulators, and the other tailored for remote connection capabilities (SSH) along with a terminal interface.

You can pick one as per your requirements.

**Some apps mentioned here are not open source, and they are duly labeled. They have been covered here because they let you use Linux terminal on Android.**

**Non-FOSS alert!****Section A: Top Linux Terminal Emulator Apps**

Note that you need root access on your Android phone to be able to use commands like ls to navigate through the directories, copy/paste, and perform advanced operations.

### 1. Qute: Terminal Emulator (Not FOSS)

![qute terminal](https://itsfoss.com/content/images/wordpress/2022/02/qute-terminal.jpg)

Qute terminal emulator provides access to the built-in command-line shell on your Android device.

You can use popular commands like [ping](https://itsfoss.com/ping-command/), trace, cd, mkdir, and more on your smartphone. In addition to some [useful Linux commands](https://itsfoss.com/linux-command-tricks/), you can also install bin files and create [shell scripts](https://itsfoss.com/shell-scripting-resources/).

Along with the bash script editor and support for rooted devices, it should be an exciting option to try.

It also offers the ability to enable a light theme, hide the keyboard, toggle syntax highlighting, and a couple of other features.

Unfortunately, the developer mentions that as per Google’s latest privacy policies, there are known issues with Android 11 or latest. So, without a rooted device, you may not be able to do much.

### 2. Terminal Emulator for Android (FOSS)

![terminal emulator old](https://itsfoss.com/content/images/wordpress/2022/02/terminal-emulator-old.jpg)

Terminal Emulator by Jack Palevich is one of the oldest Linux terminal emulators available for Android.

You can use simple commands, add multiple windows, and use launcher shortcuts to make things quick.

The best thing about it is you do not get any ads, in-app purchase options, and no distracting elements. However, it is not being maintained for a long time, and its [GitHub page](https://github.com/jackpal/Android-Terminal-Emulator/?ref=itsfoss.com) was also archived in 2020 to mark the end of its development.

Even in its current state, it seems to be working for numerous users. So, you might want to try it out before dismissing it as an option.

### 3. Material Terminal (Not FOSS)

![material terminal](https://itsfoss.com/content/images/wordpress/2022/02/material-terminal.jpg)

Material Terminal is a re-skin version of “Terminal Emulator for Android”.

You get to access the same features, with multiple windows, no ads, support for basic commands out of the box, and the option to install Busy Box, and other command-line utilities in a rooted device.

Basically, everything you’d want in the previous option with a Material Design user interface. Pretty good, right?

**Section B: SSH Client and Linux Terminal**

Do you want a terminal emulator on Android with the ability to connect using SSH? Or, maybe tailored just for SSH remote connections?

Here are some options:

### 4. Termux (FOSS)

![termux](https://itsfoss.com/content/images/wordpress/2022/02/termux.jpg)

Termux is a pretty popular terminal emulator available for Android. It features a comprehensive collection of packages that lets you experience bash and zsh shells.

Considering you have root access, you can also [manage files with nnn](https://itsfoss.com/nnn-file-browser-linux/) and edit them with nano, vim or emacs. The user interface does not have anything else besides the terminal.

You can also [access servers using SSH](https://linuxhandbook.com/ssh-basics/?ref=itsfoss.com). In addition to that, you also get to develop in C with clang, make, and gbd. Of course, these are subject to your taste and whether you have a rooted device or not.

You can also explore its [GitHub page](https://github.com/termux/termux-app?ref=itsfoss.com) to troubleshoot any issues. As of now, updates to the Play Store version is halted due to some technical reasons. So, you can install the latest version via [F-Droid](https://f-droid.org/en/packages/com.termux/?ref=itsfoss.com) if the available Play Store version does not work.

### 5. Termius (Non FOSS)

![termius](https://itsfoss.com/content/images/wordpress/2022/02/termius.jpg)

Termius is an SSH and SFTP client tailored to make remote access from Android devices possible.

With Termius, you can manage UNIX and Linux systems. The Play Store page describes it as a pretty Putty client for Android, and rightly so.

The user interface is easy to understand and doesn’t seem confusing. It also supports Mosh, and Telnet protocol.

When you connect to a remote device, it detects the OS like Raspberry Pi, Ubuntu, Fedora. You can also work using your keyboard connected to the mobile with this app. To top it all off, you get no ads or banners, making it a perfect little remote connection app.

It does offer an optional premium (14 days free trial) with more features like encrypted cross-sync, SSH key agent forwarding, SFTP, terminal tabs, and more. You can also explore more about it on its [official website](https://termius.com/?ref=itsfoss.com).

### 6. JuiceSSH (Non FOSS)

![juicessh](https://itsfoss.com/content/images/wordpress/2022/02/juicessh.jpg)

JuiceSSH is yet another popular SSH client with a bunch of free features and an optional pro upgrade.

In addition to Telenet and Mosh support, you also get access to some third-party plugins to extend functionalities. You get to tweak the appearance from a range of available options and easily organize your connections by group.

Not to forget, you also get IPv6 support.

If you opt for the pro upgrade, you can integrate with AWS, enable secure sync, automate backups, and more.

### 7. ConnectBot (FOSS)

![connectbot app](https://itsfoss.com/content/images/wordpress/2022/02/connectbot-app.jpg)

If all you wanted is a simple SSH client, ConnectBot should serve you well.

You can handle simultaneous SSH sessions, create secure tunnels, and get the ability to copy/paste between other applications.

[Use Your Android Phone to Connect to Servers Via SSHTurn your Android phone into a portable mini-workstation with this tweaky guide!](https://linuxhandbook.com/server-ssh-android/)![](https://linuxhandbook.com/content/images/2021/08/android-ssh-server.png)


![](https://linuxhandbook.com/content/images/2021/08/android-ssh-server.png)

### Bonus: Access Linux Distro And Commands Without a Rooted Device

If you do not have a rooted Android phone, nor plan to get it done, you have a unique option that lets you install Linux distros on your smartphone.

[Andronix](https://andronix.app/?ref=itsfoss.com) (partially open-source).

You get a wide range of Linux distributions and desktop environment options along with Window Managers.

The best thing is – you do not need a rooted device to use various Linux commands. You just need your favorite distro installed to do it all.

In addition to its ease of use, it also offers premium options that give you access to features like offline distro installation and the ability to sync your commands across devices.

Of course, just because you install a Linux distro does not mean that you can do everything, but it’s still a great option. You can find it in the [Play Store](https://play.google.com/store/apps/details?id=studio.com.techriz.andronix&ref=itsfoss.com) and explore more about it on [GitHub](https://github.com/AndronixApp?ref=itsfoss.com).

## Wrapping Up

Accessing the Linux terminal on Android isn’t as simple as choosing a terminal emulator. You will need to check support for commands, and what it can let you do with a rooted/non-rooted device, before you proceed.

If you want to experiment, any of the options should do a great job.

What’s your personal favorite? Did we miss listing any of your favorites? Let me know in the comments below.