This guide explains how to install the File Structure Generator script using the provided install.sh script.
The install.sh script automates the installation process for the File Structure Generator. It performs the following actions:
- Copies the
filestructurescript to/usr/local/bin/, making it accessible system-wide. - Makes the copied script executable.
- Adds
/usr/local/binto yourPATHenvironment variable in your~/.bashrcfile, ensuring you can run the script from any directory. - Sources your
~/.bashrcto apply thePATHchanges immediately in the current session.
Follow these steps to install the File Structure Generator:
-
Clone the repository: Use
git cloneto download the project files to your local machine. Replace<repository_url>with the actual URL of the GitHub repository.git clone https://github.com/MRAKS05/FileStructure-gen-linux.git
-
Navigate to the project directory: Change your current directory to the cloned repository folder.
cd FileStructure-gen-linux -
Run the installation script: Execute the
install.shscript. You may needsudoprivileges as it copies files to a system directory (/usr/local/bin).chmod +x install.sh sudo ./install.sh
The script will show a simple progress indicator and notify you when the installation is complete.
-
Verify installation: After installation, you should be able to run the
filestructurecommand from any terminal session (you might need to open a new terminal or runsource ~/.bashrcif the script didn't source it correctly for your specific shell setup).filestructure -h
This should display the usage instructions for the script.
You can now use the filestructure command to generate file structure listings.