0% found this document useful (0 votes)
43 views3 pages

Basic Termux Commands

This document provides instructions on basic Termux commands such as apt update, clear, cd, and ls. It also includes instructions for installing Termux-sudo, Metasploit, customizing the Termux welcome message using figlet and colors, and examples of command combinations using ;.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

Basic Termux Commands

This document provides instructions on basic Termux commands such as apt update, clear, cd, and ls. It also includes instructions for installing Termux-sudo, Metasploit, customizing the Termux welcome message using figlet and colors, and examples of command combinations using ;.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

BASIC COMMANDS

Commands Function

1 apt update See the packages that are not updated in


termux
2 apt upgrade Update the packages
3 clear Clear the screen of termux
4 exit Exit the current window
5 termux-setup-storage Give Termux access to enter memory
internal and external
6 cd Go directly home
7 cd [Name] Enter a folder
8 cd .. Move back a folder
9 cd ../.. Go back more than one folder
10 ls List the content
11 pwd Know your current path
12 mkdir [Name] Create a Directory/Folder
13 touch [Name].[Extension] =Create a File
14 rm [Name].[Extension] =Remove file
15 rm -r [Name] Remove Folder
16 ls -l =View Data and permissions of Files/Folders/etc.
17 chmod [Permissions] [Name] = Change Permissions
PERMITS
r=4 =Read
Write
x=1 =Execute
18 whoami =Show the User
19 cat [Name] Show the content
20 mv [Name] [New Path/Name] Move folder
21 mv [Name] [New Name] =Change name
22 cp [Name] [Path/Name] =Copy File
23 cp -r [Name] [Path/Name] =Copy Folder
24 hours Become root user

-----------------------------------------------------------------------

TERMUX-SUDO

Commands

Window 1

1 apt install git


2 gitclone https://github.com/ivam3/Termux-sudo
3 cd Termux-sudo
4 ls -l = IF YOU ALREADY HAVE PERMISSIONS
5 chmod 700 sudo = SKIP THIS STEP

Window 2

6 cd ../usr/bin
7 ls
8 pwd COPY THE PATH

Window 1

9 cp sudo /data/data/com.termux/files/usr/bin/applets
-----------------------------------------------------------------------

METASPLOIT 2018/july FIXING THE RUBY GEM ERROR

Download the file on this page:


URL provided is not text to translate.

Commands

1 mv /sdcard/Download/MSF-mastering_the_framework.zip $HOME The route depends


from where it has been downloaded
2 apt install unzip If you already have it, it is not necessary.
3 unzip MSF-mastering_the_framework.zip
4 ls
5 cd MSF-mastering_the_framework
6 ls -l
7 chmod 777 install.sh If you already have the permissions, do not put it.
8 ./install.sh sh install.sh
9 msfconsole

-----------------------------------------------------------------------

MODIFY THE WELCOME MESSAGE OF TERMUX

1 cd ../usr/etc;ls
2 rm motd if you don't have it skip this step
3 apt install vim If you already have it, skip this step
4 vim bash.bashrc
Enter edit mode
esc = Exit editing mode
:q! = Exit without saving
Save and Exit
5 apt install util-linux If you already have it, skip this step.
6 setterm --help
Setterm colors
black Black
blue Blue
cyan Cyan
green Green
grey Gray
Magenta
red Red
white Blank
Amarillo
7 setterm -foreground [Color] =Foreground color of the letter
8 setterm -background [Color] Background color of the background
9 apt install figlet If you already have it, skip this step.
10 figlet [Word]
11 cd;cd ../usr/share/figlet;ls|grep .flf
Designs .flf
banner.flf
big.flf
block.flf
bubble.flf
digital.flf
ivrit.flf

mini.flf
mnemonic.flf
script.flf
shadow.flf
slant.flf
small.flf
smscript.flf
smshadow.flf
smslant.flf
standard.flf
term.flf
12 figlet -f [Design .flf] [Word]
13 cd ../../etc/;vim bash.bashrc
Already in the editor
This depends on your choice
setterm -foreground [Color]
Texto
figlet -f [Design .flf] [Word]
[Text]
setterm -foreground white

[Text$]

14 esc = To exit edit mode


15 :xSave and Exit

-----------------------------------------------------------------------

COMBINATION OF COMMANDS

Commands

1 cd [path]/[path]/[path]/;ls Go to the path and list ; Give


an additional order to termux
2 rm -r [path]/[path]; ls [path]/[path] remove and list
3 cp [path]/[Name] [path]/[New Name];ls [path] =Copy, Rename and
list
4 cp [path]/[Name] $HOME/[Name] Copy directly to home

-----------------------------------------------------------------------

You might also like