You've already forked devops-exercises
mirror of
https://github.com/bregman-arie/devops-exercises.git
synced 2025-07-15 23:54:32 +02:00
Add Terraform and Linux questions and exercises
Also updated the script that counts questions to actually update the number in README.md
This commit is contained in:
21
topics/linux/exercises/create_remove/solution.md
Normal file
21
topics/linux/exercises/create_remove/solution.md
Normal file
@ -0,0 +1,21 @@
|
||||
# Create & Destroy
|
||||
|
||||
## Objectives
|
||||
|
||||
1. Create a file called `x`
|
||||
2. Create a directory called `content`
|
||||
3. Move `x` file to the `content` directory
|
||||
4. Create a file insidethe `content` directory called `y`
|
||||
5. Create the following directory structure in `content` directory: `dir1/dir2/dir3`
|
||||
6. Remove the content directory
|
||||
|
||||
## Solution
|
||||
|
||||
```
|
||||
touch x
|
||||
mkdir content
|
||||
mv x content
|
||||
touch content/y
|
||||
mkdir -p content/dir1/dir2/dir3
|
||||
rm -rf content
|
||||
```
|
Reference in New Issue
Block a user