small medium large xlarge

Generic-user-small
22 Jun 2010, 15:43
Malcolm Arnold (21 posts)

On page 35, one is asked(see bottom for text) to use the unix command: ls -p. I guess this is equivalent to the DOS command: dir /w (meaning wide). Someone who is new to computers, may not know this. What would be a good convention is to have the different commands follow each other. In the book, the command is written such:

demo> ls -p

It could be written such and this could be a convention throughout.

demo> ls -p(ls -p is in one font/color) 4 spaces dir /w(different font/color) 4 spaces (command for different OS).

The convention could be a set order with set fonts for each OS. this would require little if any additional paper. Actually, throughout the book it may save lines as one does not have to explain a command is in a particular OS each time. It is inferred by the standard established the first time.

The command has created a directory named demo. Pop down into that directory, and list its contents (using ls on a Unix box or dir under Windows). You should see a bunch of files and subdirectories: work> cd demo demo> ls -p app/ config.ru doc/ lib/ public/ README test/ vendor/ config/ db/ Gemfile log/ Rakefile script/ tmp/

Cimg0269_pragsmall
23 Jun 2010, 05:47
Seth Arnold (22 posts)

It might be easier to install Cygwin, so you can run the same commands and have access to the same giant set of useful little tools. :D

You must be logged in to comment