Talk:Command Line 2

From FreekiWiki
Jump to navigation Jump to search

Give'em xargs if you're gonna give them |. xargs is the most useful command ever.

bash intro

Re the Bash section (since still evaluating it): really, referring explicitly back to "/home/lab* /home/class*" in the first example would round off the hours nicely (obviously). But more than the first two pars touching briefly on Bash as one of several ways of doing what shells do, I do agree, might start to be a bit more puzzling than otherwise under the circumstances.

So. The whole time circles back to the beginning, with the globbing example. Why not do another loop, with man? Mentioning in the "man" section that many of the commands for less work with it, would lay the groundwork there for actually introducing a few here (/, ?, g, and G, for instance).

removed non-working content

I removed the refrences to the -w option of ls, it simply doesn't seem to work as described. However, I would love to have an example of a short hand option that takes an argument. If someone thinks of a better command than ls which has the desired functionality that we wish to demonstrate please change the page.

I also had to remove the refrences to /lib/class* and the other one (I can't remember) those paths do not exist in the classroom systems. I replaced it with /lib/modules/2.6.18-3-686/mod*. I was having a hard time finding a good path that I could demonstrate * and wouldn't be 10 pages of files. The problem with /lib/modules/2.6.18-3-686/mod* is that if the kernel is upgraded and the 2.6.18-3-686 kernel is removed this path my become invalidated. If you have a better path in mind, please update this page.

I also removed the refrence to 'cat /dev/urandom | head -n 4' and replaced it with 'cat /etc/inittab | head -n 5'. The original command was outputting binary and therefore it was nonsensical to look at the first 4 lines. I'm not entirely satisfied with heading inittab, but at least we can say that "here is your default runlevel" and it will make some sense.