Termux is a powerful terminal emulator application that runs on Android devices. It allows users to access a Linux environment, complete with many of the standard utilities and tools that are typically found on a typical desktop environment. In this article, we will discuss the steps to set up Termux for the first time and provide a list of important commands that can be used to get started.
Step 1: Install the Termux Application
The first step to set up Termux is to install the application from the Google Play Store. Simply search for "Termux" in the Play Store, and then select the app to begin the installation process. Once the app is installed, launch it from the app drawer to begin the setup process.
Step 2: Initial Configuration
Upon launching Termux, you will be asked to grant the app access to various device features, including storage, camera, and microphone access. Simply grant access to the features you wish to use, and then tap "Accept" to proceed to the main interface.
Step 3: Update the Package List
To ensure that you have the latest packages and tools available, it is important to update the package list. To do this, simply run the following command in the Termux terminal:
sqlpkg update
Step 4: Install Packages
Termux comes pre-installed with a few essential packages, but you can install additional packages as needed. To install a package, simply use the following command:
javapkg install <package name>
Step 5: Configure Shell Environment
Termux uses a shell environment by default, and you can configure it to your liking by editing the .bashrc file. To do this, simply run the following command:
bashnano ~/.bashrc
Step 6: Start an SSH Server
Termux also allows you to start an SSH server to access your Android device from another device on your network. To start the SSH server, simply run the following command:
pkg install openssh
sshd
Step 7: Run Command Line Utilities
Finally, Termux provides access to many of the standard command-line utilities found on a typical desktop environment. To run these utilities, simply enter the appropriate command in the Termux terminal.
| Order | Function |
|---|---|
| CD | Open folder/directory |
| chmod | give permission |
| cp -f | copy files |
| cp -rf | copy folders |
| ls | displays the contents of the folder |
| mkdir | create a new folder |
| mv -f | move or rename files |
| mv -rf | Move/rename folder |
| nano | edit files |
| rm -f | delete files |
| rm -rf | delete folder |
| vim | view the contents of the file |
List of Important Commands:
- pkg update && apt upgrade
- apt update && apt upgrade
- pkg install git
- pkg install wget
- pkg install proot
- pkg install php
- nano ~/.bashrc
- pkg install openssh
- sshd
- ls
- cd <directory>
- cp <source> <destination>
- mv <source> <destination>
- rm <file>
In conclusion, Termux is a powerful terminal emulator app that provides access to a Linux environment on Android devices. By following the steps outlined in this article, you can easily set up Termux for the first time and begin using the app to run command line utilities and manage your device.

No comments:
Post a Comment