How to Create Folders and Files Using the Command Line on MacOS Terminal | Code with Astra Rai

Опубликовано: 26 Апрель 2026
на канале: Astra Rai - The Sober Coder
87
4

How to Create Folders and Files Using the Command Line on MacOS Terminal Code with Astra Rai

Use the following commands to make a new folder and files while working from the Mac Os terminal:

print working directory | pwd
change directory | cd
make a new directory/folder | mkdir
create new files | touch
list files in the new folder | ls
open new folder | open

For a step-by-step guide for this exercise, view my FreeCodeCamp Technical Document Page Project in the following CodePen: https://codepen.io/Astra_Rai/pen/dyGgmmO


Twitter:   / astrarai  
LinkedIn:   / astra-rai…  
Medium:   / astrarai  
GitHub: https://github.com/Astra-Rai