Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
cis126_Lab3_f12

cis126_Lab3_f12

Ratings: (0)|Views: 107 |Likes:
Published by James Flores

More info:

Published by: James Flores on Sep 19, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

09/20/2012

pdf

text

original

 
 James FloresCIS126ThFall 2012Labs for Chapter 3
For the projects listed below: replace all referencesto “[userid]” to
your own personal user id
.All references to Ctrl+Alt+F2 can be replaced by aterminal window in system tools. This will allow youto copy & paste from the terminal session to the labdocument.Project 3-1
Objective:
In this hands-on project, you log in to the computer and navigatethe file structure.
1.
 Turn on your computer. After your Linux system has been loaded, open aterminal window and log in as
root
.
2.
At the command prompt, type
pwd
and press Enter to view the currentworking directory.3.What is your current working directory?
4.
At the command prompt, type
cd
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Why or why not?
5.
At the command prompt, type
cd .
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Why or why not?
 
6.
At the command prompt, type
cd ..
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Why or why not?
7.
At the command prompt, type
cd
 
root
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Where are you now?Did you specify a relative or absolute pathname to your home directorywhen you used the cd root command?
8.
At the command prompt, type
cd
 
etc
and press Enter. What error messagedid you receive and why?
9.
At the command prompt, type
cd /etc
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Did you specify a relative or absolute pathname to the /etc directory whenyou used the cd /etc command?
10.
At the command prompt, type
cd /
and press Enter. At the commandprompt, type
pwd
and press Enter to view the current working directory.Did your current working directory change?Did you specify a relative or absolute pathname to the / directory when youused the cd / command?
11.
At the command prompt, type
cd ~[userid]
and press Enter. At thecommand prompt, type
pwd
and press Enter to view the current workingdirectory. Did your current working directory change?
 
Which command discussed earlier performs the same function as the cd ~command?
12.
At the command prompt, type
cd Desktop
and press Enter (be sure to usea capital D). At the command prompt, type
pwd
and press Enter to viewthe current working directory. Did your current working directory change?Where are you now?What kind of pathname did you use here (absolute or relative)?
13.
Currently, you are in a subdirectory of [userid]’s home folder, three levelsbelow the root. To go up three parent directories to the / directory, type
cd ../../..
and press Enter at the command prompt. Next, type
pwd
andpress Enter to ensure that you are in the / directory.
14.
At the command prompt, type
cd /etc/samba
and press Enter to changethe current working directory using an absolute pathname. Next, type
pwd
and press Enter at the command prompt to ensure that you have changedto the /etc/samba directory. Next, type in the command
cd ../sysconfig
atthe command prompt and press Enter. Type
pwd
and press Enter to viewyour current location. Explain how the relative pathname seen in the cd../sysconfig command specified your current working directory.
15.
At the command prompt, type
cd ../../home/[userid]/Desktop
and pressEnter to change your current working directory to the Desktop directoryunderneath [userid]’s home directory. Verify that you are in the targetdirectory by typing the
pwd
command at a command prompt and pressingEnter. Would it have been more advantageous to use an absolutepathname to change to this directory instead of the relative pathname thatyou used?
16.
 Type
exit
and press Enter to log out of your shell.
Project 3-2
Objective:
In this hands-on project, you navigate the Linux filesystem usingthe Tab-completion feature of the BASH shell.
1.
Open a terminal window and log in to the terminal using the user name of 
root
and the password of 
secret
.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->