[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - practice test # 26

practice test # 26

Introduction to UNIX/Linux

practice test # 26

Postby janet tuma on Mon Jun 01, 2009 11:23 pm

26. What command adds /home/roddyduk/bin to your path?

From what I gather this is a .bash_profile issue (lesson 12 slide 69) but I need more info as I don't see any examples and can't remember doing this :oops:

Any help out there?
janet tuma
 
Posts: 333
Joined: Wed Feb 11, 2009 3:07 pm

Re: practice test # 26

Postby Patrick Casey on Tue Jun 02, 2009 1:44 pm

:oops:
Sorry I do not know... I was hoping help would arrive for both of us...
its tomorrow, hopefully you will have your answer by then :(
as typical for me, I am only NOW 1:40 Tuesday working on the practice test... its so hard.... does this get easier???? :cry:
the first question has me ??? I'll remember I know we have done this on several occasions.... :oops:
User avatar
Patrick Casey
 
Posts: 32
Joined: Wed Feb 11, 2009 3:07 pm

Re: practice test # 26

Postby Rich Simms on Tue Jun 02, 2009 2:40 pm

Think about this as just another question on variables. You can set a variable to a text string or a variable or both:
[code][rsimms@opus ~]$ s1="First sentence"
[rsimms@opus ~]$ s2="Second sentence"
[rsimms@opus ~]$ paragraph="$s1. $s2."
[rsimms@opus ~]$ echo $paragraph
First sentence. Second sentence.
[/code]

The variable on the right side of the = sign does not have to be a different variable:
[code][rsimms@opus ~]$ cities=AnnArbor:Remus:Ypsilanti
[rsimms@opus ~]$ echo $cities
AnnArbor:Remus:Ypsilanti
[rsimms@opus ~]$ cities=$cities:Kalamazoo:Dexter
[rsimms@opus ~]$ echo $cities
AnnArbor:Remus:Ypsilanti:Kalamazoo:Dexter
[/code]
See if you can now do to the PATH variable what I just did to the cities variable.
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: practice test # 26

Postby janet tuma on Tue Jun 02, 2009 7:27 pm

ok - I'll give this a try! Thanks Rich -

By the way Patrick, look at the power points and you'll find your answers. Start at lesson 10 and you'll move right along. Rich keeps these well organized and the class work is close enough to the pre-test to find what you need!
janet tuma
 
Posts: 333
Joined: Wed Feb 11, 2009 3:07 pm


Return to CIS 90 - Spring 2009

Who is online

Users browsing this forum: No registered users and 0 guests

cron