Berkeley CSUA MOTD:Entry 14580
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

1998/9/12-13 [Computer/SW/Unix] UID:14580 Activity:very high
9/11    According to the cs9e reader there is a way to tell when the last
        time the tr command was invoked.  I personally think this is full
        of crap but I have to answer this question or I fail the class.
                \_ You make failing 9e sound like a bad thing.  I thought
                        it was such fun I failed it twice.
        \_ On some systems (depending how the filesystem is mounted, whether
           exec(2) updates atime, whether you have GNU ls) you can
           ls -l --time=atime `which tr`
           \_ how did you ever figure that one out.
                \_ i had the same cs9e assignment in Fall '92.
                   i used the lastcomm solution, but the grader
                   pointed out atime.  -jwang
        \_ Also "history | grep tr" to find the last time (ordinally) that
           you personally ran it.
                \_ only if your shell is tcsh and you've run it in the
                        last $history commands (often only 50 or 100)
        \_ "lastcomm tr" (see lastcomm(1) for details).
        \_ I personally think that anyone who thinks they need to take
           cs9e is full of shit and doesn't belong near this side of campus.
                \_CS9e is great for L&S majors who use that extra unit to
                   hit the 13-unit reqt.  And if you ignore it you can take
                   it over and over again and no one cares!
        \_ Why don't you tell Clancy that.
           file on the instructional computers listing everyone's account
                \_ Mike Clancy is almost as stupid as Tom Clancy
                        \_ Mike Clancy is much more stupid than Tom Clancy.
                \_ He's the worst prof of all, because he's not even PhD
                        \_ That's why he & bh are "Lecturers" not profs
                           (bh's PhD is in Education, not CS).
                   \_ Being a PhD doesn't mean you can teach, as many profs
                        here prove.
        \_ Are you really that lazy?  Look it up yourself!
        \_ CS9e was designed for the BSD-based UNIX systems that are all gone
           now - many things just don't work anymore.  (Hint:  there is no
           text file on the instructional computers listing everyone's account
           info - it's all stored in NIS+ databases now.)
           \_ since when was BSD or /etc/passwd obsolete?
                \_ neither one is obsolete, just not used on the EECS Inst
                        computers you have to do your CS9E homework on
                        (which run HP-UX 10.20, Solaris 2.6 & Digital Unix 4.0)
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2024/11/23 [General] UID:1000 Activity:popular
11/23   

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/9/20-11/7 [Computer/SW/Unix, Finance/Investment] UID:54482 Activity:nil
9/20    How do I change my shell? chsh says "Cannot change ID to root."
        \_ /usr/bin/chsh does not have the SUID permission set. Without
           being set, it does not successfully change a user's shell.
           Typical newbie sys admin (on soda)
           \_ Actually, it does: -rwsr-xr-x 1 root root 37552 Feb 15  2011 /usr/bin/chsh
	...
2012/9/24-11/7 [Computer/SW/Languages, Computer/SW/Unix] UID:54484 Activity:nil
9/24    How come changing my shell using ldapmodify (chsh doesn't work) doesn't
        work either? ldapsearch and getent show the new shell but I still get
        the old shell on login.
        \_ Scratch that, it magically took my new shell now. WTF?
           \_ probably nscd(8)
	...
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/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
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
	...
2011/9/14-10/25 [Computer/HW/Drives] UID:54173 Activity:nil
9/13    Thanks to Jordan, our disk server is no longer virtualized. Our long
        nightmare of poor IO performance should hopefully be over. Prepare for
        another long nightmare of poor hardware reliability!
        ...
        Just kidding! (I hope)
        In any case, this means that cooler was taken out back and shot, and
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2011/3/12-4/20 [Consumer/CellPhone, Computer/HW/Laptop] UID:54057 Activity:nil
3/12    I am curious what others think of tablets like iPad. They don't seem
        useful to me, but I use my computer for more than web browsing,
        Facebook, and Twitter. Why would I buy one instead of a laptop?
        They seem like a disabled laptop to me, but at a higher price.
        \_ You are most likely a coder.  iPad is not for coders.  They are
           what you get your non-technical friends.  Or musicians.  Look at
	...