Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basics - moving around and looking inside #81

Open
15 tasks
lakruzz opened this issue Jan 25, 2023 · 0 comments
Open
15 tasks

Basics - moving around and looking inside #81

lakruzz opened this issue Jan 25, 2023 · 0 comments
Labels
template Included in the template

Comments

@lakruzz
Copy link
Member

lakruzz commented Jan 25, 2023

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:

cd samples

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:

  • cd
  • ls
  • cat
  • rm
  • pwd
  • pushd
  • popd
  • history
  • mv
  • cp

Some of the commands takes arguments and some don't. They all take options.

  • You should try to google an explanation to what are arguments (sometimes called parameters) - and what are options (sometimes called switches).

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:

  • The three subfolders (animals, countries and movies) of should be at the same level in the samples folder.
  • I belive Monkies.txt is spelled wrong - should be Monkeys.txt.
  • Germany.txt is in the wrong folder
  • The hidden file .apes.txt is also in the wrong folder (did you see it? try using the -a option to the ls command
@lakruzz lakruzz added the template Included in the template label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
template Included in the template
Projects
None yet
Development

No branches or pull requests

1 participant