Skip to content
Snippets Groups Projects
Commit e4a36893 authored by Hussam Moammar's avatar Hussam Moammar
Browse files

Edit Woche 06.md

parent 9d36a46c
No related branches found
No related tags found
No related merge requests found
# Linux Shell Script - Hello World & Permissions # Linux Shell Script
## Vorlesung 11-29-2024 ## Vorlesung 11-29-2024
...@@ -124,16 +124,16 @@ Füge neue Pfade zum `PATH` hinzu, indem du ihn exportierst: ...@@ -124,16 +124,16 @@ Füge neue Pfade zum `PATH` hinzu, indem du ihn exportierst:
$ export PATH="$HOME/bin:$PATH" $ export PATH="$HOME/bin:$PATH"
``` ```
## Ubung ## Ubung 11-29-2024
# Bash-Konfiguration (~/.bashrc) ## Bash-Konfiguration (~/.bashrc)
## 1. Sicherung der aktuellen Datei ### 1. Sicherung der aktuellen Datei
```bash ```bash
cp ~/.bashrc ~/.bashrc_backup cp ~/.bashrc ~/.bashrc_backup
``` ```
## 2. Aliase erstellen ### 2. Aliase erstellen
- Zwei benutzerdefinierte Aliase hinzufügen: - Zwei benutzerdefinierte Aliase hinzufügen:
- Beispiel: - Beispiel:
```bash ```bash
...@@ -141,7 +141,7 @@ cp ~/.bashrc ~/.bashrc_backup ...@@ -141,7 +141,7 @@ cp ~/.bashrc ~/.bashrc_backup
alias gs='git status' alias gs='git status'
``` ```
## 3. Optionale Aufgabe: ### 3. Optionale Aufgabe:
- **Speicherung der PS1-Variable** (enthält Informationen zur Eingabeaufforderung): - **Speicherung der PS1-Variable** (enthält Informationen zur Eingabeaufforderung):
```bash ```bash
echo $PS1 > ~/.ps1_backup echo $PS1 > ~/.ps1_backup
...@@ -160,30 +160,30 @@ cp ~/.bashrc ~/.bashrc_backup ...@@ -160,30 +160,30 @@ cp ~/.bashrc ~/.bashrc_backup
--- ---
# Vim-Konfiguration (~/.vimrc) ## Vim-Konfiguration (~/.vimrc)
## 1. Sicherung der aktuellen Datei ### 1. Sicherung der aktuellen Datei
```bash ```bash
cp ~/.vimrc ~/.vimrc_backup cp ~/.vimrc ~/.vimrc_backup
``` ```
## 2. Farbschema ändern ### 2. Farbschema ändern
- Beispiel: - Beispiel:
```vim ```vim
colorscheme desert colorscheme desert
``` ```
## 3. Zeilennummerierung aktivieren ### 3. Zeilennummerierung aktivieren
```vim ```vim
set number set number
``` ```
## 4. Syntax-Highlighting aktivieren ### 4. Syntax-Highlighting aktivieren
```vim ```vim
syntax enable syntax enable
``` ```
## 5. Drei weitere Anpassungen Ihrer Wahl: ### 5. Drei weitere Anpassungen Ihrer Wahl:
- **Auto-Indentierung**: - **Auto-Indentierung**:
```vim ```vim
set smartindent set smartindent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment