Saturday, February 27, 2010

FIND usage

I always forget how to use find command when it is combined with -exec clause :(. So, here are kind comprehensive list I got after googling from here.


sudo find / -type f -name *.jpg  -exec cp {} . \;

find . -type f -size +10000 -exec ls -al {} \;
find . -atime +1 -type f -exec mv {} TMP \; # mv files older then 1 day to dir TMP
find . -name "-F" -exec rm {} \;   # a script error created a file called -F
find . -exec grep -i "vds admin" {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find . -type f \! -name "*.Z" \! -name ".comment" -print | tee -a /tmp/list
find . -name *.ini
find . -exec chmod 775 {} \;
find . -user xuser1 -exec chown -R user2 {} \;
find . -name ebtcom*
find . -name mkbook
find . -exec grep PW0 {} \;
find . -exec grep -i "pw0" {} \;
find . -atime +6
find . -atime +6 -exec ll | more
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . -name auth*
find . -exec grep -i plotme10 {};
find . -exec grep -i plotme10 {} \;
find . -ls -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT 22' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find . -print -exec grep 'PLOT_FORMAT' {} \;
find ./machbook -exec chown 184 {} \;
find . \! -name '*.Z' -exec compress {} \;
find . \! -name "*.Z" -exec compress -f {} \;
find /raid/03c/ecn -xdev -type f -print
find /raid/03c/ecn -xdev -path -type f -print
find / -name .ssh* -print | tee -a ssh-stuff
find . -name "*font*"
find . -name hpmcad*
find . -name *fnt*
find . -name hp_mcad* -print
find . -grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep Pld {} \;
find . -exec grep PENWIDTH {} \; | more
find . -name config.pro
find . -name config.pro
find /raid -type d ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -print
find /raid -type d -name ".local_sd_customize" -ok cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find /raid -type d -name ".local_sd_customize" -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;
find . -name xeroxrelease
find . -exec grep xeroxrelease {} \;
find . -name xeroxrelease
find . -name xeroxrelease* -print 2>/dev/null
find . -name "*release*" 2>/dev/null
find / -name "*xerox*" 2>/dev/null
find . -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \;
find . -print -exec grep -i xeroxrelease {} \; > xeroxrel.lis
find . -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \;
find . -print -exec grep -i xeroxrel {} \; | more
find /raid/03c/inwork -xdev -type f -print >> /raid/04d/user_scripts/prt_list.tmp
find . -exec grep '31.53' {} \;
find . -ls -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep "31/.53" {} \; > this.lis
find . -print -exec grep 31.53 {} \; > this.lis
find . -exec grep -i pen {} /;
find . -exec grep -i pen {} \;
find . -print -exec grep -i pen {} \; | more
find . -exec grep -i pen {} \;
find . -atime +6 -exec ll | more \;
find . -atime +6 -exec ll \;
find . -atime +6 -exec ls \;
find . -atime +30 -exec ls \;
find . -atime +30 -exec ls \; | wc -l
find . \! -name '*.Z' -exec compress -f {} \;
find . -name 'cache*' -depth -exec rm {} \;
find . -name 'cache*' -depth -print | tee -a /tmp/cachefiles
find . -name 'cache[0-9][0-9]*' -depth -print | tee -a /tmp/cachefiles
find . -name 'hp_catfile' 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_catfile' -name 'hp_catlock' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat*' -depth -print | tee -a /tmp/hp.cats
find . -name 'hp_cat[fl]*' -depth -print | tee -a /tmp/hp.cats
find /raid -name 'hp_cat[fl]*' -depth -print
find . \! -name '*.Z' -exec compress -f {} \;
find . -name '*' -exec compress -f {} \;
find . -xdev -name "wshp1*" -print
find . -xdev -name "wagoneer*" -print
find . -name "xcmd" -depth -print
find /usr/contrib/src -name "xcmd" -depth -print
find /raid -type d -name ".local_sd_customize" -exec ls {} \;
find /raid -type d -name ".local_sd_customize" \
   -exec cp /raid/04d/MCAD-apps/I_Custom/SD_custom/site_sd_customize/user_filer_project_dirs {} \;

Sunday, October 19, 2008

QS Top Universities: ITB in rank #90

BANDUNG Institute of Technology Indonesia (ITB) in ranking #90.

MIT is the top most.

QS Top Universities: University rankings in Technology

Complete list is following:

Subject RankSchool NameCountrySubject Score
Source: QS Quacquarelli Symonds (www.topuniversities.com)
Copyright © 2004-2008 QS Quacquarelli Symonds Ltd.
Click here for copyright and limitations on use.
1 MASSACHUSETTS Institute of Technology (M...United States100.0
2 University of California, BERKELEYUnited States93.9
3 STANFORD UniversityUnited States85.3
4 CALIFORNIA Institute of Technology (Calt...United States81.6
5 University of CAMBRIDGEUnited Kingdom76.2
6 CARNEGIE MELLON UniversityUnited States71.6
7 IMPERIAL College LondonUnited Kingdom70.9
8 GEORGIA Institute of TechnologyUnited States68.9
9 University of TOKYOJapan67.4
10 University of TORONTOCanada66.0
11 National University of SINGAPORE(NUS)Singapore64.5
12 TSINGHUA UniversityChina63.4
13 ETH Zurich (Swiss Federal Institute of T...Switzerland63.1
14 University of OXFORDUnited Kingdom61.6
15 PRINCETON UniversityUnited States61.5
16 University of CALIFORNIA, Los Angeles (U...United States61.4
17 DELFT University of TechnologyNetherlands60.4
18 MCGILL UniversityCanada60.1
19 HARVARD UniversityUnited States59.6
20 University of ILLINOISUnited States58.4
21 TOKYO Institute of TechnologyJapan57.0
22= KYOTO UniversityJapan56.8
22= University of BRITISH COLUMBIACanada56.8
24= CORNELL UniversityUnited States56.4
24= HONG KONG University of Science & Techno...Hong Kong56.4
26 NANYANG Technological UniversitySingapore55.2
27 University of NEW SOUTH WALESAustralia54.7
28 The University of MELBOURNEAustralia54.4
29 TECHNION - Israel Institute of Technolog...Israel54.1
30 University of WATERLOOCanada53.9
31 ÉCOLE POLYTECHNIQUEFrance52.6
32 University of TEXAS at AustinUnited States52.0
33 PURDUE UniversityUnited States50.9
34 KAIST - Korea Advanced Institute of Scie...Korea, South50.5
35 University of CALIFORNIA, San DiegoUnited States50.3
36= Indian Institute of Technology Bombay (I...India49.9
36= AUSTRALIAN National UniversityAustralia49.9
38= University of MICHIGANUnited States49.2
38= PEKING UniversityChina49.2
40 Technische Universität MÜNCHENGermany48.7
41 The University of SYDNEYAustralia48.0
42 Indian Institute of Technology Delhi (II...India47.7
43 SEOUL National UniversityKorea, South46.0
44 Ecole Polytechnique Fédérale de LAUSANNE...Switzerland45.2
45 University of MANCHESTERUnited Kingdom44.8
46 University of ALBERTACanada44.6
47 MONASH UniversityAustralia44.3
48 SHANGHAI JIAO TONG UniversityChina43.8
49= University of Science and Technology of ...China42.3
49= National TAIWAN UniversityTaiwan42.3
49= EINDHOVEN University of TechnologyNetherlands42.3
49= OSAKA UniversityJapan42.3
53 TEXAS A&M UniversityUnited States41.8
54 KTH, ROYAL Institute of TechnologySweden41.5
55 CHALMERS University of TechnologySweden41.3
56= The University of AUCKLANDNew Zealand40.8
56= Katholieke Universiteit LEUVEN Belgium40.8
58 YALE UniversityUnited States40.7
59 Virginia Polytechnic Institute (VIRGINIA...United States40.4
60 University of EDINBURGHUnited Kingdom40.2
61 University of QUEENSLANDAustralia40.0
62 University of CALIFORNIA, Santa BarbaraUnited States39.8
63= Politecnico di MILANOItaly39.5
63= COLUMBIA UniversityUnited States39.5
65 Technische Universität BERLINGermany39.3
66 RENSSELAER Polytechnic InstituteUnited States38.7
67 JOHNS HOPKINS UniversityUnited States38.5
68 Universität STUTTGARTGermany38.0
69 University of HONG KONGHong Kong37.3
70= Indian Institute of Technology Kanpur (I...India37.1
70= Rheinisch-Westfälische Technische Hochsc...Germany37.1
72 Universität KARLSRUHEGermany37.0
73 University of WISCONSIN-MadisonUnited States36.9
74= Indian Institute of Technology Madras (I...India36.0
74= The CHINESE University of Hong KongHong Kong36.0
76 VIENNA University of TechnologyAustria35.9
77 Technical University of DENMARKDenmark35.8
78 University of PENNSYLVANIAUnited States35.0
79= MCMASTER UniversityCanada34.9
79= PENNSYLVANIA STATE UniversityUnited States34.9
81= University of MARYLANDUnited States34.6
81= NORTHWESTERN UniversityUnited States34.6
83= University of CHICAGOUnited States34.5
83= Indian Institute of Technology Kharagpur...India34.5
85 University of WASHINGTONUnited States34.3
86 CHULALONGKORN UniversityThailand34.0
87= University of SOUTHERN CALIFORNIAUnited States33.9
87= Université de MontréalCanada33.9
89 CITY University of Hong KongHong Kong33.7
90= BANDUNG Institute of TechnologyIndonesia33.5
90= University of CALGARYCanada33.5
92 FUDAN UniversityChina33.2
93 BROWN UniversityUnited States33.1
94= RMIT UniversityAustralia33.0
94= HELSINKI University of Technology TKKFinland33.0
96= UCL (University College London)United Kingdom32.8
96= University of SOUTHAMPTONUnited Kingdom32.8
98= TOHOKU UniversityJapan32.7
98= University of BIRMINGHAMUnited Kingdom32.7
100 École Normale Supérieure, PARISFrance32.4


---
ITB : Institut Teknologi Bandung (www.itb.ac.id)

Thursday, October 09, 2008

Disable sendmail on Solaris 9

I got problem in one of our server that there are thousands of sendmail process running and calling another process mail.local which blocked any access to this server.

root@server1 # ps -ef |grep mail.local | wc -l
6503

Killing those processes has recovered access to the server:
pkill -9 sendmail
pkill -9 mail.local

But, in order to prevent same problem, disabling sendmail is required.

The more detail of sendmail is following....

sendmail is a service started at boot time through the rc mechanism. Have a look at the /etc/rc*.d directories for startup scripts.

mv /etc/rc2.d/S88sendmail /etc/rc2.d/s88sendmail

Only scripts that start with an upper case S are started at boot time.

kidung.com

kidung.com - Lirik Lagu Rohani & Chord Lagu Pujian & Penyembahan

If you want to know Christian song, including lyrics, chord, then check this out! Besides Indonesian, there is English song too.

Google Diaspora

Print The Google Diaspora:

"In that garage, Sergey Brin and Larry Page built their empire on the basis of a simple and powerful idea that now seems obvious: Create a better search engine by taking into account not just a page's content but also its connectedness. The most popular pages would show up ahead of the lonelier pages in search results. This idea was so central to the Google experiment that its demo-stage name was 'BackRub,' as in, 'You rub my site's back, I'll rub yours.' It's this same basic idea that drives interest in the Google diaspora. Not only are Xooglers bright, entrepreneurial, and wealthy, but their links to one another and to Google endow them with a real-world ranking bonus--VC doors open wider; the press is more intrigued."

The guys are working today on a one-page mission statement that they intend to send out to all their investors. They show the draft to me, ask for my comments. One of the key lines reads:

"Within the software/Internet sector, we are focused on early-stage investment opportunities supported by one or more of our three major investment themes: algorithm-intensive solutions, multisided aggregation platforms, and next-generation productivity solutions."

I point out that the word solutions is used twice and offer that, in general, the term "next-generation" is used so often, it's basically useless. They change the line, replacing the first solutions with services, and writing "Web-centric" in place of "next-generation."