Create Files and Directories#
reading
We will loosely follow the Software Carpentry Working with Files and Directories lesson from The Unix Shell
Let’s work through that lesson together…
Summary#
We learned the following commands:
mkdir: make a directorynano: a basic text editortouch: update a file’s timestamp (and create an empty file if it does not exist)mv: move a file or directorycp: copy a file or directoryrm: remove a file (and/or directory if done recursively)
We also learned about wildcards:
*matches multiple (or 0) characters?matches a single character
Exercises#
try it…
From your home directory, create a directory / file structure that looks like:
project
├── code
├── data
│ ├── experiment-01.txt
│ ├── experiment-02.txt
│ └── experiment-03.txt
└── results