diff --git a/README.md b/README.md index 4c471b0..7bc1f9e 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,5 @@ A set of cheatsheets and glossary terms that will be useful for completing the Node Girls workshops. -* [Node Cheatsheet](https://github.com/node-girls/cheatsheets/master/node-cheatsheet.md) +* [Node Cheatsheet](https://github.com/node-girls/cheatsheets/blob/master/node-cheatsheet.md) +* [Command Line Cheatsheet](https://github.com/node-girls/cheatsheets/blob/master/command-line-cheatsheet.md) diff --git a/command-line-cheatsheet.md b/command-line-cheatsheet.md new file mode 100644 index 0000000..1a934b1 --- /dev/null +++ b/command-line-cheatsheet.md @@ -0,0 +1,14 @@ +# Command Line Cheatsheet + +A go-to list of simple commands for your terminal. + + +| Term | Meaning | +|-----------------------|----------------------------------| +| `pwd` | Stands for "print working directory". Will tell you the path to the folder you are currently in. | +| `cd ` | Stands for "change directory". Will move you into the folder specified. eg. `cd documents` or `cd documents/node-project` | +| `cd ..` | Moves you back one folder, to the parent directory. | +| `ls` | Lists all the files and folders in the current directory. | +| `mkdir ` | Creates a new folder with the name specified. eg. `mkdir new-project` | +| `touch ` | Creates a new file with the name specified. eg. `touch index.html` | +| `rm ` | Removes the specified file. eg. `rm script.js` | diff --git a/node-cheatsheet.md b/node-cheatsheet.md index a4deb24..566b09a 100644 --- a/node-cheatsheet.md +++ b/node-cheatsheet.md @@ -12,5 +12,5 @@ A glossary of terms for Node.js. | `npm package` | Open source Node project, published on npm. | | `npm init` | Command run in the terminal to initialise your Node project and create a package.json file. | | `npm install ` | Command run in the terminal to install an npm package. | -| `package.json` | File holding various metadata about a Node project, such as project name, description or license information, installed packages (or dependencies). Usually located in the root directory. Package.json cheatsheet [here](http://browsenpm.org/package-json). | +| `package.json` | File holding various metadata about a Node project, such as project name, description or license information, installed packages (aka dependencies). Usually located in the root directory. Package.json cheatsheet [here](http://browsenpm.org/package-json). | | `dependencies` | Packages installed from npm that are necessary to run the project successfully. Listed in the package.json. |