R. Craig Collins > CPMT
1404 > Lab 2
Lab 2 © R. Craig Collins, 2005/6
General Lab Directions
Note: There is not enough time in lecture to cover all
the material; read your book BEFORE you begin the lab
Note: Typically labs will require you to invest some time in the lab, outside
of class lecture hours
•Check with the Instructor for the due date
•Document the required steps/commands/tags before
you start, 50%
•Successful completion of activity, 50%
Setting up the Client
Referring to the DOS to LINUX notes:
• In DOS, create a directory named TEST
• In Linux, log in as the root user, then using the
Terminal, create a directory named TEST
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, generate a directory listing
• In Linux, generate a directory listing
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, change into the directory named TEST
• In LINUX, change into the directory named TEST
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, change into the root (\) directory
• In LINUX, change into the root (/) directory
• In LINUX, change into the directory named root (/root)
Note: to move to the directory above the
current directory, you may use cd ..
Note: to move to a users directory quickly,
you may use cd ~username
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, create a text file named test.txt, containing
your name, in the test directory,
using a command valid from any prompt (use
full path)
• In LINUX, create a text file named test.txt in the
directory named test
using a command valid from any prompt (use full
path)
• Document the the editor, and how
it was used here
• In DOS, set the attributes of test.txt to: no Archive,
Read Only
• In Linux, set the attributes of test.txt to U: rwx
G: r-x O r-x
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, copy test.txt to the root directory, using
a command valid from any prompt (use full path)
• In Linux, copy test.txt to the root directory, using
a command valid from any prompt (use full path)
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, rename the test.txt to junk.txt in the root
directory, using a command valid from any prompt
• In Linux, rename the test.txt to junk.txt in the root
directory, using a command valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, display the contents of the junk.txt file
on the screen, using a command valid from any prompt
• In Linux, display the contents of the junk.txt file
on the screen, using a command valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, move junk.txt in the TEST directory, using
a command valid from any prompt
• In Linux, move junk.txt in the TEST directory, using
a command valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, move to the root directory, using a command
valid from any prompt
• In Linux, move to your user's home directory, not
the full root, using a command valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, delete junk.txt in the TEST directory, using
a command valid from any prompt
• In Linux, delete junk.txt in the TEST directory, using
a command valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, delete all files in the TEST directory, using
, using path statements and wildcards
• In Linux, delete all files in the TEST directory,
using , using path statements and wildcards
• Document the commands: command name,
normal syntax, common parameters, & how it was used here
• In DOS, delete the TEST directory, using a command
valid from any prompt
• In Linux, delete the TEST directory, using a command
valid from any prompt
• Document the commands: command name,
normal syntax, common parameters, & how it was used here