Instructions: Answer as many of the following questions as you can during the lab period. If you are unable to complete the assignment during the lab period it is strongly recommended that you complete it on your own.
pwd
cd /c/
/c/temp
folder/directory using the command:cd /c/temp
In this example, you used an absolute path because you entered the complete path, starting from the root folder/directory.
cd ..
temp
subdirectory
folder/directory using the command:cd temp
In this example, you used a relative path because you only entered the subdirectory name.
/c/temp
/c/temp/labs
using the command:mkdir labs
/c/temp/labs
using the command:cd labs
ls
teapot.txt
to the folder/directory /c/temp/labs
.
ls -l
teapot.txt
?
teapot.txt
named
teapot.bak
using the command:cp teapot.txt teapot.bak
teapot.bak
by typing rm t
, pressing the Tab
key (this is a feature called command completion), typing
b
, pressing the Tab key, and
pressing Enter.
teapot.txt
to teapot.bak
by pressing the UpArrow until the cp
command appears (this is a feature called the command history)
and pressing Enter.
ls -l
teapot.txt
using the command:cat teapot.txt
rm teapot.*
Copyright 2013