From e6a12dc8049ea2766373ffd10d6760c1fa37b96c Mon Sep 17 00:00:00 2001 From: Jon Pipitone Date: Mon, 8 Apr 2013 14:32:28 -0400 Subject: [PATCH] Cheatsheet based on @LJWilliams's version (PR #30) with updates to match the Guide --- shell_cheatsheet.md => shell/shell_cheatsheet.md | 5 ++++- shell_outline.md | 10 ---------- 2 files changed, 4 insertions(+), 11 deletions(-) rename shell_cheatsheet.md => shell/shell_cheatsheet.md (96%) delete mode 100644 shell_outline.md diff --git a/shell_cheatsheet.md b/shell/shell_cheatsheet.md similarity index 96% rename from shell_cheatsheet.md rename to shell/shell_cheatsheet.md index 14bcdd3..707362e 100644 --- a/shell_cheatsheet.md +++ b/shell/shell_cheatsheet.md @@ -10,6 +10,9 @@ | `~` | refers to your home directory. _Note:_ this command does NOT work on Windows machines (Mac and Linux are okay) | | `cd ./dirname` | changes the current directory to the directory `dirname` | | `ls -F` | tells you what files and directories are in the current directory | +| `pwd` | tells you what directory you are in (`pwd` stands for *p*rint *w*orking *d*irectory) | +| `history` | lists previous commands you have entered. `history | less` lets you page through the list. | +| `man` *cmd* | displays the *man*ual page for a command. | @@ -160,7 +163,7 @@ continues the loop as long as the value in the variable COUNTER is less than 10 | `-lt` | less than | | `-le` | less than or equal to | - +Use `man bash` or `man test` to learn about other operators you can use. diff --git a/shell_outline.md b/shell_outline.md deleted file mode 100644 index 5227edb..0000000 --- a/shell_outline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Is Software Carpentry Right for you? ---- - -## Shell Outline -The Software Carpentry lessons on the shell will cover: -* How to create, delete and move files and directories using the command line -* How to use pipes and filters to redirect the input/output of commands to get commands to work together -* How to assign values to shell variables and reference them in your own code -* How to create loops to simplify repetitive tasks -* How to put all of the above into a script/function save and run later -- 2.26.2