Equivalent of updatedb on mac
To run updatedb on mac: sudo /usr/libexec/locate.updatedb
To run updatedb on mac: sudo /usr/libexec/locate.updatedb
In Ubuntu: (as root) % mkdir /usr/lib/jvm % cd /usr/lib/jvm % cp /data/download/jdk-6u33-linux-x64.bin . % chmod a+x jdk-6u33-linux-x64.bin % ./jdk-6u33-linux-x64.bin % mv jdk1.6.0_33/ sun-java6-jdk % update-alternatives –install "/usr/bin/java"…
find . -name "articleTypes.xml" | xargs grep -n -i -e 'tidy' or find . -name "apple.txt" -exec grep -H -n -i -e "tidy" \{} \; Search from the…
– Open TextWrangler and open a new text file. – Copy and paste the code below into this file. #!/bin/sh xmllint –c14n "$*" | XMLLINT_INDENT=$'\t' xmllint –encode UTF-8…
SpinRite is a computer software program for scanning magnetic data storage devices such as hard disks, recovering data from them and refreshing their surfaces. When the program encounters…
sudo dpkg-reconfigure console-setup
du -h | tail -n 1 du -h
sudo dhclient
Mountain Lion and Lion sudo killall -HUP mDNSResponder Previous versions dscacheutil -flushcache
for file in *.jar; do echo “working on $file”; jar -tvf $file | egrep -i *.gif; done