en/README.md aktualisiert

This commit is contained in:
develcooking 2024-11-11 17:34:31 +00:00
parent e86005f2f9
commit 4a2f542a88
1 changed files with 19 additions and 3 deletions

View File

@ -4,7 +4,9 @@ It's intended as a general guide/cheet cheet for linux beginners on the command
This Cheet Cheet assumes you use a Debian based system like Ubuntu but can be also applied to other Posix systems like MacOS and in some degree to non Posix systems like Windows. There are also definitions for each word that is not well know. This Cheet Cheet assumes you use a Debian based system like Ubuntu but can be also applied to other Posix systems like MacOS and in some degree to non Posix systems like Windows. There are also definitions for each word that is not well know.
I would always recommend to watch those 2 Videos to get a core understanding of common Linux things: I would always recommend to watch those 2 Videos to get a core understanding of common Linux things:
https://youtu.be/LKCVKw9CzFo https://youtu.be/LKCVKw9CzFo
https://youtu.be/42iQKuQodW4 https://youtu.be/42iQKuQodW4
--- ---
@ -170,7 +172,7 @@ But there are also some relative path variables that you need to remember:
`mkdir` will create a empty directory `mkdir` will create a empty directory
* `mkdir ~/` * `mkdir ~/`
##### Edit files using an text editor of choice ex. [nano](#nano) or [vim](# Vi/Vim/Nvim) ##### Edit files using an text editor of choice ex. [nano](#nano) or [vim](#vi-vim-vim)
##### rm ##### rm
`rm` to remove files or/and directorys `rm` to remove files or/and directorys
* use `rm -r` to remove directorys * use `rm -r` to remove directorys
@ -204,7 +206,7 @@ echo "hi, this is a test" >> installedpackages.txt
``` ```
##### Scripting ##### Scripting
If your want to combined commands you can write a shell script for that. You can use a graphical text editor like vscode or you could use a terminal text editor like [nano](#nano) or [vim](# Vi/Vim/Nvim) If your want to combined commands you can write a shell script for that. You can use a graphical text editor like vscode or you could use a terminal text editor like [nano](#nano) or [vim](#vi-vim-vim)
```bash ```bash
#!/bin/bash #!/bin/bash
@ -275,7 +277,21 @@ jp:~/ $ neofetch
``` ```
### Grep ### Grep
WIP Grep is a basic but very blessing tool on linux with it you can search throught really anything (which is text based). Its most common used in combination with [Piping, Redirecting and Shellscripting](#Piping,-Redirecting-and-Shellscripting).
It can be used with "basic Syntax like:
```
apt list --installed |grep vpn
```
This would show you all installed packages with the "vpn" in the name.
with the `-E` flag standing for Extended Regular Expressions grep can search for a ERE for a definition see [here](https://en.wikibooks.org/wiki/Regular_Expressions/POSIX-Extended_Regular_Expressions)
```
grep '^linux' file.txt
```
for more examples [see](https://linuxize.com/post/regular-expressions-in-grep/)
### ssh ### ssh
WIP WIP