As I had promised on my github profile
here, I was to give an overview on termux. Termux is an open source linux-based command line interface that operates on android systems. Like any other Linux system may it be Kali, Ubuntu, termux is one of them. Termux helps you get the 'feeling' of a CLI.
If you are wondering,, what's the work of a command line or what is a command line interface, then I got you covered.
Command line interface is an interface where the user types in commands unlike GUI (Graphical User Interface) where buttons are available and the user simply operates the computer by clicking on icons. The advantages of using command line are:
Allows you to easily communicate with the operating system
You can view, stop, or start processes or jobs
You can change file permissions
With you, the root user you have access to everything on the computer To begin let's be familiar with termux.
PLEASE NOTE: Termux like any other Linux distributor is CASE sensitive. By this I mean 'CD' is different from 'cd'.
Let's say you want to view your working environment or directory. Just type 'pwd' pwd is an acronym for "print working directory". If you want to list all files and folders in the directory, just type 'ls'. In some cases 'ls' alone doesn't list hidden files and folders, so to solve that just type 'ls -la', this lists all files and folders even if hidden.
That's it, now what if you want to create a folder? A folder is created using 'mkdir' command. For example you want to create a folder named myFolder, just type 'mkdir myFolder' and a new folder named myFolder will be created in your current working directory.
Now we want to change directory from termux home to your internal shared storage. The first step is to know which directory you currently reside in by typing 'pwd'. NOTE: By default every time you login to termux the current working directory is /data/data/com.termux/files/home. In this case 'home' is the current directory. Now if you want to move from home to internal shared storage, just type 'cd storage && cd shared' . It doesn't matter how you do it but '&&' is just a sort of 'then' . In short you can just type 'cd storage ', then again type 'cd shared ' but it's kinda tiresome.
MANAGING RUNNING SERVICES
Like any other Linux distributor jobs are essential. Now the good thing is that you, yes you have the power to control which jobs to stop or which jobs to not stop. You can check which jobs are taking up your memory. With this information you can prioritize your desired job. If you prioritize your job it is called 'nice', if you do the reverse then it is called 'renice'. We'll discuss this in the later chapters to come. So if you want to check running jobs just type 'ps'. 'ps' lists current running jobs in your working environment. If you want a more detailed information including the memory used just type 'ps aux'. It's even more fun if you type 'top' command. 'top' lists all running services or jobs with their process IDs. Top command is interactive meaning you can nice and renice a desired job at that particular time. Simple right??? Unlike 'ps' 'ps aux', 'top' opens up a new window or a new screen, to escape top just type 'q' then hit enter. NOTE: IF I EVER MENTIONED TYPE <COMMAND> I.E (type 'ps' ) REMEMBER TO HIT THE ENTER BUTTON..
I love termux
ReplyDeleteI want more
ReplyDeleteThis is great
ReplyDeleteMore please
ReplyDeleteWow
ReplyDeleteI wonder if you ever get to update
ReplyDelete