OK - now we can
- Setup a test environment simply by running
sample-setup.sh
- And we can tear it down again by removing the
samples folder and everything in it.
Now let's go and break things.
Change directory into the samples folder using the cd command like this:
From here on you should explore the most common commands used for navigating the files and directories from the command prompt.
Familiarise your self with the following commands:
Some of the commands takes arguments and some don't. They all take options.
Here's another hint you can google: What is POSIX it's related!
Put the pages and references you find on your search in the notes to this issue (that is, if they are worth saving)
You probably need some help with commands now and then. It's build in!
- If you use a command wrongly - like without and argument, when an argument is required - it will hint some help.
- You can force the command to be helpful; all commands will accept the option
--help
- There is even a special command called
man - short for manual which will take the command you need help with as an argument - and it will reveal a comprehensive manual page:
Use the commands above to fix the issues with the sample files:
OK - now we can
sample-setup.shsamplesfolder and everything in it.Now let's go and break things.
Change directory into the
samplesfolder using thecdcommand like this:cd samplesFrom here on you should explore the most common commands used for navigating the files and directories from the command prompt.
Familiarise your self with the following commands:
cdlscatrmpwdpushdpopdhistorymvcpSome of the commands takes arguments and some don't. They all take options.
arguments(sometimes calledparameters) - and what areoptions(sometimes calledswitches).Here's another hint you can google: What is
POSIXit's related!Put the pages and references you find on your search in the notes to this issue (that is, if they are worth saving)
You probably need some help with commands now and then. It's build in!
--helpman- short formanualwhich will take the command you need help with as an argument - and it will reveal a comprehensive manual page:Use the commands above to fix the issues with the sample files:
animals,countriesandmovies) of should be at the same level in thesamplesfolder.Monkies.txtis spelled wrong - should beMonkeys.txt.Germany.txtis in the wrong folder.apes.txtis also in the wrong folder (did you see it? try using the-aoption to thelscommand