Skip to content

Commit

Permalink
Merge pull request #4 from node-girls/command-line-cheatsheet
Browse files Browse the repository at this point in the history
Command line cheatsheet
  • Loading branch information
iteles committed Feb 27, 2016
2 parents 281c191 + 81201a8 commit 39e06fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
14 changes: 14 additions & 0 deletions command-line-cheatsheet.md
Original file line number Diff line number Diff line change
@@ -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 <folder-name>` | 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 <folder-name>` | Creates a new folder with the name specified. eg. `mkdir new-project` |
| `touch <file-name>` | Creates a new file with the name specified. eg. `touch index.html` |
| `rm <file-name>` | Removes the specified file. eg. `rm script.js` |
2 changes: 1 addition & 1 deletion node-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <package-name>` | 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. |

0 comments on commit 39e06fc

Please sign in to comment.