ssh login.itd.umich.edu
hostname
pwd
mkdir 506
cd 506
README.md
to document your work in this folder:
echo "## Stats 506" > README.md
echo " " >> README.md
mkdir ./hw; mkdir ./examples
mkdir ./data && mkdir ./data/csv
for d in R Stata SAS sh
do
mkdir ./examples/$d
echo $d
done
Note the use of ;
to execute multiple commands on the same line. It isn’t needed here, but &&
is used to execute the second command only if the first completes successfully. You can, but are not required to, read more about exit status and exit codes here.