├── 05-absolute_and_relative_filepaths ├── commands.sh └── README.md ├── 06-things_to_watch_out_for ├── challenge_solution │ ├── commands.sh │ └── README.md └── video_solution │ ├── README.md │ └── commands.sh ├── 02-basic_file_structure ├── commands.sh └── README.md ├── 04-file_viewing_and_editing ├── commands.sh └── README.md ├── README.md ├── 01-running_basic_commands ├── README.md └── commands.sh └── 03-working_with_files_and_folders ├── video_solution ├── commands.sh └── README.md └── challenge_solution ├── README.md └── commands.sh /05-absolute_and_relative_filepaths/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `Absolute And Relative Filepaths` video 2 | 3 | # Show the absolute path to the `README.md` file 4 | readlink -f README.md 5 | -------------------------------------------------------------------------------- /06-things_to_watch_out_for/challenge_solution/commands.sh: -------------------------------------------------------------------------------- 1 | # The solution the challenge in the `Things To Watch Out For` unit 2 | 3 | # Check to see where we are 4 | pwd 5 | 6 | # If we are not in the `hello_world` directory we can cd there 7 | cd /home/ubuntu/workspace 8 | 9 | # Once we're in there we can create the new directory 10 | mkdir new_folder -------------------------------------------------------------------------------- /02-basic_file_structure/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `Basic File Structure` video 2 | 3 | # Get the current location (print working directory) 4 | pwd 5 | 6 | # List all of the files in current directory 7 | ls 8 | 9 | # Change directory (go up one) 10 | cd .. 11 | 12 | # Change into the workspace directory (if it exists inside of the current working directory) 13 | cd workspace -------------------------------------------------------------------------------- /04-file_viewing_and_editing/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `File Viewing And Editing` video 2 | 3 | # Open nano with a new file called `hello.txt` 4 | nano hello.txt 5 | 6 | # View the contents of the `hello.txt` file 7 | cat hello.txt 8 | 9 | # Create the `world.txt` file 10 | touch world.txt 11 | 12 | # View the differences between `hello.txt` and `world.txt` 13 | diff hello.txt world.txt 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | The repo contains the solution code for the *The Command-Line Interface* lesson. 4 | 5 | ## Contents 6 | This solution contains solution code to the following units - 7 | 1. *01-running_basic_commands* 8 | 2. *02-basic_file_structures* 9 | 3. *03-working_with_files_and_folders* 10 | 4. *04-file_viewing_and_editing* 11 | 5. *05-absolute_and_relative_filepaths* 12 | 6. *06-things_to_watch_out_for* -------------------------------------------------------------------------------- /02-basic_file_structure/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /01-running_basic_commands/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /04-file_viewing_and_editing/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /05-absolute_and_relative_filepaths/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /03-working_with_files_and_folders/video_solution/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `Working With Files and Folders` video 2 | 3 | # Create a file called `hello.txt` 4 | touch hello.txt 5 | 6 | # Delete a file called `hello.txt` 7 | rm hello.txt 8 | 9 | # Make a directory called `hello` 10 | mkdir hello 11 | 12 | # Copy `hello.txt` into `hello` 13 | cp hello.txt hello 14 | 15 | # Move `hello.txt` into `hello` 16 | mv hello.txt hello 17 | 18 | # Delete a directory called `hello` 19 | rm -rf hello -------------------------------------------------------------------------------- /06-things_to_watch_out_for/video_solution/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /01-running_basic_commands/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `Running Basic Commands` video 2 | 3 | # Print out "Hello World" 4 | echo Hello World 5 | 6 | # Print out "Hello Cloud9" 7 | echo Hello Cloud9 8 | 9 | # Show the history of all of the commands that were ran in the terminal 10 | history 11 | 12 | # Rerun the very first command that was run from the terminal 13 | !1 14 | 15 | # Clear the screen to remove unnecessary clutter from the terminal 16 | clear 17 | 18 | # Close the terminal 19 | exit -------------------------------------------------------------------------------- /03-working_with_files_and_folders/video_solution/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /06-things_to_watch_out_for/challenge_solution/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /03-working_with_files_and_folders/challenge_solution/README.md: -------------------------------------------------------------------------------- 1 | # The Command-Line Interface 2 | 3 | This is our first look at the command-line interface. The command-line interface is the lowest level interface that we have with a computer, and can accomplish all of the things that we would normal do with a Graphical User Interface (GUI), and much more! 4 | 5 | ## Technologies Used 6 | 7 | In this project we used the terminal to execute some commands to move around the file system and create, modify and delete files and folders. -------------------------------------------------------------------------------- /06-things_to_watch_out_for/video_solution/commands.sh: -------------------------------------------------------------------------------- 1 | # The commands that are used in the `Things To Watch Out For` video 2 | 3 | # Create two folders - `hello` and `world` 4 | mkdir hello world 5 | 6 | # Delete each directory 7 | rm -rf hello 8 | rm -rf world 9 | 10 | # Or, delete both at once 11 | rm -rf hello world 12 | 13 | # Create two files - `hello` and `world.txt` 14 | nano hello world.txt 15 | 16 | # Delete each file 17 | rm hello 18 | rm world.txt 19 | 20 | # Or, delete both at once 21 | rm hello world.txt -------------------------------------------------------------------------------- /03-working_with_files_and_folders/challenge_solution/commands.sh: -------------------------------------------------------------------------------- 1 | # The solution the challenge in the `Working With Files And Folders` unit 2 | 3 | # Create a new folder called `codingLanguages` 4 | mkdir codingLanguages 5 | 6 | # Create a new file called `html.txt` 7 | touch html.txt 8 | 9 | # Create a new file called `css.txt` 10 | touch css.txt 11 | 12 | # Move `html.txt` into `codingLanguages` 13 | mv html.txt codingLanguages 14 | 15 | # Copy `css.txt` in `codingLanguages` 16 | cp css.txt codingLanguages 17 | 18 | # Delete the `codingLanguages` directory 19 | rm -rf codingLanguages 20 | 21 | # Verify that there is still a `css.txt` file, but no `html.txt` file, or `codingLanguages` directory 22 | ls --------------------------------------------------------------------------------