ls -lah part_1diff --git a/docs/Intro_to_Unix/Intro_to_Unix_Part_1.html b/docs/Intro_to_Unix/Intro_to_Unix_Part_1.html index 4f43156..fbd0ae9 100644 --- a/docs/Intro_to_Unix/Intro_to_Unix_Part_1.html +++ b/docs/Intro_to_Unix/Intro_to_Unix_Part_1.html @@ -324,6 +324,9 @@
Shell commands are basic instructions used to perform specific tasks.
command_name -[option(s)] [argument(s)]
Example:
+Here we are providing multiple options to the ls command and the directory part_1 as an argument
ECHO(1) General Commands Manual ECHO(1)
@@ -601,6 +607,8 @@ macOS 14.4 January 9, 2021 macOS 14.4
Hello, World
clear to clear the output from the terminalpart_1
part_2
@@ -687,11 +698,11 @@ unix_workshop.tar.gz
-h file sizes in human readable format (e.g., 1K, 2G)total 8
-drwx---r--@ 4 nelphick staff 128B Nov 11 10:58 .
-drwxr-xr-x@ 6 nelphick staff 192B Nov 11 10:58 ..
+drwx---r--@ 4 nelphick staff 128B Nov 11 11:00 .
+drwxr-xr-x@ 6 nelphick staff 192B Nov 11 11:00 ..
-rw-r--r--@ 1 nelphick staff 0B Apr 11 2023 .hidden_file.txt
-rw-r--r--@ 1 nelphick staff 60B Apr 12 2023 list_numbers.tsv
total 8
-drwx---r--@ 4 nelphick staff 128 Nov 11 10:58 part_1
-drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
+drwx---r--@ 4 nelphick staff 128 Nov 11 11:00 part_1
+drwxr-xr-x@ 3 nelphick staff 96 Nov 11 11:00 part_2
-rw-r--r-- 1 nelphick staff 1790 Nov 11 10:43 unix_workshop.tar.gz
-p make parent directories if they don’t exist-r to copy a folder (recursive) 0B new_directory/new_file1.txt
4.0K part_1/list_numbers.tsv
@@ -827,7 +838,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
-o gives the output file name and locationRegular Expressions : sequence of characters that forms a search pattern
7 8 52 13 6 42 79 1
13 4 9 82 67 71 93 3
@@ -935,7 +946,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
1 3 6 10 11 22 0 3
13 4 9 82 67 71 93 3
@@ -945,13 +956,13 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
13 4 9 82 67 71 93 3
1 3 6 10 11 22 0 3
7 8 52 13 6 42 79 1
@@ -975,7 +986,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
cut: get specific columns from a file
-
+
1 3 6 22
7 8 52 42
@@ -996,7 +1007,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
- Chaining commands allows you to do complex operations on text streams
-
+
1 3 6
13 4 9
@@ -1009,14 +1020,14 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
- The output of any command can be written to a file with the ” > ” character
-
+
tr: translate or substitute characters
-
+
1,3,6,10,11,22,0,3
7,8,52,13,6,42,79,1
@@ -1027,7 +1038,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
sort: sort values
-
+
1
7
@@ -1038,7 +1049,7 @@ drwxr-xr-x@ 3 nelphick staff 96 Nov 11 10:58 part_2
- -n : sort numerically (default is alphabetical)
-
+
total 16
-drwx---r--@ 4 nelphick staff 128 Nov 11 11:00 part_1
--rw-r--r-- 1 nelphick staff 800 Nov 11 11:00 part_1.tar.gz
-drwxr-xr-x@ 4 nelphick staff 128 Nov 11 11:00 part_2
+drwx---r--@ 4 nelphick staff 128 Nov 11 12:31 part_1
+-rw-r--r-- 1 nelphick staff 800 Nov 11 12:32 part_1.tar.gz
+drwxr-xr-x@ 4 nelphick staff 128 Nov 11 12:32 part_2
-rw-r--r-- 1 nelphick staff 1790 Nov 11 10:43 unix_workshop.tar.gz
@@ -473,7 +473,7 @@ ENSG00000149527 ENST00000449969 ENSP00000397289 XM_047435038 RefSeq_mRNA_pred
--rw-r--r-- 1 nelphick staff 287 Nov 11 11:00 part_2/example_script.sh
+-rw-r--r-- 1 nelphick staff 287 Nov 11 12:32 part_2/example_script.sh
@@ -483,7 +483,7 @@ ENSG00000149527 ENST00000449969 ENSP00000397289 XM_047435038 RefSeq_mRNA_pred
--rwxr--r-- 1 nelphick staff 287 Nov 11 11:00 part_2/example_script.sh
+-rwxr--r-- 1 nelphick staff 287 Nov 11 12:32 part_2/example_script.sh
diff --git a/intro-unix-command-line/Intro_to_Unix_Part_1.qmd b/intro-unix-command-line/Intro_to_Unix_Part_1.qmd
index cc31976..fa39332 100644
--- a/intro-unix-command-line/Intro_to_Unix_Part_1.qmd
+++ b/intro-unix-command-line/Intro_to_Unix_Part_1.qmd
@@ -142,6 +142,7 @@ Shell commands are basic instructions used to perform specific tasks.
Example:
```{bash}
#| eval: false
+#| echo: true
ls -lah part_1
```
@@ -151,6 +152,11 @@ Here we are providing multiple options to the `ls` command and the directory **p
## man: pull up the manual page for a command
+```{bash}
+#| echo: true
+#| eval: false
+man echo
+```
```{bash}
@@ -172,6 +178,7 @@ man -P cat man | col -b
- **Variables** : a named container that holds a value or data
- **Strings** : sequence of characters
```{bash}
+#| echo: true
message="Hello, World"
echo $message
```
@@ -183,6 +190,8 @@ Here, we assign the string "Hello, World!" to the variable `message` and use ech
- By default bash stores the last 500 commands, zsh stores the last 1000
```{bash}
+#| echo: true
+#| eval: false
history
```