Flags in ls command #464

Open
crocha700 opened this Issue Oct 10, 2016 · 5 comments

Projects

None yet

5 participants

@crocha700
Contributor
crocha700 commented Oct 10, 2016 edited

Currently we teach the use of two or more flags of ls as separate inputs, e.g.,

ls -F -l -t

But equally valid –– and convenient –– is to patch the flags

ls -Fht

Is the first form preferred on pedagogical grounds? Would it be useful to teach the second form? Perhaps using a "pin box"?

@rgaiacs
Collaborator
rgaiacs commented Oct 10, 2016

Is the first form preferred on pedagogical grounds?

Yes. For a novice it makes things easy to read.

Would it be useful to teach the second form? Perhaps using a "pin box"?

I'm -1 to add it to the novice lesson since beginners are already presented with a lot of new information.

@shwina
Member
shwina commented Oct 10, 2016

Agreed. Something needs to go out if we're going to add in new information.

@iglpdc
Contributor
iglpdc commented Oct 11, 2016

This (patching the flags) used to be in the lesson. I think it is useful to have: it's standard practice, saves a lot of time when typing, and instructors may accidentally use it during the lesson or solo-learners will find it in the web.

When I teach the lesson I just say that, say, ls -F -l -t is equivalent to ls -Flt and enter the second comment after the first, so people can actually see it's really the same.

I would add a really short sentence to the lesson just saying this.

@gdevenyi
Contributor

I'm okay only with a small callout if anything for improving this. It's advanced usage, and makes the lesson longer.

@shwina
Member
shwina commented Oct 13, 2016

PRs welcome on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment