Most Useful Basic Commands For Ethical Hacking For Beginners (2025)

 


Welcome To defaultsudo.Hey Beginners, I'm here providing you the  use of basic commands in termux which also helps you when you use Linux . Here, I will provide you the tutorial of most used basic commands in Termux and Linux .


Here we go....



To clear your terminal display, 

Command : $ clear 



1. Update  and Upgrade Your Terminal : 

Command : 

    $ apt update && apt upgrade 

Or 

    $ pkg update && pkg upgrade 


2. Install Packages In  Your Termux Terminal: 

# For One Single Package 

Syntax : 

     $ pkg install <pkg_name>

Examples: 

     $ pkg install nmap 

# For Multiple Packages 

Syntax: 

     $ pkg install <pkg_name> <pkg_name> <pkg_name>

Examples: 

      $ pkg install nmap curl wget python 


3. How to list names of install Packages in your Termux Terminal: 


Command : 

      $ pkg list-installed


4. File related editing in Termux Terminal: 

 # Creation Of New File in Your Termux Terminal 


 Syntax : 

      $ touch <file_name>

Examples : 

      $ touch password.txt


# Let's edit your existing file in Termux Terminal 


Syntax : 

      $ nano <file_name>

Examples: 

      $ nano password.txt

To save the file , press Ctrl+X and then Ctrl  Y to save your file .

#And for reading a file contents , 

Syntax: 

       $ cat < file_name>

Examples : 

       $ cat password.txt


5. Handle Your Files I'm Termux Terminal 

# Change Your Current Working Directory : 

      $ cd <folder_name>

# See Your Present Working Directory: 

      $ pwd 

# Step Back from a directory: 

      $ cd ..

#Make a new folder in Termux Terminal: 

      $ mkdir <folder_name>

#Remove a file n Termux Terminal:

      $ rm <file_name>

#Remove a folder and it's contents 

      $ rm -rf <folder-name>


6.How to run bash scripts: 

Syntax : 

      $ bash <script_name.sh>

Examples : 

      $ bash zphisher.sh


7.To stop the Termux Terminal: 

Command: Press Ctrl+C

8.To exit the Termux Terminal: 

Command : $ exit


9. Execute or run python scripts : 

Firstly install python and then  run the python scripts : 

Syntax: 

       $ pkg install python 

      $ python <script_name.py>


Examples: 

      $ pkg install python 

      $ python sc.py


You don't need to run " pkg install python" twice or everytime.Once you installed it , you can run python scripts by second command .


10.Get any repository installed from any site like GitHub.


For that , you must have link of that repository.


Firstly install "git" packages : 

      $ pkg install git 


Then, Clone the repository you want : 

      $ git clone < repository_link>


Examples: 

      $ git clone https://GitHub.com/zphisher.py



11.Some basics useful network Commands : 


# Check Your Current ip address: 

     $ ipconfig 

Or 

     $ ifconfig



So that's all for now .New updates for tutorial will be coming soon.So, stay tuned to our website defaultsudo.



      Thanks For Visiting 

          Visit Again  





Comments

Popular posts from this blog

Install Proot in Termux: Run Linux on Android Without Root

Updated Termux Installation Guide (2025) – Best Method for Android