Termux: List Of Basic Commands You Need To Know Prakash, 22, December 202224, April 2023 This guide will show you the best Termux commands for beginners. With these Termux commands, you’ll be able to operate Termux with ease. Before getting into the Termux command, let’s first take a look at what Termux is and what it can be used for.In simple terms, Termux is an Android terminal emulator and Linux environment app that does not require any root access. That means you can run Termux without rooting your Android device.So now that we know what Termux is, let’s take a look at some of the best commands that beginners can use. Get familiar with all the Termux commands, from basic to advanced! This ultimate guide provides detailed info along with examples and syntax that will help you get up and running in no time. TABLE OF CONTENTS1 List Of Termux Commands For Package Management2 List Of Termux Basic Shell Commands3 Some Additional Termux Commands List4 List Of Termux Commands For File Management4.1 Update all the packages and dependencies installed on the system:4.2 Grant storage permission:4.3 Know Which directory you are in:4.4 List all the files and directories:4.5 List all the files and directories including Hidden Files:4.6 Move forward in directories:4.7 Move backward in directories:4.8 Clear Screen:4.9 Create a folder or a directory:4.10 Delete a folder or a directory:4.11 Delete Non-Empty directory or folder in termux:4.12 Copy a file from one directory to another directory:4.13 Move a file from one directory to another directory:4.14 Search for the specific package in termux:4.15 See the Details of a Package in Termux:4.16 List all the available packages in termux:4.17 Install a Package:4.18 Uninstall a Package:4.19 Install Python in termux:4.20 Install Git in termux:4.21 Download projects from GitHub repository :4.22 Check all the running processes in Termux:4.23 Make any bash file Executable :4.24 Create a text file in termux:4.25 See what’s inside a text file:4.26 Delete a file in termux:4.27 List all the installed Packages in termux:4.28 List all commands that You have used in termux:4.29 Check your Username :4.30 Check your Termux usage time :4.31 Check your Kernel info in Termux:4.32 Check your Memory Usage in Termux:4.33 About The Author4.33.1 Prakash4.34 RelatedList Of Termux Commands For Package ManagementList of Termux CommandsUses of Termux Commandspkg search PACKAGE NAME HEREAllows you to search a particular package.pkg install PACKAGE NAME HEREInstall a package.pkg uninstall PACKAGE NAME HEREuninstall a package.pkg reinstall PACKAGE NAME HEREReinstall a package.pkg show PACKAGE NAME HEREGet detailed inormation about the package.pkg-list-installedList installed Termux package.pkg-list-allList all available package for Termux.pkg autocleanRemoves packages which are not longer needed.pkg cleancleanup the local cache of packages downloaded from remote repositories.pkg files PACKAGE NAME HEREShows the location of the files.pkg updateUpdate the Termux packages.pkg upgradeUpgrade the Termux packages.pkg update && pkg upgrade -yUpdate and Upgrade the Termux packages.List Of Termux Basic Shell CommandsList of Termux CommandsUses of Termux CommandshistoryShows the history of previously typed commands.calShows Calander.dateShows current date.helpDisplays information about shell built-in commands.exitUse this command to close the Termux.uptimeShows the uptime of your operating system.dfDisplays the amount of disk space available on the file system.findSearch for files in a directory hierarchy.suChange user ID or become superuser.echoWrite arguments to the standard output.passwdChange user’s password. If no user is specified, changes the password for the current user.duSummarize disk space used for each FILE and/or directory.whoamiDisplays user, group and privileges information for the user who is currently logged on to the local system.ifconfigConfigure network interface parameters.pingSend ICMP ECHO_REQUEST to network hosts.netstatPrint network connections, routing tables, interface statistics, masquerade connections, and multicast memberships.sleepSuspends program execution for a specified time.Some Additional Termux Commands ListList of Termux CommandsUses of Termux Commandszip FILENAMECompress a file.unzip FILENAMEDecompress a file.wget URL HEREDownload a file from the web.git clone URL OF GITHUB HEREClone the packages from Github to your system.envAllows you to display your current environment or run a specified command in a changed environment.termux-setup-storageGrant Termux to access the device storage.List Of Termux Commands For File ManagementList of Termux CommandsUses of Termux CommandslsList information about files and directories within the file system.touch FILENAMECreate a new file.cat FILENAMEcat command is used to display the contents of a file.cpcp command is used to create the copy of a file.mvmv command is used to move a file from source to destination.rm FILENAMEdelete a filerm -rf DIRECTORY NAMEForce delete the given directory.mkdir NEW DIRECTORY NAMECreate a new directory.rmdir DIRECTORY NAMERemove a directory.cd DIRECTORY NAMEChange the directory.pwdPrints the current working directory.chmod 777 FILENAMEModify the permission of the file. Anyone can read, write, and execute the file.Update all the packages and dependencies installed on the system: apt update && apt upgradeIf any update is available it will ask you on the terminal if you want to upgrade or not, press Y if you want the update.Grant storage permission: termux-setup-storagenow you can access your Storage and all the folder in it using termux.Know Which directory you are in: pwdThis command will tell you, your present working directoryList all the files and directories: lsthis command will show you the folder and files in your current working directory.List all the files and directories including Hidden Files:ls -als command with -a will show you all the hidden files as well.Move forward in directories: cd storagecd command allows you to move in a folder just type cd and the folder name you wanna move here I am moving in storage.Move backward in directories: cd .. by typing cd ..(between cd and .. we have to put space) you will go back in the directory you were in.Clear Screen: clearby typing clear in the termux you can clear all the previous results.Create a folder or a directory: mkdir folderNamemkdir Stand for make directory. Type mkdir and give a space and type folder name and press enter to see the folder you have just created just type ls.Delete a folder or a directory: rmdir folderNameRmdir stands for Remove Directory.Type rmdir space folder name to remove that folder.Delete Non-Empty directory or folder in termux: rm -rf folderNamePlease use this command with caution. This command will remove a folder and all the files and folders within it. This command is useful when you want to delete any project downloaded from Github.Copy a file from one directory to another directory: cp files-name file-pathYou can copy files by typing cp the file name and after giving a space you can type the path where you wanna copy the file E.g: cp virus.apk /storage/shared this will copy the virus.apk to the storage/shared folder.Move a file from one directory to another directory:mv files-name file-pathYou can move files by typing mv the file name and after giving a space you can type the path where you wanna move the file E.g: mv virus.apk /storage/shared this will move the virus.apk to the storage/shared folder.Search for the specific package in termux: pkg search package-nameIt will show you all the package related to that package name.See the Details of a Package in Termux:apt show nanoThis command will show you the complete detail of a package.List all the available packages in termux: pkg list-allit will show you all the packages that are available in the APT repository of termux.Install a Package: pkg install packageNameyou can install any package from the list, just type pkg install package-name.Uninstall a Package: pkg uninstall packageNameyou can uninstall any package from the list, just type pkg uninstall package-name.it will ask you where if you wanna delete the package or not press y and the package will be uninstalled.Install Python in termux: pkg install pythonJust type this command and it will be installed in your termux press y if it asks for confirmation.after installing python you can write code and also run your own python scripts. Type python to check if python is installed correctly or not.Install Git in termux: pkg install gitGit will allow you to download any project from GitHub.Download projects from GitHub repository : git clone Link-of-the-projectIf you want to download any project from the git hub you can just use the above just change the Link-of-the-project with your linke.g: git clone https://github.com/khansaad1275/Termux-YTDCheck all the running processes in Termux: topThis command will show you all the tasks running on your termux. To quit the top command on termux just press CTRL+C on your keyboard.Make any bash file Executable :chmod +x filenameIf you are trying to run any bash file and you are getting a permission denied error then you can use the above command to make it executable Create a text file in termux:first, you have to download a package name nano. Type on termux pkg install nano press y when asking for confirmation.type nano on the terminal.type anything you want I am typing hello world.Press CTRL+X and press Y to save the file.Give the file name anyname.txt and press enter.Type ls command to see your directory.See what’s inside a text file: cat file-nameRun this command and everything in the text file will be printed on the terminal.e.g: cat data.txtDelete a file in termux: rm file-nameTo delete any file within the directory in, just type the rm name of your file and press enter and it will be deleted.e.g: rm data.txtList all the installed Packages in termux: dpkg –listBy Using this command You will be able to see all the installed packages in your termux app.List all commands that You have used in termux:historyThis command will give you a list of all the recent commands that you have used in termux.Check your Username :whoamiThis will show you the user-name in your termux.Check your Termux usage time :uptimeThis will show, How much time you have spent using termux.Check your Kernel info in Termux:uname -aThis will show you info about your system as well as you can also check your Architecture using this command. Check your Memory Usage in Termux:free -h -tThis will show you the amount of free and used memory in the systemTermux commands list pdf downloadRead Also:Advance Linux terminal commands for The Power users8 Most Common Hacking Techniques You Must KnowDorking Cheat Sheet for Advance SearchingAbout The Author Prakash See author's posts Related Hacking Hacks termux all commands listtermux basic commandstermux basic commands pdftermux commands list 2023termux commands list android
Cyber Security How to Hack Any System with a USB: A Comprehensive Guide 1, July 20233, July 2023We’ve all seen hacking films in which hackers plug a USB to a system and it immediately hacks. It’s not a fantasy, after all. It’s actually quite simple, believe it or not. Most importantly, no complex costly software or fancy equipment is required. You don’t even need anything other than… Read More
Cyber Security Most common types of Network Security vulnerabilities 8, January 20238, January 2023Network vulnerabilities are always changing and that means businesses are at risk of losing valuable information or income. Though there are new weaknesses appearing all the time, some of the methods used by hackers remain the same. They’ll use tried-and-true methods for infiltrating a seemingly secure network, employing various tricks,… Read More
Android Before clicking any suspicious link 7 Sites to Check If A Link is Safe 29, August 202229, August 2022It can be tough to tell whether links sent to you via email are safe. Whether the email is from a friend or a stranger. One of the most serious security threats faced by businesses today is ransomware. This type of malware is often spread through email, social media, and… Read More