https://github.com/nark3d/reallysimplelinuxtest
A simple Linux test to see how experienced and knowledgeable a DevOps is.
https://github.com/nark3d/reallysimplelinuxtest
Last synced: about 2 months ago
JSON representation
A simple Linux test to see how experienced and knowledgeable a DevOps is.
- Host: GitHub
- URL: https://github.com/nark3d/reallysimplelinuxtest
- Owner: nark3d
- Created: 2017-08-07T10:52:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T15:57:27.000Z (almost 8 years ago)
- Last Synced: 2025-02-08T03:46:40.435Z (3 months ago)
- Language: HTML
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Really Simple Linux Test
A simple Linux test for DevOps candidates. There are a number of ways to complete the following tasks and there are no right, or perfect, answers. The test is to gauge the knowledge and experience of a potential DevOps candidate.
## The test
Edit the file `script.sh` so that when executed, the output matches this:
```shell
$ ./script.sh
Find all .doc file types:
./files/ffc.doc ./files/ffc_6.doc ./files/ffc_95.doc ./files/ffc_97_2000_xp.docChange all chmodme files to 0777:
-rwxrwxrwx 1 adam.lewis BTM\Domain Users 8195 Aug 9 10:00 ./files/chmodme.jpg
-rwxrwxrwx 1 adam.lewis BTM\Domain Users 5500 Aug 9 10:00 ./files/chmodme.gifChange bad for good:
The good fox jumps over the good dog.
Good, Good, GOOD, good, GOOD, good, good, goodie bag.Count to ten:
1 2 3 4 5 6 7 8 9 10Reverse characters in file:
This text should be forwards and on the first line!
And this text should be the same, but on the second line...
```
## Tasks### Find
Find and list all .doc file types from the files folder in the output of your `script.sh`.### Change permissions
Find all the 'chmodme.*' files and alter the permissions to 777. List the files in the output of your `script.sh`.### String replacement
In the file: `files/goodbad.txt`, find all instances of 'bad', 'Bad' and 'BAD', replace with 'good', 'good' and 'GOOD', then show the text in the output of your `script.sh`.### Count to ten
Write a mechanism of print 1 to 10 with spaces and output it from your `script.sh`.### Manipulate text
Using: `files/backwards.txt`, reverse the characters in the text and reverse the order of the lines in the file. Output the result from your `script.sh`.## Submitting answers
Clone or fork this repo, create a new branch and push it once you have completed the task.## License
MIT