Termux Scripts and Hacks ( Basic Commands for Android)

0 60
Avatar for CrazyInsane
2 years ago

Termux Basic Commands

TO UPDATE
-apt update

Check whether termux is properly installed
-pkg install sl

Type "sl" Now you will be seeing a moving train if all is well with the setup of Termux.

Display text in a different style
-apt install figlet

Matrix background animation on Termux

-apt install cmatrix

To run: cmatrix + ENTER

Find factors of a number
-pkg install coreutils
factor 1337

Go to the friendly interactive shell, fish
-apt install fish

fish+ENTER

Fish command autocompletes the commands. Type exit to go out.

To see text in colorful style

apt install toilet

toilet -f mono12 -F green BugBounty

To open any site in termux

apt install w3m

w3m google.com

COMMANDSUSAGEcp -vused to prints informative massagecp -rused to copy any directorymv -uupdate-move when source is newer than destinationmv -vto move any directoryls -nto display UID and GID directoryls –versionto check the version of ls commandcd —show last working directory from where we movedls -lshow file action like – modified, date and time, owner of file, permissions Etc.ls helpshow display how to use “ls” commandcp -nno file overwritecd ~move to users home directory from anywheremv [file1 name] [new file2 name]move or rename two file at a timecd –move one directory back from current locationmv [file name]move any file and folderlslist directoryls -alist all files including hidden filespwdit show your current working directorymv -iinteractive prompt before overwritwget [url]install tool , apt install wgetgit clone [url]install any tools with git clone, apt install git

ls -alformatted listing with hidden filesmv -fforce move by overwriting destination files without promptls -iDisplay number of file or directorycpcopy any filecd /change to root directorycdchange directorycd ..change current directory to parent directorycurl -O [url]apt install curlrmremove or delete filesrm [filename]remove any text filesrmdir [dir name]remove any directoryrm -rfforce remove a directory or a folderrm -r [name]delete a directory called nameapt remove [package name]uninstall / remove a packagetouch [file name]create new filemkdir [name]create a directory or foldermore [file name]output the contents of filehead [file name]output the first 10 line of filetail -f [file name]output the contents of file as it growsapt install zipinstall zip file toolzip name.zip [file]compress file using this commandsunzip [zip file]to unzip fileftplaunch ftp client from terminal-puse passive modebyeterminate current ftp session, exitasciiset file transfer to ascii protocolsbellbell sound after each commandstatusshows current status about ftp serveropen hostopen a connection to remote hostremotehelp [cmdname]request help from ftp serveraccount [password]supply a password required by remoteuname -mused to find the architecture of your devicedudisplay directory space usagedfdisplay disk usagescalshow display calendarwshow display who is currently onlinecat /proc/meminfoshow memory related informationcat /proc/cpuinfoshow cpu informationwhoamishow your login namefingure usernameshows information about userdateshow the current date and timeuptimeshow the system current uptimeman commandshow manual a commandfreedisplay memory and swap usagekillsend signal to processkill- llist all of the signal that are possible to send with killlspcishow PCI deviceslsusbshow usb devicesapt search [qurey]
pkg search [qurey]find a packagelocate [file]find all files with filenamelocate [query]find all path names contains a pharsewhereis [command]find location binary /source/man file for a commandwhich [command]find of an executablegrep pattern [files]searching for pattern in filesgrep -r pattern filessearching for certain pattern in filescommand | grep patternsearch for pattern in the output of commandfind / -atime40to find all the files, which are accessed 40 days backfind / -cmin -60find change files in last 1 hourfind / -type d -name mllfind all directories whose name is mll in directoryfind . -type f -perm 0777 -printfind all tghe files, whose permission are 777ifconfigshows all configuration a network interface like ip, macifconfig eth0used view the network setting on the interface eth0ifconfig wlan0view the network setting on wlan0ping [host]to ping host ip and show resultsarpcheck network card & show ip adresshostdisplay specific servernetstatreview network connectionnslookupfind out DNS related query.

Happy coding everyone.


1
$ 1.78
$ 1.78 from @TheRandomRewarder
Sponsors of CrazyInsane
empty
empty
empty
Avatar for CrazyInsane
2 years ago

Comments