Berkeley CSUA MOTD:Entry 16684
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/29 [General] UID:1000 Activity:popular
5/29    

1999/10/10-13 [Computer/SW/Unix] UID:16684 Activity:high
10/10   Stupid Linux question:  I just installed linux on my computer
        and I try to do some *SIMPLE* programming (i.e. 15 line code).
        Using the makefile I stolen from CS60b, I changed it, and
        compiled it fine.  But when I try to execute the compiled
        code myProg, it said "Command not found."
        Is this even an linux question? or I used wrong g++ options?
        because I don't see any .o files split out.
        Thanks in advance                       -kngharv
        \_ maybe because . isn't in your environment path. modify your .cshrc
           \_ yeah I'd echo $PATH and see if . is in there.  If not
              PATH=.:$PATH.  You're mostly likely running sh (echo $SHELL)
              also.  ohmigod i feel like wssg
        \_ what makes you so sure it 'compiled it fine' ?  Lack of .o files
                        \_ in that you're giving stupid and dangerous advice?
                \_ Everyone on soda should do this, then cd /tmp and run ls
                   \_ well that was exciting
                \_ Dummyhead.  If you must have a . in your path, it goes at
                   the end.  Sheesh!
                \_ I read somewhere it's a security issue to have . in your
                   path. Why is that? Oh well, I have it in my path anyway.
                   \_ Anyone can write an evil program and name it /tmp/mroe.
                      Then, if you cd /tmp and mistype "more", you'll end up
                      running their evil program.  It's even worse if you
                      have . at the beginning of your path -- then the evil
                      program could be named "more" and you don't even have
        \_ Stupid linux user doesn't have or doesn't know what . in the
           path means.
                      to make a typo!

                      The right thing to do is to leave . out of your path
                      entirely; it's easy to type ./program when you want to
                      run a program from the current directory.  This also
                      saves you from silly mistakes when you (say) write a
                      program called "test"; if you have . at the end of your
                      path, it'll run /bin/test instead of your program, but
                      if you type ./test it'll work as you expect.
        \_ what makes you so sure make 'compiled it fine' ?  Lack of .o files
           is a good sign that it did not.
        \_ Shouldn't this be referred to as a 'stupid linux user question',
           since its clearly not linux being stupid here.
           \_ The problem is not linux specific.  It is specific to the
              stupidity of the user who obviously has not bothered to divine
              the meaning of the error message "Command not found."  That
              this guy is talking about cs_60_b should be a telling statement.
                \_ telling what?  That he's forgotten UNIX in the 4+ years it
                   must have been since he took the class?
                \_ Yeah, back in the day when we ate potstickers and downed
                   bad vodka with BH whiling away the hours adding more and
                   more kool features to our scheme adventure game on the
                   vax 11/780.  If only I'd learned mips/java/oops, I'd have
                   skills that will be good forever instead of outdated in
                   6 months like everyone who came before me.
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/05/29 [General] UID:1000 Activity:popular
5/29    

You may also be interested in these entries...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2012/3/29-6/4 [Computer/HW/Memory, Computer/HW/CPU, Computer/HW/Drives] UID:54351 Activity:nil
3/29    A friend wants a PC (no mac). She doesn't want Dell. Is there a
        good place that can custom build for you (SSD, large RAM, cheap video
        card--no game)?
        \_ As a side note: back in my Cal days more than two decades ago when
           having a 387SX made me the only person with floating-point hardware,
           most machines were custom built.
	...
2012/1/27-3/26 [Computer/SW/Unix] UID:54299 Activity:nil
1/27    Interesting list of useful unix tools. Shout out to
        cowsay even!
        http://www.stumbleupon.com/su/3428AB/kkovacs.eu/cool-but-obscure-unix-tools
        \_ This is nice.  Thanks.
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2010/6/8-30 [Computer/Companies/Yahoo] UID:53853 Activity:nil
6/8     Newly wed husband and wife found from old picture that they have
        actually crossed path 30yrs ago: http://www.csua.org/u/qwv
        My question is how do stories like this find its way to news media?  Do
        people just go "hey something very interesting happens in our lives.
        Let's call up a news agency or two to tell the world about it."?
        \_ "Your video will begin after a word from our sponsors."
	...
2010/3/8-30 [Computer/SW/Unix] UID:53745 Activity:nil
3/8     I have a mod_rewrite question that I think should be straight-
        forward but I think I'm not getting something.
        I have a virtual server with some root, say /home/user/public_html/
        and in there I have two subdirs, say /app1/ and /app2/
        and i want the following:
        http://mysite/app1   -->   /home/user/public_html/app1
	...
2010/3/10-30 [Computer/SW/Mail] UID:53751 Activity:nil
3/10    What email program do people in Cal CS use nowadays?  In my school days
        people used /usr/bin/mail, then RMail in emacs, then VMail in emacs.
        After my days people used Elm, Pine, Mutt (I forgot which order).  In
        my first two jobs we could tell the seniority of fellow engineers based
        on which email program they use at work, because everyone used what
        they used to use in their school years.  In my last two jobs though,
	...
2010/1/22-24 [Computer/SW/Unix] UID:53654 Activity:high
1/22    What's the difference between a job and a career?
        \_ women have jobs, men have careers.
           \_ true statement but one that is sexist and should be
              kept in a private conversation
        \_ A job could be anything that pays mortgage or feed the mouth.
           A career is something that is longer term, most of the time,
	...
2009/11/13-30 [Computer/SW/Unix] UID:53523 Activity:nil
11/12   How does one find out if a system has rootkit installed?
        \_ Unix or m$?
           \_ Unix. On M$ I always assume it's compromised.
              \_ Install Tripwire before you plug your server into The Net?
                 The only other answer I can think of is to reinstall the
                 OS from scratch on another server and do an md checksum
	...