Week 1 Exercises - First Steps in the Shell

Short, ungraded practice tasks for this week - about 20-30 minutes total. Nothing is turned in; the goal is simply to get your hands on the keyboard before next class. Bring any snags to class or office hours. Companion reading: Ch. 5 and Ch. 4; keep App. A and App. B open as you work.

  1. Open Positron and open the integrated terminal (Ctrl-`). Run echo $SHELL - which shell are you running?
  2. Run the toolkit check: R --version, python3 --version, and quarto --version. Write down the three version numbers (you will need them when asking for help).
  3. Run pwd. What is the absolute path of your home directory?
  4. Create a home for your course work: mkdir -p ~/projects/comptools, then cd into it and confirm with pwd.
  5. Go back to your home directory and run ls -a. Find one hidden file (its name starts with a dot). What is it?
  6. Run man ls and find out what the -t option does. Quit the manual with q.
  7. Using Tab completion only, cd into ~/projects/comptools typing as few characters as you can.
  8. Press ↑ to re-run your pwd command, then try Ctrl+R and type mkdir to search your command history.
  9. Run sleep 30, notice the prompt does not return, and cancel it with Ctrl+C.
  10. Find your laptop’s specs (macOS: Apple menu → About This Mac; Windows: Settings → System → About): how many CPU cores and how much RAM? Compare with one standard Talapas node (128 cores, 512 GB).