The Linux Terminal
Work comfortably in a Linux terminal, find your way around the file system, and process text with pipes and basic tools.
Session activities
Build the workspace ~/aurora/core3/week1 with folders for notes, data, scripts and logs, using only the terminal.
Analyse a 2,000-line robot log supplied by the instructor: count errors per hour, list every motor controller warning, and extract the timestamp of each battery reading below 20%.
Key concepts
- Why robotics runs on Linux: ROS, hardware drivers, boards such as the Raspberry Pi and Jetson
- Setup clinic: native Ubuntu, dual boot, WSL2, virtual machine
- File system layout: /, /home, /etc, /usr, /dev; absolute and relative paths
- Navigation and file commands: pwd, ls, cd, mkdir, touch, cp, mv, rm, cat, less, man
- Tab completion and command history
- Users, groups and file permissions: chmod, sudo
- Redirection and pipes: >, >>, |
- Text tools: grep, find, head, tail, wc, sort, cut
- Environment variables, PATH, installing software with apt
Homework
Rebuild the workspace on your own machine and run the Session 2 log analysis again on a second log file.
Deliverable
A text file with the commands used and a one-paragraph explanation of what each pipeline does.