Creating and Managing Directories in Termux (Beginner Guide)
When you start using Termux, one of the first things you should learn is how to create and manage directories. Directories are like folders – they help you keep your files organized. In this guide, I’ll show you simple commands to create, navigate, and delete directories in Termux. Let’s begin! What is a Directory? A directory is a folder that stores files and other folders. In Termux, directories help you manage your files easily. For example, you can create a directory to store your scripts or downloaded tools. How to Create a Directory in Termux To create a directory, we use the mkdir command. It stands for "make directory". Here's the syntax: mkdir directory-name Example: mkdir myfolder This command will create a new directory called myfolder in your current location. How to Check If the Directory Was Created To see if your folder is there, use the ls command. It lists all files and directories in the current location: ls How to Enter a Directory To go inside a directory, use the cd command (change directory): cd myfolder Once inside, you can use ls again to see what’s inside that folder. How to Go Back (Out of a Directory) If you want to go back to the previous directory, just type: cd .. The double dots (..) mean "one level up". How to Create a Directory Inside Another Directory You can create folders inside other folders like this: mkdir myfolder/scripts This will create a folder named scripts inside myfolder. How to Delete a Directory in Termux If you want to delete a directory, use the rmdir command: rmdir myfolder Note: This only works if the directory is empty. If it has files inside, use: rm -rf myfolder Warning: Be careful with rm -rf as it permanently deletes the folder and all its contents without asking. Pro Tip: Create Multiple Folders at Once You can create several directories at the same time like this: mkdir folder1 folder2 folder3 Useful Commands Summary mkdir folder – Create a new folder cd folder – Go into a folder cd .. – Go back one level ls – Show folders and files rmdir folder – Delete empty folder rm -rf folder – Delete folder with all files Conclusion Learning how to create and manage directories in Termux is very important for beginners. It helps you stay organized and makes it easier to work on different projects. Try these commands and get comfortable using them daily. Stay tuned for more Termux tutorials only on Kalimux. Written by Stephano | Follow for more Termux tips and ethical hacking tools.

When you start using Termux, one of the first things you should learn is how to create and manage directories. Directories are like folders – they help you keep your files organized. In this guide, I’ll show you simple commands to create, navigate, and delete directories in Termux. Let’s begin!
What is a Directory?
A directory is a folder that stores files and other folders. In Termux, directories help you manage your files easily. For example, you can create a directory to store your scripts or downloaded tools.
How to Create a Directory in Termux
To create a directory, we use the mkdir
command. It stands for "make directory". Here's the syntax:
mkdir directory-name
Example:
mkdir myfolder
This command will create a new directory called myfolder
in your current location.
How to Check If the Directory Was Created
To see if your folder is there, use the ls
command. It lists all files and directories in the current location:
ls
How to Enter a Directory
To go inside a directory, use the cd
command (change directory):
cd myfolder
Once inside, you can use ls
again to see what’s inside that folder.
How to Go Back (Out of a Directory)
If you want to go back to the previous directory, just type:
cd ..
The double dots (..
) mean "one level up".
How to Create a Directory Inside Another Directory
You can create folders inside other folders like this:
mkdir myfolder/scripts
This will create a folder named scripts
inside myfolder
.
How to Delete a Directory in Termux
If you want to delete a directory, use the rmdir
command:
rmdir myfolder
Note: This only works if the directory is empty. If it has files inside, use:
rm -rf myfolder
Warning: Be careful with rm -rf
as it permanently deletes the folder and all its contents without asking.
Pro Tip: Create Multiple Folders at Once
You can create several directories at the same time like this:
mkdir folder1 folder2 folder3
Useful Commands Summary
-
mkdir folder
– Create a new folder -
cd folder
– Go into a folder -
cd ..
– Go back one level -
ls
– Show folders and files -
rmdir folder
– Delete empty folder -
rm -rf folder
– Delete folder with all files
Conclusion
Learning how to create and manage directories in Termux is very important for beginners. It helps you stay organized and makes it easier to work on different projects. Try these commands and get comfortable using them daily. Stay tuned for more Termux tutorials only on Kalimux.
Written by Stephano | Follow for more Termux tips and ethical hacking tools.