Skip to content

Add info on command help #1393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 15, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions en/intro_to_command_line/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,24 @@ You'll probably see something similar on your machine. Once you open the command

---

### Learn more about a command

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:

<!--sec data-title="Command help: OS X and Linux" data-id="OSX_Linux_pwd" data-collapse=true ces-->

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.

<!--endsec-->


<!--sec data-title="Current directory: Windows" data-id="windows_cd" data-collapse=true ces-->

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 /?`.

<!--endsec-->


### List files and directories

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

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.

Expand Down