Hw01-The Shell
Hw-01 The Shell
Create new directory in tmp called missing
mkdir -p /tmp/missing
Look up touch command by man.

Look up chmod program

The user doesn't have any permission to execute, so we should chmod the permission.
chmod u+x ./semester
Then we should use sh to exec the file
sh ./semsester
Use | and > to write the “last modified” date output by semester into a file called last-modified.txt in your home directory.
cat ./semsester | grep last-modifiled > ~/last-modified.txt
浙公网安备 33010602011771号