Skip to content
Open
Show file tree
Hide file tree
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
Empty file added exaple.txt
Empty file.
118 changes: 70 additions & 48 deletions solutions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: echo \"Hello world\""
]
},
{
Expand All @@ -38,7 +38,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: mkdir new_dir"
]
},
{
Expand All @@ -54,7 +54,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: rmdir new_dir"
]
},
{
Expand All @@ -70,7 +70,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:cp sed.txt ../lorem_copy"
]
},
{
Expand All @@ -86,7 +86,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: cp lorem.txt at.txt ../lorem_copy"
]
},
{
Expand All @@ -102,7 +102,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:cat sed.txt"
]
},
{
Expand All @@ -118,7 +118,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: head -3 sed.txt"
]
},
{
Expand All @@ -134,7 +134,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: head -3 sed.txt"
]
},
{
Expand All @@ -150,7 +150,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: tail -3 sed.txt"
]
},
{
Expand All @@ -166,7 +166,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:echo \"Homo homini lupus.\" >> sed.txt"
]
},
{
Expand All @@ -182,7 +182,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: tail -3 sed.txt"
]
},
{
Expand All @@ -198,7 +198,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:sed '/et/ET' sed.txt"
]
},
{
Expand All @@ -214,7 +214,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: whoami"
]
},
{
Expand All @@ -230,7 +230,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:pwd"
]
},
{
Expand All @@ -246,7 +246,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:find . -type f -name \"*.txt\""
]
},
{
Expand All @@ -262,7 +262,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:wc -l sed.txt"
]
},
{
Expand All @@ -278,7 +278,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:find . -type f -name \"lorem.*\" | wc -l"
]
},
{
Expand All @@ -294,7 +294,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o -i et lorem/at.txt"
]
},
{
Expand All @@ -310,7 +310,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o -i et lorem/at.txt | wc -l"
]
},
{
Expand All @@ -326,7 +326,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: grep -o -i et lorem/* | wc -l"
]
},
{
Expand All @@ -349,7 +349,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:name=Patricia"
]
},
{
Expand All @@ -365,7 +365,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:$name"
]
},
{
Expand All @@ -381,7 +381,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:mkdir Patricia"
]
},
{
Expand All @@ -394,10 +394,10 @@
]
},
{
"cell_type": "markdown",
"cell_type": "raw",
"metadata": {},
"source": [
"The command:"
"The command:rmdir Patricia"
]
},
{
Expand All @@ -417,7 +417,17 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
" for file in lorem/*; do\n",
"\n",
" filename=$(basename \"$file\")\n",
" \n",
" length=${#filename}\n",
" \n",
" echo \"$filename has $length characters\"\n",
" \n",
" done\n"
]
},
{
Expand All @@ -433,10 +443,24 @@
]
},
{
"attachments": {},
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"top command no available in my git bash\n",
"\n",
"$ ps\n",
" PID PPID PGID WINPID TTY UID STIME COMMAND\n",
" \n",
" 555 554 555 1736 pty0 197609 22:01:03 /usr/bin/bash\n",
" \n",
" 654 555 654 10564 pty0 197609 22:06:16 /usr/bin/ps\n",
" \n",
" 554 1 554 16928 ? 197609 22:01:03 /usr/bin/mintty\n",
"\n",
"\n"
]
},
{
Expand All @@ -452,7 +476,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command: wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status"
]
},
{
Expand All @@ -468,7 +492,19 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"\n",
"touch .bash_profile\n",
"nano bash_profile\n",
"\n",
"alias Ironhac=\"cd ../../PATRICIA/Ironhack\"\n",
"alias Laboratories=\"cd ../../PATRICIA/Ironhack/Laboratories\"\n",
"alias Lectures=\"cd ../../PATRICIA/Ironhack/Lectures\"\n",
"\n",
"ctrl+X\n",
"Y\n",
"\n",
"----restart github---"
]
},
{
Expand All @@ -484,23 +520,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
]
},
{
"cell_type": "markdown",
"metadata": {
"lang": "en"
},
"source": [
"#### Unpack the lorem-compressed.tar.gz file into the lorem-uncompressed folder"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:tar -czvf lorem-compressed.tar.gz lorem lorem-copy"
]
},
{
Expand All @@ -516,7 +536,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The command:"
"The command:\n",
"mkdir lorem-uncompressed\n",
"tar -xzvf lorem-compressed.tar.gz -C lorem-uncompressed/"
]
}
],
Expand All @@ -536,7 +558,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.11.4"
},
"nbTranslate": {
"displayLangs": [
Expand Down