diff --git a/docs/Intro_to_Unix_Part_1.html b/docs/Intro_to_Unix_Part_1.html index 7dd1cb4..d82eb03 100644 --- a/docs/Intro_to_Unix_Part_1.html +++ b/docs/Intro_to_Unix_Part_1.html @@ -581,7 +581,6 @@ computers before graphical interfaces like Windows
mkdir unix_workshop
cd unix_workshop
-
curl -L -o workshop.tar.gz https://www.dropbox.com/s/ucyktc9c3oq4chp/test.tar.gz?dl=0
-
tar -xzf workshop.tar.gz
-
cd workshop
+
curl -L -o unix_workshop_2023.tar.gz https://www.dropbox.com/s/smb12au2y82jmvq/unix_workshop_2023.tar.gz?dl=0
+
tar -xzf unix_workshop_2023.tar.gz
+
cd unix_workshop_2023

The shell

@@ -642,11 +641,11 @@ workshop.

tasks.


Basic structure of commands:
-command_name [option(s)] [argument(s)]

+command_name -[option(s)] [argument(s)]

Example:

ls -lah part_1

Here we are providing multiple options to the ls command -and the directory part_1 as an argument

+and the directory part_1 as an argument

man: pull up the manual page for a command

@@ -929,6 +928,10 @@ down arrow keys 1000
history
+
@@ -1249,10 +1252,10 @@ directory

cut: get specific columns from a file

-
cut -f 1-3 part_1/list_numbers.tsv
-
1   3   6
-7   8   52
-13  4   9
+
cut -f 1-3,6 part_1/list_numbers.tsv
+
1   3   6   22
+7   8   52  42
+13  4   9   71
  • -f : fields that should be returned
  • -d : delimiter - character that the columns are separated by
  • @@ -1264,6 +1267,8 @@ characters.

    Combining Commands

    • Pipes “|” connect one command to another
    • +
    • The output of the previous command is used as the input for the next +one
    • Chaining commands allows you to do complex operations on text streams
    @@ -1327,7 +1332,7 @@ time

    Survey