- Path: The location in the filesystem corresponding to a resource.
- C:\Users\zachl\Documents\MSP\WS1\ is the path to this file on my hard drive.
- C:\Users\ is the path which contains all of the user data on your machine.
- Directory: A folder.
- Folders end in \ (backslash) on Windows.
- File: A file.
- Files do not end in \
- A file can contain text (.txt), a webpage (.html), be executable (.exe), etc...
- Executable: A file containing compiled code.
- Executables are runnable.
- Every command run from the command prompt is an executable. We will be using
node
,cmd
,npm
, and others.
- Working Directory: The context of an executable is very important. The working directory is the directory which the command prompt instance is currently in.
- How to use it, and what are the analogous actions within a GUI?
- Type
cmd
into your search bar. - Run the command prompt
cd
displays the current pathcd <path>
changes the working directory to that location.dir
lists all files and sub-directories in the working directory.dir <path>
lists all files and sub-directories insidecd ..
changs the working directory to be the current directory's parent directory- Presing tab will auto-fill partial paths
- Run (or execute) an executable by typing
<name of executable>
in the cmd.
- Go to the node.js website
- Download node for your platform
- Install node
- Test node by running:
node -v
- Test npm by running:
npm
- Congratulations. You've just run the node executable, and the npm executable. The node executable is found at C:\Program Files\nodejs\node.exe