computer Terminal coding nighttime

computer Terminal coding nighttime

This week there were a few topics that I found interesting. The most interesting to me was creating project folders in terminal. It’s different working on your computer and being able to make changes to it simply by typing a few letters. I especially like it because it feels like I’m performing a magic trick.

If I had to say something about it was challenging, it would be remembering where I am in the directory before I start making changes. My instinct is to just go typing away creating files and folders but if I’m in the wrong place then it’s all in vain. Well, not really because I can move them around in finder but it would waste time.

To make a new folder in Terminal, after check that I am in the right location, I would type the “mkdir” followed by the name of the folder I want to create then hit enter. If I wanted to create a new file in that folder, I would then type “touch” followed by the name of the file I want to create. So to create a folder for “Magic” I would type “mkdir magic” and if I wanted to create a file called “Tricks” in the Magic folder, I would need to change directory’s first. So if the Magic folder was created in the desktop folder I would type “cd ~/desktop/magic” hit enter. I would then type “touch Tricks” and hit enter and this would create a file called “Tricks” in the “Magic folder.”

Big tip: Always check that you are in the right directory before making changes.

Oskar Yildiz




Add Comment

Your email address will not be published. Required fields are marked *