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

Ep.2 ls capitalisation example #1044

Open
flacchy opened this issue Oct 10, 2019 · 0 comments

Comments

@flacchy
Copy link

commented Oct 10, 2019

I would like to make a suggestion for the episode 2 Navigate files and directories. Under the session "General syntax of a shell command" there is a mention of capitalisation but not clear example, if a student is looking at the material they might try

ls -r
ls -R

and this can cause panic if.

Might be an option to add an example after the text

Each part is separated by spaces: if you omit the space between ls and -F the shell will look for a command called ls-F, which doesn’t exist. Also, capitalization can be important: ls -r is different to ls -R.

and say:

We can try and type the following commands:

ls -F
ls -f

what is the difference between the two?

answer:
by using the uppercase (-F) ls -F this allow us to display the content in a more clear way by highlighting files and directories; if we use the lowercase (-f) we are viewing an unsorted output and also switching on a different flag (-a) without needing to call this specifically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.