From a2b04a4a1c7a3b0fc1e10e582937917285465515 Mon Sep 17 00:00:00 2001 From: ruth Date: Sat, 26 Jul 2014 16:15:21 +0300 Subject: [PATCH 1/5] Added introduction to command line section --- README.md | 21 +++++++++-- SUMMARY.md | 1 + intro_to_command_line/README.md | 65 +++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 intro_to_command_line/README.md diff --git a/README.md b/README.md index e3c017706bf..8e8963fb357 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,27 @@ Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. ## Introduction +Hey girls, the following steps will show you how to use the black window. This window is also called the "command line", "cmd" and "terminal". -Have you ever felt that the world is more and more about technology and you are somehow left behind? Have you ever wondered how to create a website but have never had enough motivation to start? Have you ever thought that the software world is too complicated for you to even try doing something on your own? +Each operating system has a set of commands to the black screen. The Windows system is the most basic version. +Here are some useful commands: -Well, we have good news for you! Programming is not as hard as it seems and we want to show you how fun it could be. +* The **exit** commmand - this will cause the window to close; it makes sense, right? No need to explain a lot ... -The tutorial will not magically turn you into programmer. If you want to be good at it, you need months or even years of learning and practice. But we want to show you that programming or creating websites is not as complicated as it seems. We will try to explain different bits and pieces as well as we can, so you will not feel intimidated by technology. -We hope that we'll be able to make you love technology as much as we do! +* The **cd** command - this command allows you to **c**hange your current **d**irectory. To use the cd command you type cd directoryname and press enter. +For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type **cd A** and press enter. You would then be in the c:\test\A. + + +* The **cd ..** command - this will take you back to the next folder up. + + +* The **dir** command for WIN and **ls** command for other OS - this command will list the files and directories contained in your current directory. If I typed **dir \test** or **ls test** I would see the contents of the c:\test directory. +Also note for many commands you can use the \* symbol which stands for wildcard. With this in mind, typing **dir *.txt** on WIN or **ls *.txt** on other OS will only list those files that end with .txt. + + +* The **copy** command on WIN or **cp** command on other - this command allows you to copy files from one location to another. To use this command you would type **copy *sourcefile targetfile***. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type +**copy c:\test\test.txt c:\windows\test.txt** and press enter. ## What will you learn during the tutorial? diff --git a/SUMMARY.md b/SUMMARY.md index e7a1612dc34..ce3d3e82bf9 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -1,6 +1,7 @@ # Summary * [How the Internet works?](how_internet_works/README.md) +* [Intro to Command Line](intro_to_command_line/README.md) * [Python installation](python_installation/README.md) * [Introduction to Python](python_introduction/README.md) * [What is Django?](django/README.md) diff --git a/intro_to_command_line/README.md b/intro_to_command_line/README.md new file mode 100644 index 00000000000..b3945ffb842 --- /dev/null +++ b/intro_to_command_line/README.md @@ -0,0 +1,65 @@ +# Introduction to Command Line + + +## Introduction +Hey girls, the following steps will show you how to use the black window. This window is also called the "command line", "cmd", "prompt" and "terminal". + +Each operating system has a set of commands for the command line. +Here is a summary of some useful commands: + +| Command (WIN) | Command (Mac OS / Linux) | Description | Example| +| ------------- |-----------|-------------| -----| +| exit | exit | close the window | **exit** | +| cd | cd | change directory | **cd test** | +| dir | ls |list folders/files | **dir** | +| copy | cp | copy file | **copy c:\test\test.txt c:\windows\test.txt** | +| move | mv | move file | **move c:\test\test.txt c:\windows\test.txt** | +| md | mkdir | create a new folder | **md testfolder** | +|del | rm | delete a folder/file | **del c:\test\test.txt** +For more about the above commands, check out the Further Information section below. + +These are just a very few of the possible black window commands. +[ss64.com](http://ss64.com) contains a complete reference of commands for all operating systems. + +## Useful shortcuts + +* Up arrow - rerun previous commands. You can avoid typing the same commands again by using the up arrow key to rerun recently used commands. + + +* Tab key - the tab key will autocomplete folder and file names. For example, typing **dir t ** + Tab will autocomplete to all directories starting with t in the current directory (such as task, test, tutorial). + + +## Further information about the commands above + +* The **exit** commmand - this will cause the window to close; it makes sense, right? No need to explain too much ... + + +* The **cd** command - this command allows you to **c**hange your current **d**irectory. To use the cd command you type cd directoryname and press enter. +For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type **cd A** and press enter. You would then be in the c:\test\A. + + +* The **cd ..** command - this will take you to the next folder up. + + +* The **dir** (WIN) and **ls** (others) command - this will list the files and directories contained in your current directory. If I typed **dir \test** or **ls test** I would see the contents of the c:\test directory. +Also note for many commands you can use the \* symbol which stands for wildcard. With this in mind, typing **dir *.txt** on WIN or **ls *.txt** on other OS will only list those files that end with .txt. + + +* The **copy** (WIN) or **cp** (others) command - this allows you to copy files from one location to another. To use this command you would type **copy *sourcefile targetfile***. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type +**copy c:\test\test.txt c:\windows\test.txt** and press enter. + + +* The **move** (WIN) or **mv** (others) command - this allows you to move files from one location to another. The syntax you use is the same as for the **copy** command. + + +* The **md** (WIN) or **mkdir** (others) command - this allows you to create a new directory. For example **md temp** creates a new folder called temp in the current directory. + + +* The **del** (WIN) or **rm** command (others) - this allows you to delete the specified file. For example, **del test.txt** deletes the test.txt file from the current directory. + + + + + + + From 3011aad5b5b83870bdeea1bb714582f9def9d566 Mon Sep 17 00:00:00 2001 From: ruthshemla Date: Sat, 26 Jul 2014 16:18:03 +0300 Subject: [PATCH 2/5] Update README.md --- intro_to_command_line/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro_to_command_line/README.md b/intro_to_command_line/README.md index b3945ffb842..b5e48d93f69 100644 --- a/intro_to_command_line/README.md +++ b/intro_to_command_line/README.md @@ -34,7 +34,7 @@ These are just a very few of the possible black window commands. * The **exit** commmand - this will cause the window to close; it makes sense, right? No need to explain too much ... -* The **cd** command - this command allows you to **c**hange your current **d**irectory. To use the cd command you type cd directoryname and press enter. +* The **cd** command - this command allows you to **c** hange your current **d** irectory. To use the cd command you type cd directoryname and press enter. For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type **cd A** and press enter. You would then be in the c:\test\A. From 3e7442e6a03755acbf214646ef465158cafa8dfd Mon Sep 17 00:00:00 2001 From: ruthshemla Date: Sat, 26 Jul 2014 16:20:34 +0300 Subject: [PATCH 3/5] Update README.md --- intro_to_command_line/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro_to_command_line/README.md b/intro_to_command_line/README.md index b5e48d93f69..51c483c8753 100644 --- a/intro_to_command_line/README.md +++ b/intro_to_command_line/README.md @@ -34,7 +34,7 @@ These are just a very few of the possible black window commands. * The **exit** commmand - this will cause the window to close; it makes sense, right? No need to explain too much ... -* The **cd** command - this command allows you to **c** hange your current **d** irectory. To use the cd command you type cd directoryname and press enter. +* The **cd** command - this command allows you to change your current directory. To use the cd command you type cd directoryname and press enter. For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type **cd A** and press enter. You would then be in the c:\test\A. From 629d5da007223d26aa11e531de9947e30f037a63 Mon Sep 17 00:00:00 2001 From: ruthshemla Date: Sat, 26 Jul 2014 17:10:17 +0300 Subject: [PATCH 4/5] Update README.md --- intro_to_command_line/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/intro_to_command_line/README.md b/intro_to_command_line/README.md index 51c483c8753..246e44a215e 100644 --- a/intro_to_command_line/README.md +++ b/intro_to_command_line/README.md @@ -7,7 +7,7 @@ Hey girls, the following steps will show you how to use the black window. This Each operating system has a set of commands for the command line. Here is a summary of some useful commands: -| Command (WIN) | Command (Mac OS / Linux) | Description | Example| +| Command (Windows) | Command (Mac OS / Linux) | Description | Example| | ------------- |-----------|-------------| -----| | exit | exit | close the window | **exit** | | cd | cd | change directory | **cd test** | @@ -41,21 +41,21 @@ For example if you are in a directory called c:\test, and there were three direc * The **cd ..** command - this will take you to the next folder up. -* The **dir** (WIN) and **ls** (others) command - this will list the files and directories contained in your current directory. If I typed **dir \test** or **ls test** I would see the contents of the c:\test directory. +* The **dir** (Windows) and **ls** (others) command - this will list the files and directories contained in your current directory. If I typed **dir \test** or **ls test** I would see the contents of the c:\test directory. Also note for many commands you can use the \* symbol which stands for wildcard. With this in mind, typing **dir *.txt** on WIN or **ls *.txt** on other OS will only list those files that end with .txt. -* The **copy** (WIN) or **cp** (others) command - this allows you to copy files from one location to another. To use this command you would type **copy *sourcefile targetfile***. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type +* The **copy** (Windows) or **cp** (others) command - this allows you to copy files from one location to another. To use this command you would type **copy *sourcefile targetfile***. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type **copy c:\test\test.txt c:\windows\test.txt** and press enter. -* The **move** (WIN) or **mv** (others) command - this allows you to move files from one location to another. The syntax you use is the same as for the **copy** command. +* The **move** (Windows) or **mv** (others) command - this allows you to move files from one location to another. The syntax you use is the same as for the **copy** command. -* The **md** (WIN) or **mkdir** (others) command - this allows you to create a new directory. For example **md temp** creates a new folder called temp in the current directory. +* The **md** (Windows) or **mkdir** (others) command - this allows you to create a new directory. For example **md temp** creates a new folder called temp in the current directory. -* The **del** (WIN) or **rm** command (others) - this allows you to delete the specified file. For example, **del test.txt** deletes the test.txt file from the current directory. +* The **del** (Windows) or **rm** command (others) - this allows you to delete the specified file. For example, **del test.txt** deletes the test.txt file from the current directory. From 41c1a1a1f96581266126460c3e8e31e72923cd78 Mon Sep 17 00:00:00 2001 From: ruth Date: Sat, 26 Jul 2014 17:41:14 +0300 Subject: [PATCH 5/5] fix essuses --- README.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 8e8963fb357..e3c017706bf 100644 --- a/README.md +++ b/README.md @@ -9,27 +9,14 @@ Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. ## Introduction -Hey girls, the following steps will show you how to use the black window. This window is also called the "command line", "cmd" and "terminal". -Each operating system has a set of commands to the black screen. The Windows system is the most basic version. -Here are some useful commands: +Have you ever felt that the world is more and more about technology and you are somehow left behind? Have you ever wondered how to create a website but have never had enough motivation to start? Have you ever thought that the software world is too complicated for you to even try doing something on your own? -* The **exit** commmand - this will cause the window to close; it makes sense, right? No need to explain a lot ... +Well, we have good news for you! Programming is not as hard as it seems and we want to show you how fun it could be. +The tutorial will not magically turn you into programmer. If you want to be good at it, you need months or even years of learning and practice. But we want to show you that programming or creating websites is not as complicated as it seems. We will try to explain different bits and pieces as well as we can, so you will not feel intimidated by technology. -* The **cd** command - this command allows you to **c**hange your current **d**irectory. To use the cd command you type cd directoryname and press enter. -For example if you are in a directory called c:\test, and there were three directories in that the test directory called A, B, and C, you could just type **cd A** and press enter. You would then be in the c:\test\A. - - -* The **cd ..** command - this will take you back to the next folder up. - - -* The **dir** command for WIN and **ls** command for other OS - this command will list the files and directories contained in your current directory. If I typed **dir \test** or **ls test** I would see the contents of the c:\test directory. -Also note for many commands you can use the \* symbol which stands for wildcard. With this in mind, typing **dir *.txt** on WIN or **ls *.txt** on other OS will only list those files that end with .txt. - - -* The **copy** command on WIN or **cp** command on other - this command allows you to copy files from one location to another. To use this command you would type **copy *sourcefile targetfile***. For example if you have the file c:\test\test.txt and would like to copy it to c:\windows\test.txt you would type -**copy c:\test\test.txt c:\windows\test.txt** and press enter. +We hope that we'll be able to make you love technology as much as we do! ## What will you learn during the tutorial?