From 92d221897c2a2f79be5e3826895f4cd7f34d8b32 Mon Sep 17 00:00:00 2001 From: Connie Lei <23634958+connielei@users.noreply.github.com> Date: Fri, 23 Nov 2018 12:05:44 -0500 Subject: [PATCH] added examples, made explanations clearer (#26233) --- .../macos-terminal/index.md | 32 +++++++------------ 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/guide/english/terminal-commandline/macos-terminal/index.md b/guide/english/terminal-commandline/macos-terminal/index.md index 960fef7be4..5e0554b448 100644 --- a/guide/english/terminal-commandline/macos-terminal/index.md +++ b/guide/english/terminal-commandline/macos-terminal/index.md @@ -10,33 +10,25 @@ Most of the time users interact through a Graphical User Interface to interact w ### Opening the Terminal and Navigating Directories Your terminal exists in the Applications directory. Open your Terminal app. You should see a prompt in the terminal window. it shoudl have the computer's name (ABC's Macbook), followed by the User name (ABC), and then a '$.' If you are in the root directory, the last character will be a '#.' -To see what directory you are working in, just type the command +To see what directory you are working in, use ```pwd``` which stands for "print working directory" +Directory is another word for folder. -```pwd``` +If you want to list the directory's contents, use ```ls``` -pwd stands for "Print Working Directory." Directory is another word for folder. - -If you want to list the contents of your directory use the command: - -```ls``` - -To switch to a new directory you use the command: - -```cd``` - -which stands for change directory. +To change directories, use ```cd ``` which stands for change directory and replace the angle brackets with the appropriate path name. +If you are currently in `Documents` and want to move into the directory/folder `hello_world` which is inside `Documents` use `cd hello_world` Here is a list of common commands: Command | Usage ------------ | ------------- -pwd | Print Working Directory (Where Am I? ) -ls | List contents of current directory -mkdir | Create a new directory -touch | Create a new file -cp| Copy a file -rm | Remove a file -rm -rf | Remove a directory +`pwd` | Print Working Directory (Where Am I? ) +`ls` | List contents of current directory +`mkdir ` | Create a new directory +`touch ` | Create a new file +`cp ` | Copy a file +`rm ` | Remove a file +`rm -rf ` | Forcibly remove a directory ### Usage Examples