| 1 | #!/bin/sh
|
| 2 |
|
| 3 | # When you installed this program, it was written to 'cd' into this
|
| 4 | # directory (folder). cd stands for change directory, when you cd'd
|
| 5 | # into shelllings/ you changed into that directory.
|
| 6 | #
|
| 7 | # $ cd foo/ # takes you into the foo folder
|
| 8 | # $ cd .. # takes you out of 1 upper folder
|
| 9 | # $ cd ../.. # takes you out of 2 upper folders
|
| 10 | # $ cd ~ # navigates to your user's home directory, may not
|
| 11 | # work with all shells
|
| 12 | # $ pwd # shows you which folder path you are in
|
| 13 | #
|
| 14 | # The exercise will begin when you run 'sh shelllings.sh 3' and you
|
| 15 | # will have to find a random folder. Navigate using the commands above
|
| 16 | # to find a folder with a password in it. You may want to use the 'ls'
|
| 17 | # command from the previous lesson.
|
| 18 | #
|
| 19 | # When you have found the file, use this command. Replace the file_name
|
| 20 | # with the actual file's name if you cannot open it
|
| 21 | #
|
| 22 | # $ cat file_name
|
| 23 | #
|
| 24 | # Don't worry about deleting the newly created folders, it should be
|
| 25 | # automatically deleted.
|
| 26 |
|
| 27 | password=""
|
| 28 | echo "$password"
|