DEV Community

Cover image for Terminal commands
Hanna
Hanna

Posted on

Terminal commands

I started learning js and learned to use the terminal. Commands that are useful to remember and use for beginners.

pwd Print Working Directory (pwd). You type in that command, and it will spit out the exact file path for the file or folder you are in.

ls To see what is in that folder.

cd Change Directory. Change which folder you are in.
(cd <folder name>)

mkdir Make Directory. To make a new folder.

rm/rmdir To remove a directory. (rmdir <folder name>) The folder must be empty for this to work.

cd .. Moves us back one level to the parent folder.

cd ../.. Moves us back two levels. Add more /.. for each level you want to navigate up.

code . To open Visual Studio Code from terminal

clear it "clears" terminal out.

Top comments (0)