← Back to Blog

πŸš€ How to Create a Folder Structure and Add README.md Files in Markdown Projects

πŸš€ How to Create a Folder Structure and Add README.md Files in Markdown Projects πŸ’‘ What I Want to Achieve: I’ll guide you step by step to create a folder structure for your Markdown files, including placing README.md files in the root and subfolders.

πŸš€ How to Create a Folder Structure and Add README.md Files in Markdown Projects

πŸ’‘ What I Want to Achieve:
I’ll guide you step by step to create a folder structure for your Markdown files, including placing README.md files in the root and subfolders. You'll also create and update specific .md files for documentation.


πŸ› οΈ Steps to Set Up Your Folder Structure

  • πŸ“ Create the Root Folder
    Open your terminal or file explorer and follow these steps:

  • Navigate to the directory where you want to create your folder structure.

  • Run the following command to create the root folder FormulaMarkdown and its subdirectories: mkdir -p FormulaMarkdown/Imaginary FormulaMarkdown/SemblanceErrors FormulaMarkdown/SymbolicCode This will set up your main folder and the three subdirectories: Imaginary, SemblanceErrors, and SymbolicCode.
    (Add your screenshot here after the folder is created)


  • πŸ“„ Add README.md Files
    Now that the folders are in place, let’s create README.md files for documentation. You can create these files with the following commands:

touch FormulaMarkdown/README.md
touch FormulaMarkdown/Imaginary/README.md
touch FormulaMarkdown/SemblanceErrors/README.md
touch FormulaMarkdown/SymbolicCode/README.md

This adds a README.md file to each folder so you can document the content within those directories. Every subfolder gets its own README.md file!


  • πŸ“ Create Markdown Files for Content
    Next, let’s create the five .md files as specified:

  • ImaginaryMilestones.md in the Imaginary folder

  • JouisanceJourney.md in the Imaginary folder

  • RealEnvironments.md in the Imaginary folder

  • RealJob.md in the Imaginary folder

  • SymbolicMap.md in the SymbolicCode folder To create these files, run the following commands:

touch FormulaMarkdown/Imaginary/ImaginaryMilestones.md
touch FormulaMarkdown/Imaginary/JouisanceJourney.md
touch FormulaMarkdown/Imaginary/RealEnvironments.md
touch FormulaMarkdown/Imaginary/RealJob.md
touch FormulaMarkdown/SymbolicCode/SymbolicMap.md


  • πŸ› οΈ Update the RealJob.md File
    Now, let’s add content to the RealJob.md file. You can open it in a text editor like nano:

nano FormulaMarkdown/Imaginary/RealJob.md

Add your content, save, and close the file!


πŸ“‚ Final Directory Structure

Here’s how the folder structure will look once you’ve completed all the steps:

FormulaMarkdown
β”‚ README.md
β”‚
β”œβ”€β”€β”€Imaginary
β”‚ README.md
β”‚ ImaginaryMilestones.md
β”‚ JouisanceJourney.md
β”‚ RealEnvironments.md
β”‚ RealJob.md
β”‚
β”œβ”€β”€β”€SemblanceErrors
β”‚ README.md
β”‚
└───SymbolicCode
README.md
SymbolicMap.md


πŸ’‘ Tip: Don't forget to document the purpose and structure of each folder in the corresponding README.md file. It’s helpful for anyone exploring the project in the future!


πŸ”— Connect with me:


πŸš€ Start Building Your Markdown Structure Now!

PS: SINGLE LINER

Here is a single-line bash command that will create the folder structure you described and the necessary Markdown files:

mkdir -p FormulaMarkdown/{Imaginary,SemblanceErrors,SymbolicCode} && touch FormulaMarkdown/{README.md,ImaginaryMilestones.md,JouisanceJourney.md,RealEnvironments.md,RealJob.md,SymbolicMap.md} FormulaMarkdown/Imaginary/README.md FormulaMarkdown/SemblanceErrors/README.md FormulaMarkdown/SymbolicCode/README.md

Breakdown of the Command:

  • mkdir -p creates the directories, including the necessary parent directories.

  • {Imaginary,SemblanceErrors,SymbolicCode} creates the subdirectories inside FormulaMarkdown.

  • touch FormulaMarkdown/{README.md,...} creates the files in the root directory.

  • touch FormulaMarkdown/Imaginary/README.md and the rest create README.md in the subfolders.

Run this command in your terminal, and it will create the exact structure and files.


Imported from rifaterdemsahin.com Β· 2024