Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 1.2 KB

File metadata and controls

19 lines (17 loc) · 1.2 KB

Challenge

This is the instructions for the terminal challenge. Start in the folder "intro-challenge". Put all your commands in the file "answer.txt" that you will create in step 1.

  1. Create a file called "answer.txt". Here you can put your answers.
  2. Create a folder called "folder1".
  3. Step into "folder1" and create 3 files, "file1", "file2" and "file3".
  4. Edit "file1" and enter 10 words on separate lines. Save the file.
  5. Hide "file2". Test it by using the "ls" command with and without the option "-a".
  6. Change "file3" to "file3.txt".
  7. Go to the folder "intro-challenge" and copy "folder1" and all content to "folder2".
  8. Create a folder inside "folder2" called "temp".
  9. Move the folder "temp" from "folder2" to "folder1".
  10. Display the content in "folder2/file1".
  11. Redirect the output from last command to the file "folder1/file2".
  12. Echo the string "some text" and redirect the output into "folder1/file3.txt".
  13. Remove the file "folder1/file2"
  14. Remove the folder "folder1/temp"
  15. Make sure you are in the folder "intro-challenge". List all files with the long-listing option. Pipe the output and use "grep" to filter out only the folders. Redirect the result to the file "folder1/file1".