This Bash script organizes and displays directory structures and files.
- List directories in a structured format.
- Categorize and list files by their types.
- Display all files and directories in a tree-like format.
- Bash: The script is designed to run in a Bash environment.
- Tree: Ensure you have the
tree
command installed. You can install it using:- For Ubuntu:
sudo apt install tree
- For macOS:
brew install tree
- For Ubuntu:
To run the script, use:
./file_organizer.sh
## Example
===========================================
File Organizer Menu
===========================================
1. List Directories
2. List Files by Type
3. List All Files and Directories in Tree Format
4. Exit