1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-11-21 19:18:02 +00:00

Fix typos

This commit is contained in:
Mo 2023-08-13 22:04:22 +02:00
parent 882599e990
commit e469b22893
3 changed files with 7 additions and 7 deletions

View file

@ -39,7 +39,7 @@ The output is going to be the files and directories in your current path. `ls` s
What if you want to take a look at the content of a different directory at a different path?
To examine this, lets first create a new directory. Enter the command `mkdir empty_house`. Well, you don't see anything? Did the command do something at all? To verify this, run `ls` again. Now you should see your new directory `empty_house` listed too! `mkdir` stands for _make directory_. `empty_house` is just a name for our new directory. You could have used `mkdir Images` for example to create a directory called `Images`.
To examine this, let's first create a new directory. Enter the command `mkdir empty_house`. Well, you don't see anything? Did the command do something at all? To verify this, run `ls` again. Now you should see your new directory `empty_house` listed too! `mkdir` stands for _make directory_. `empty_house` is just a name for our new directory. You could have used `mkdir Images` for example to create a directory called `Images`.
Is `empty_house` really empty? Let's verify that.
@ -68,7 +68,7 @@ Moving is not the same as renaming, right? Well, `mv` does move a file or direct
I know, it is tricky. Let's take a look at an example that does actually _move_. Enter the command `touch friend2.txt friend3.txt`. This will create two new files at the same time. This way, you don't have to type `touch friend2.txt` **and** `touch friend3.txt`.
Now lets move one of our new text files. Enter `mv friend2.txt happy_house`. Enter `ls` to see that `friend2.txt` did disappear. Let's verify that it now lives in `happy_house`. You could use `mv happy_house` and then `ls` analogously to the strategy above. But it is faster to use `ls` directly. Enter `ls happy_house`:
Now let's move one of our new text files. Enter `mv friend2.txt happy_house`. Enter `ls` to see that `friend2.txt` did disappear. Let's verify that it now lives in `happy_house`. You could use `mv happy_house` and then `ls` analogously to the strategy above. But it is faster to use `ls` directly. Enter `ls happy_house`:
```console
$ ls happy_house
@ -88,7 +88,7 @@ We did not only move `friend3.txt`. We did also give it a new name in the destin
What if our house is not really _happy_ anymore since a loud friend did move in? Let's remove that loud friend!
Enter `cd happy_house` and then `rm loud_friend.txt`. You will not see any output, but lets see what has changed in the directory:
Enter `cd happy_house` and then `rm loud_friend.txt`. You will not see any output, but let's see what has changed in the directory:
```console
$ ls happy_house
@ -280,7 +280,7 @@ HOW CAN I EXIT THIS MANUAL? DO I HAVE TO EXIT THE TERMINAL AND OPEN A NEW ONE?
You can exit the manual by pressing the key `q`. You are free now!
Now, lets try the option `-l` that we got from the terminal:
Now, let's try the option `-l` that we got from the terminal:
```console
$ wc -l rules.txt

View file

@ -140,7 +140,7 @@ This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
```
Now lets output the variable that we did define above:
Now, let's output the variable that we did define above:
```console
$ echo $BASH_VERSION
@ -181,7 +181,7 @@ Hello mo!
We see `Hello mo!` as output. This is because my user name on my machine is `mo`. `USER` is a so called environment variable that is defined for all programs. If you run the script on your machine, you will get your user name instead of `mo`. There are more environment variables like `PATH` which we will learn about later.
Now lets run the following:
Now, let's run the following:
```console
$ USER=Tux ./hello.sh

View file

@ -4,7 +4,7 @@
> 📍 : This task should be done on the Contabo server after connecting with SSH to the user that you did create yesterday on the server (not admin).
We want to practice compilation and containers, so lets compile in a container!
We want to practice compilation and containers, so let's compile in a container!
In this task, we want to compile the program `tmate`.