diff --git a/subjects/devops/file-struct/README.md b/subjects/devops/file-struct/README.md new file mode 100644 index 00000000..556f61ab --- /dev/null +++ b/subjects/devops/file-struct/README.md @@ -0,0 +1,47 @@ +## File struct + +### Instructions + +Create the files and directories so that when you use the command `tree` below, the output will look like this: + +```console +$ tree struct/ +struct/ +├── 0 +├── 1 +├── 2 +├── 3 +│   └── text.txt +├── 4 +│   └── text2.txt +├── 5 +├── 6 +├── 7 +├── 8 +├── 9 +└── A + └── text3.txt +``` + +Once it is done, use the command below to create the file `done.tar` to be submitted. + +```console +$ tar -cf done.tar * +$ ls +0 1 2 3 4 5 6 7 8 9 A done.tar +``` + +**Only `done.tar` should be submitted.** + +### Hints + +In this exercise you wil use the command `tree` to see the file structure as in the example bellow. `tree` is a recursive directory listing program that produces a depth-indented listing of files. With no arguments, `tree` lists the files in the current directory. + +You will also need to use the `tar` command which helps to create, extract, and list archive contents. You can find more about the command in the link bellow. + +> You have to use Man or Google to know more about commands flags, in order to solve this exercise! +> Google and Man will be your friends! + +### References + +- [Tar](https://www.gnu.org/software/tar) diff --git a/subjects/file-struct/README.md b/subjects/file-struct/README.md deleted file mode 100644 index 4a5d2614..00000000 --- a/subjects/file-struct/README.md +++ /dev/null @@ -1,46 +0,0 @@ -## File struct - -In order to create new directories or folders in Linux or Unix-like operating systems you need to use the `mkdir` command. `mkdir` stands for “make directory.” you can use it like so: - -```console -User-> mkdir my_folder -User-> ls -my_folder -``` - -### Instructions - -Create the files and directories so that when you use the command `tree` below, the output will look like this: - -```console -User -> tree struct/ -struct/ -├── 0 -├── 1 -├── 2 -├── 3 -│   └── text.txt -├── 4 -│   └── text2.txt -├── 5 -├── 6 -├── 7 -├── 8 -├── 9 -└── A - └── text3.txt -``` - -Once it is done, use the command below to create the file `done.tar` to be submitted. - -```console -User-> tar -cf done.tar * -User-> ls -0 1 2 3 4 5 6 7 8 9 A done.tar -``` - -**Only `done.tar` should be submitted.** - -**Tips:** - -Use the command `man mkdir` to get more info.