Saturday, February 4, 2023

Set up Termux first time, with a list of important commands.

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.

https://www.pexels.com/photo/blur-bright-business-codes-207580/

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:

sql
pkg 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:

java
pkg 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:

bash
nano ~/.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.

OrderFunction
CDOpen folder/directory
chmodgive permission
cp -fcopy files
cp -rfcopy folders
lsdisplays the contents of the folder
mkdircreate a new folder
mv -fmove or rename files
mv -rfMove/rename folder
nanoedit files
rm -fdelete files
rm -rfdelete folder
vimview the contents of the file

List of Important Commands:

  1. pkg update && apt upgrade
  2. apt update && apt upgrade
  3. pkg install git
  4. pkg install wget
  5. pkg install proot
  6. pkg install php
  7. nano ~/.bashrc
  8. pkg install openssh
  9. sshd
  10. ls
  11. cd <directory>
  12. cp <source> <destination>
  13. mv <source> <destination>
  14. 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