Termux Commands List PDF

0.07 MB / 5 Pages
0 likes
share this pdf Share
DMCA / report this pdf Report
Termux Commands List
Preview PDF

Termux Commands List

Termux is an Android terminal emulator and Linux environment app that allows users to run various Linux commands on their Android devices.

Common Commands Used in Termux

  1. apt: Used for package management. You can install, update, and remove packages using this command. For example:
    • apt update: Updates the package lists.
    • apt upgrade: Upgrades all installed packages to their latest versions.
    • apt install <package>: Installs a package.
    • apt remove <package>: Removes a package.
  2. pkg: Similar to apt, used for package management. It provides the same functionalities but with slightly different syntax. For example:
    • pkg update
    • pkg upgrade
    • pkg install <package>
    • pkg uninstall <package>
  3. ls: Lists the contents of a directory. For example:
    • ls: Lists files and directories in the current directory.
    • ls <directory>: Lists files and directories in the specified directory.
  4. cd: Changes the current directory. For example:
    • cd <directory>: Changes the current directory to the specified directory.
    • cd ..: Moves up one directory level.
  5. mkdir: Creates a new directory. For example:
    • mkdir <directory>: Creates a new directory with the specified name.
  6. rm: Removes files or directories. For example:
    • rm <file>: Removes the specified file.
    • rm -r <directory>: Removes the specified directory and its contents recursively.
  7. cp: Copies files or directories. For example:
    • cp <source> <destination>: Copies the file or directory from the source to the destination.
  8. mv: Moves or renames files or directories. For example:
    • mv <source> <destination>: Moves the file or directory from the source to the destination.
    • mv <old_name> <new_name>: Renames a file or directory.
  9. pwd: Prints the current working directory.
  10. echo: Prints text to the terminal. For example:
    • echo "Hello, World!": Prints “Hello, World!” to the terminal.

Termux Commands List Android

CommandDescriptionExample Usage
aptPackage manager for installing softwareapt update <br> apt install nano
pkgPackage manager (alternative to apt)pkg update <br> pkg install git
lsList directory contentsls <br> ls -l <br> ls /path/to/directory
cdChange directorycd /path/to/directory <br> cd ..
mkdirCreate a new directorymkdir new_directory
rmRemove files or directoriesrm file.txt <br> rm -r directory
cpCopy files or directoriescp file.txt /path/to/destination
mvMove or rename files or directoriesmv file.txt /path/to/destination <br> mv old_name new_name
pwdPrint current working directorypwd
echoPrint text to the terminalecho "Hello, World!"
catDisplay file contentscat file.txt
grepSearch for patterns in filesgrep pattern file.txt
chmodChange file permissionschmod +x script.sh
curlTransfer data from or to a servercurl https://example.com/file.txt -o file.txt
wgetDownload files from the internetwget https://example.com/file.txt
whoamiPrint current userwhoami
unamePrint system informationuname -a
topDisplay Linux processestop

Termux Commands List for Kali Linux

CommandDescriptionExample Usage
aptPackage manager for installing softwareapt update
apt install nano
pkgPackage manager (alternative to apt)pkg update
pkg install git
lsList directory contentsls
ls -l
ls /path/to/directory
cdChange directorycd /path/to/directory
cd ..
mkdirCreate a new directorymkdir new_directory
rmRemove files or directoriesrm file.txt
rm -r directory
cpCopy files or directoriescp file.txt /path/to/destination
mvMove or rename files or directoriesmv file.txt /path/to/destination
mv old_name new_name
pwdPrint current working directorypwd
echoPrint text to the terminalecho “Hello, World!”
catDisplay file contentscat file.txt
grepSearch for patterns in filesgrep pattern file.txt
chmodChange file permissionschmod +x script.sh
curlTransfer data from or to a servercurl https://example.com/file.txt -o file.txt
wgetDownload files from the internetwget https://example.com/file.txt
whoamiPrint current userwhoami
unamePrint system informationuname -a
topDisplay Linux processestop

Download Termux Commands List PDF

Free Download
Welcome to 1PDF!