-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* New translations index.md (German) * New translations style_guide.md (Ukrainian) * New translations 07_rsync_unison_use.md (Ukrainian) * New translations systemd_service_for_python_script.md (German) * New translations 04-check-your-knowledge.md (French) * New translations 14-special-authority.md (Ukrainian)
- Loading branch information
1 parent
4283595
commit bfa2a42
Showing
6 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
title: Bash - Vérifiez vos connaissances | ||
author: Antoine Le Morvan | ||
contributors: Steven Spencer, Ganna Zhyrnova | ||
tested_with: 8.5 | ||
tags: | ||
- formation | ||
- bash scripting | ||
- bash | ||
--- | ||
|
||
# Bash - Testez vos connaissances | ||
|
||
:heavy_check_mark: Parmi ces 4 shells, lequel n'existe pas : | ||
|
||
- [ ] bash | ||
- [ ] ksh | ||
- [ ] tsh | ||
- [ ] csh | ||
|
||
:heavy_check_mark: Quelle est la syntaxe correcte pour assigner une valeur à une variable : | ||
|
||
- [ ] `variable:=value` | ||
- [ ] `variable := value` | ||
- [ ] `variable = value` | ||
- [ ] `variable=value` | ||
|
||
:heavy_check_mark: Comment stocker le retour d'une commande dans une variable : | ||
|
||
- [ ] `file=$(ls)` | ||
- [ ] `file=`ls`` | ||
- [ ] `file:=$ls` | ||
- [ ] `file = $(ls)` | ||
- [ ] `file=${ls}` | ||
|
||
:heavy_check_mark: La commande read vous permet de lire le contenu d'un fichier : | ||
|
||
- [ ] Vrai | ||
- [ ] Faux | ||
|
||
:heavy_check_mark: Lequel des éléments suivants est la syntaxe correcte pour la commande `cut` : | ||
|
||
- [ ] `cut -f: -D1 /etc/passwd` | ||
- [ ] `cut -d: -f1 /etc/passwd` | ||
- [ ] `cut -d1 -f: /etc/passwd` | ||
- [ ] `cut -c ":" -f 3 /etc/passwd` | ||
|
||
:heavy_check_mark: Quelle commande est utilisée pour décaler les variables positionnelles : | ||
|
||
- [ ] `left` | ||
- [ ] `shift` | ||
- [ ] `set` | ||
- [ ] `array` | ||
|
||
:heavy_check_mark: Quelle commande transforme une chaîne de caractères en variables positionnelles : | ||
|
||
- [ ] `left` | ||
- [ ] `shift` | ||
- [ ] `set` | ||
- [ ] `array` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters