Skip to content

Commit 193d245

Browse files
authored
Merge pull request DjangoGirls#1393 from jhodgdon-drp/patch-10
Add info on command help
2 parents b8501d9 + ef21f9c commit 193d245

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

en/intro_to_command_line/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,24 @@ You'll probably see something similar on your machine. Once you open the command
149149

150150
---
151151

152+
### Learn more about a command
153+
154+
Many commands you can type at the command prompt have built-in help that you can display and read! For example, to learn more about the current directory command:
155+
156+
<!--sec data-title="Command help: OS X and Linux" data-id="OSX_Linux_pwd" data-collapse=true ces-->
157+
158+
OS X and Linux have a `man` command, which gives you help on commands. Try `man pwd` and see what it says, or put `man` before other commands to see their help. The output of `man` is normally paged. Use the space bar to move to the next page, and `q` to quit looking at the help.
159+
160+
<!--endsec-->
161+
162+
163+
<!--sec data-title="Current directory: Windows" data-id="windows_cd" data-collapse=true ces-->
164+
165+
Adding a `/?` suffix to most commands will print the help page. You may need to scroll your command window up to see it all. Try `cd /?`.
166+
167+
<!--endsec-->
168+
169+
152170
### List files and directories
153171

154172
So what's in it? It'd be cool to find out. Let's see:
@@ -416,6 +434,7 @@ move | mv | move file | **mo
416434
mkdir | mkdir | create a new directory | **mkdir testdirectory**
417435
rmdir (or del) | rm | delete a file | **del c:\test\test.txt**
418436
rmdir /S | rm -r | delete a directory | **rm -r testdirectory**
437+
[CMD] /? | man [CMD] | get help for a command | **cd /?** (Windows) or **man cd** (Mac OS / Linux)
419438

420439
These are just a very few of the commands you can run in your command line, but you're not going to use anything more than that today.
421440

0 commit comments

Comments
 (0)