Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
GateraGael committed Jul 6, 2021
1 parent 246ae51 commit d55d1c6
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 7 deletions.
37 changes: 31 additions & 6 deletions .ipynb_checkpoints/01. P1 - Unix-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -39,7 +39,7 @@
"metadata": {},
"source": [
"\n",
"# Practical\n",
"# Code Along\n",
"\n",
"Let's get hands on with some basic linux commands. As they say practice makes perfect. Most of this notebook is comprized of elements from the *Linux for Robotics* course offered by the construct linked here: "
]
Expand Down Expand Up @@ -265,7 +265,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## \"vi\" visual editor\n",
"## \"vi\" or 'vim' command line editor\n",
"\n",
"We will use a command line editor that is native to Unix systems called 'vi' to edit the 'my_file.txt\" that we just created.\n",
"Type in the following command in your shell and pay attention to the very bottom of it.\n",
Expand All @@ -281,7 +281,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## \"vi\" insert mode\n",
"## \"vi\" or 'Vim' insert mode\n",
"\n",
"To actually entert text into your file you need to be in insert mode.\n",
"To get into inset mode please type the letter 'i' and that should be reflected at the very bottom also.\n",
Expand All @@ -293,7 +293,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## \"vi\" save and exit\n",
"## \"vi\" or \"Vim\" save and exit\n",
"\n",
"Once in \"insert mode\" please type in \"Autonomous Air Vehicle Racing\" then exit the insert mode by clicking the escape key on your keyboard.\n",
"Type the following commands to exit and save the file.\n",
Expand Down Expand Up @@ -341,7 +341,7 @@
"\n",
"Do both by chaining commands\n",
"```\n",
"mv renamed_file.txt ~/catkin_ws/src/linux_course_files/move_bb8_pkg/src;cd ~/catkin_ws/src/linux_course_files/move_bb8_pkg/sr\n",
"mv renamed_file.txt ~/catkin_ws/src/linux_course_files/move_bb8_pkg/src;cd ~/catkin_ws/src/linux_course_files/move_bb8_pkg/src\n",
"```\n",
"\n",
"Please type in the **ls -l** command again in order to see the files.\n",
Expand All @@ -363,6 +363,31 @@
"\n",
"Take a look at your windows screen."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Practical"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"1. Move to your ‘notebook_ws’ directory\n",
"2. List the contents of your home directory\n",
"3. Create a new directory called foo\n",
"4. Move into foo\n",
"5. Create a new text file in foo called bar.txt\n",
"6. Add the line “Hello BWSI 2019!” to the file bar.txt\n",
"7. Append the line “My name is ____” to bar.txt\n",
"8. Display the contents of bar.txt\n",
"9. Move up one directory, create a hidden directory called hoo, and copy bar.txt into the hidden directory hoo\n",
"10. Delete bar.txt from directory foo\n",
"\n",
"Volunteer Student to share screen ?"
]
}
],
"metadata": {
Expand Down
27 changes: 26 additions & 1 deletion 01. P1 - Unix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## \"vi\" save and exit\n",
"## \"vi\" or \"Vim\" save and exit\n",
"\n",
"Once in \"insert mode\" please type in \"Autonomous Air Vehicle Racing\" then exit the insert mode by clicking the escape key on your keyboard.\n",
"Type the following commands to exit and save the file.\n",
Expand Down Expand Up @@ -363,6 +363,31 @@
"\n",
"Take a look at your windows screen."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Practical"
]
},
{
"cell_type": "raw",
"metadata": {},
"source": [
"1. Move to your ‘notebook_ws’ directory\n",
"2. List the contents of your home directory\n",
"3. Create a new directory called foo\n",
"4. Move into foo\n",
"5. Create a new text file in foo called bar.txt\n",
"6. Add the line “Hello BWSI 2019!” to the file bar.txt\n",
"7. Append the line “My name is ____” to bar.txt\n",
"8. Display the contents of bar.txt\n",
"9. Move up one directory, create a hidden directory called hoo, and copy bar.txt into the hidden directory hoo\n",
"10. Delete bar.txt from directory foo\n",
"\n",
"Volunteer Student to share screen ?"
]
}
],
"metadata": {
Expand Down

0 comments on commit d55d1c6

Please sign in to comment.