David Wheeler

“All problems in computer science can be solved by another level of indirection.”

Edsger Dijkstra

“Simplicity is prerequisite for reliability.”

Joel Spolsky

“It’s harder to read code than to write it.”

Martin Fowler

“Any fool can write code that a computer can understand. Good programmers write code that humans can understand.”

Andy Hunt and Dave Thomas

“Don’t repeat yourself. Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.”

Contact Form

Name

Email *

Message *

Showing posts with label mobile hacking tool. Show all posts
Showing posts with label mobile hacking tool. Show all posts

Tuesday, July 28, 2020

Basic Termux commands

Termux


Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the APT package manager.

Basic command :-

Now we start with basic commands

Firstly, after installing and everytimes start we to given thes command.

$ apt update
$ apt upgrade

After this we have to give storage permission to Termux by hitting below command :-

$termux-setup-storage
Then again,
$apt update && upgrade

If you want to know  list of packages which used in termux normally hit below command,

$ apt list

Information about packages

$apt show <package name>

(note:- We can use also pkg instead of apt)

For going to internal storage:-

$ cd /sdcard

Show the files in directory

$ ls             (without hidden files)
$ ls -a         (With hidden files)

For version checking:-

$ ls --version

Details of folders:-

$ ls -lh

For creating files:-

$ touch <files.Extensions>
$ touch BharamGyani.txt

Display data of file:-

$ cat <files.Extensions>
$ cat bharamgyani.txt

For check current directory:-

$ pwd

For creating folders or directory:-

$ mkdir <folder name>
$ mkdir rohan
$ ls

For open folder:-
Go to directory

$ cd rohan

For back to directory:-

$ cd ..

For going to root directory:-

$ cd /

Now you can also copy, cut and past the files on termux, have a look.
For files :-

$ cp <file name> <destination >
$ cp rohan.txt sdcard

For folders :-

$ cp -r <foldername> <location>

For home directory

$ cp rohan.txt $home

For move:-

$ mv <filename> <location>

For folders :-

$ mv -v <folder name> <location>
$mv -v rohan /sdcard/DCIM

For removing the files and folders
For files :-

$ rm <file name>
$ rm helo.py

For folders :-

$ rm -rf <folder name>

If file and folder in same directory copy it :-

$ cp <file name> <folder name>

Check the archeteture of device :-

$ uname -m

For kernel info:-

$ uname -a

For checking ip (local ip and all network) :-

$ ifconfig

(note:- For using ifconfig, firstly install busybox and net-tool simply hit below command :-
$ pkg install busybox net-tools)

For checking public ip:-

$ curl ifconfig.me

For checking Internet working or not:-

$ ping google.com

For given executive permission to a file:-

$ chmod +x <file name>

For given multiple permissions in directory :-

$ chmod +x *

For checking termux running well or not just hit the command, A train running on screen if not that's means something went wrong :-

$pkg install sl
$sl

End...
Termux has not end point we can do lots of thing here these are the basic command of termux after this we will start for use of lot of termux packeges.
Thanks to all for coming.