Reading Files
Quick answer: cat file prints the whole file, head file shows the first 10 lines, and wc -l file counts its lines.
A configuration file is sitting in your home folder. Read it and pull out the values.
Commands practised here
cat <file>Displays the full contents of a file.wc -l <file>Counts the number of lines in a file.head <file>Shows the first 10 lines of a file.
Nearby labs
- All labsBrowse the full list.
- Exam prepWhich exams these objectives map to.
- Running Processes
- Writing to Files