-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Description
How could the content be improved?
We say
Note that
mkdiris not limited to creating single directories one at a time. The-poption allowsmkdirto create a directory with nested subdirectories in a single operation:$ mkdir -p ../project/data ../project/results
but:
- we haven't actually used the word "nested" up to this point
- as a student, it wouldn't occur to me that just
mkdir ../project/datawouldn't work - from the example, it's hard to tell:
- that we're creating nested structures (the
../makes it less obvious) - that
-pisn't necessary just to create two directories with one command
- that we're creating nested structures (the
It might be clearer if we did something like:
mkdir project1 project2 # shows creating two directories
mkdir project1/data/final # doesn't work
mkdir -p project1/data/final # shows how -p works
mkdir -p project3/data/final # shows that -p creates multiple levelsWhich part of the content does your suggestion apply to?
https://swcarpentry.github.io/shell-novice/instructor/03-create.html#creating-directories
Metadata
Metadata
Assignees
Labels
No labels