2

Hi I am looking for the resource for teaching the command line, the file system for high school student. I find some students have little idea of what the file system, not to mention navigating the file system using cd/pwd/ls

The materials I have investigated include "The Linux command line for beginners" and "Learn Enough Command Line to Be Dangerous"

But I feel them are a bit complicated for high school students. I like "The Linux command line for beginners" but I often get sidetracked by spending time explaining linux (which is another big topic) when most kids use Windows.

So any recommendation (book included) for teaching those stuff ? In a way my question is related to How to teach the value of the command line in high school?

--- update ---

From the comments I got so far I am updating my question to make my objective more clearly. First I want to them to learn some command lines. Even most kids are using Windows, it is easy to find information like Windows and Unix command line equivalents, e.g. check here and here

With WSL I have assumed it won't be too hard to learn unix/linux commands on windows but I have not tried yet. So the hard question maybe is to let them know what benefit(s) of learning command lines.

I think having some basic knowledge of the file system is also important. Learning CLI will be also inevitable to expose some concept of fs to them. So I put them together when I asked the question.

Qiulang 邱朗
  • 828
  • 3
  • 14
  • 2
    IMHO you are asking two different questions. 1. How to use the command line. 2. How the file system works and how to navigate it. The first is hard, the second is easier. – Guy Coder Oct 09 '21 at 13:11
  • If you just want them to know enough to be functional then a reference book might be better as it force them to read all of the nitty gritty details. Unless I am working with Bash scripts I really don't do more than use a few man(ual) pages. When I read or write Bash I try to avoid pulling my hair out. There is a big gap between the two needs. – Guy Coder Oct 09 '21 at 13:14
  • For the CLI I just need them to "Learn Enough Command Line to Be Dangerous", for the file system I need them to have some basic idea more than "it is a folder". But I don't need them know how the fs works. – Qiulang 邱朗 Oct 09 '21 at 13:25
  • For special files/directories see https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard – Rusi Oct 09 '21 at 16:06
  • 3
    What exactly are your overall objectives? To learn how to use Unix/Linux' command line when they only know/use Windows is useless (in the day to day), so it will be very hard to get the point across. They'll learn by *using*, not by looking at presentations or reading books. – vonbrand Oct 09 '21 at 16:53
  • Hi I updated my question based on your comments. – Qiulang 邱朗 Oct 11 '21 at 02:15
  • related: https://cseducators.stackexchange.com/questions/3535/introducing-file-systems-to-students-who-really-dont-understand/3544#3544 – ctrl-alt-delor Oct 11 '21 at 09:30
  • 3
    If you were teaching students to drive a car, would you expound on "benefits of learning gas pedal?" I think you could set a higher-level goal. E.g., Use command-line tools to compile, and link, and run a simple command-line program. As far as "resources" go, I don't think you'd need much more than a one-page "cheat sheet," and maybe another page of ideas to try at home. As for benefits: Those same compile and link commands can be _scripted._ If you use an IDE, or an automated build tool, they may actually _be_ scripted somewhere within its configuration files. – Solomon Slow Oct 12 '21 at 01:48
  • 1
    Actually it was when I taught them to compile some c files that I found they had little idea of command line & fs. – Qiulang 邱朗 Oct 12 '21 at 01:55
  • A potential issue is students end up ignoring the theory and merely learning these commands by-rote without real-world context. This risks being neither useful nor interesting to those students; potentially with them only memorising command names/parameters without knowing if/how/when to use them in a real situation. Consider framing this in the context of some useful scenarios which they can relate to the real world and the rest of their learning. (For example, tasking them to serve HTML files in subdirectories from nginx, and working towards that goal by learning the relevant commands) – Ben Cottrell Oct 22 '21 at 06:51
  • A recent link https://www.theverge.com/platform/amp/22684730/students-file-folder-directory-structure-education-gen-z – Rusi Dec 23 '21 at 03:12

3 Answers3

1

For a book, I like The Linux Command Line. There is a YouTube series, The Missing Semester. You can pick and choose the lectures that you like.

There are an abundance of cheatsheets online.

Most importantly, you need to have the experience yourself. You've got to have the knowledge, and master it well enough to adapt it for your audience.

sweenish
  • 111
  • 2
0

Although the intended audience is graduate students, maybe the Software Carpentry Unix Shell lesson is useful?

  • Thanks for a link. I find it is a bit like https://ubuntu.com/tutorials/command-line-for-beginners I listed in my question. – Qiulang 邱朗 Oct 25 '21 at 07:02
0

I have a video series on using UNIX on YouTube. It is here. This is useful for Mac/Linux users or if your students log onto a server to program at the command line (they should have this experience).

Also, if you are a windows user, you can enable your BASH subsystem. You then have a UNIX shell on your windows box.

Alumni tell me that command-line skill is still highly valued.

ncmathsadist
  • 2,319
  • 7
  • 14