Creating Files
Quick answer: touch notes.txt creates an empty file. mkdir name creates a folder, and mkdir -p a/b/c creates the whole path at once.
Make the folders you actually want, then write down what you did so you remember it tomorrow. mkdir, touch and echo cover most of what you do with files in the first year.
Commands practised here
mkdir -p a/b/cMake a folder tree, including any missing parents.touch notes.txtCreate an empty file, or update its timestamp.echo hello > f.txtWrite text into a file. Erases it first.cat f.txtPrint a file to the screen.
Nearby labs
- All labsBrowse the full list.
- Exam prepWhich exams these objectives map to.
- Write the Report
- The Filesystem