„README.md“ ändern

This commit is contained in:
2023-01-13 12:09:10 +01:00
parent 833fb9a190
commit bb8330b43e

View File

@@ -13,10 +13,35 @@ Ctrl + e : move to the end of line.
Ctrl + w : cut the word before the cursor; then Ctrl + y paste it
Ctrl + u : cut the line; then Ctrl + y paste it
Ctrl + x + Ctrl + e : launch editor defined by $EDITOR to input your command. Useful for multi-line commands.
Esc + c : converts letter under the cursor to uppercase, rest of the word to lowercase.
```
### ... With My Own Configuration
### ... with my own configuration
```
Ctrl + t : print current date
```
### environment variables
```
$0 : name of shell or shell script.
$1, $2, $3, ... : positional parameters.
$# : number of positional parameters.
$? : most recent foreground pipeline exit status.
$- : current options set for the shell.
$$ : pid of the current shell (not subshell).
$! : is the PID of the most recent background command.
$USER : current username
$HOSTNAME : current hostname
```
### length of variable
```
var="some string"
echo ${#var}
# 11
```