Termux is an Android terminal emulator and Linux environment app that allows you to run command-line utilities on your Android device. Here are some commonly used commands and codes in Termux:
Update and Upgrade Packages:
sqlapt update apt upgradeInstall Packages:
phpapt install <package_name>Uninstall Packages:
arduinoapt remove <package_name>Search for Packages:
phpapt search <search_term>List Installed Packages:
apt listAccess the File System:
bashcd <directory> # Change directory ls # List files and directories pwd # Print working directoryEdit Files:
bashnano <file_name> # Edit a file using the Nano text editor vi <file_name> # Edit a file using the Vi text editorRun Commands as Superuser (Root):
bashsu # Switch to superuser (root)Networking:
bashping <host> # Send ICMP echo requests to a host ifconfig # View network interfaces and IP addressesPackage Management:
bashpkg install <package_name> # Install a package pkg upgrade # Upgrade all installed packages pkg uninstall <package_name> # Uninstall a package pkg search <search_term> # Search for packages pkg list # List installed packages
--help option with commands or referring to the documentation for specific tools or packages you are using within Termux.
Comments
Post a Comment