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.
- Open Positron and open the integrated terminal (Ctrl-`). Run
echo $SHELL- which shell are you running? - Run the toolkit check:
R --version,python3 --version, andquarto --version. Write down the three version numbers (you will need them when asking for help). - Run
pwd. What is the absolute path of your home directory? - Create a home for your course work:
mkdir -p ~/projects/comptools, thencdinto it and confirm withpwd. - Go back to your home directory and run
ls -a. Find one hidden file (its name starts with a dot). What is it? - Run
man lsand find out what the-toption does. Quit the manual withq. - Using Tab completion only,
cdinto~/projects/comptoolstyping as few characters as you can. - Press
↑to re-run yourpwdcommand, then tryCtrl+Rand typemkdirto search your command history. - Run
sleep 30, notice the prompt does not return, and cancel it withCtrl+C. - 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).