Find and remove files with pattern in bash
Useful command to remove files that start with "._" (no quotes), for some reason tar command in OS X creates those files and I found an app having problems with them, here is how to get rid of those unnecessary hidden files:
find . -name *._* -exec rm -f {} \;
Find out Ubuntu version from command line
Type the following command on a terminal window:
$ lsb_release -a LSB Version: core-2.0-ia32:... Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise
Ubuntu 11.04 “Natty Narwhal” released!
30 minutes ago Ubuntu 10.04 has been released, according to the features page:
Your Ubuntu, your way
Enjoy the simplicity of Ubuntu's stylish, intuitive interface. Fast, secure and with thousands of apps to choose from, Ubuntu gives you a clean and streamlined experience that you can really make your own. And now you can even decide how you want it to look. Simply choose between our new and classic desktop experiences.
Wait for a full review in a couple of days.
Video: The Unity Desktop Environment
Mark Shuttleworth discusses Unity, the shell for the Ubuntu Netbook Edition 10.10 at Debconf 10.
Ubuntu Wireless Compaq Mini
First lets see what is your wifi card info, type the following in a terminal:
lspci | grep Wireless
My info is:
02:00.0 Network controller: RaLink RT3090 Wireless 802.11n 1T/1R PCIe
Next you have to install the dkms package:
sudo aptitude install dkms
Now download the file rt3090-dkms_2.3.1.7-0ubuntu0~ppa2_all.deb from this page (I'm using Ubuntu 10.04, you can choose whatever best fits your version)
After download is complete, you can install it with:
sudo dpkg -i rt3090-dkms_2.3.1.7-0ubuntu0~ppa2_all.deb
Wait a couple of minutes, reboot and you're done.
Happy wardriving! :p
openSUSE 11.4 has arrived!
As reads on their website "After 8 months of hard work, you can learn what is new, download it and upgrade!"
Yes, openSUSE 11.4 finally has arrived!
Some features:
- The default openSUSE desktop, the KDE Plasma Workspaces 4.6, but also includes GNOME 2.32, XFCE 4.8 and LXDE 0.5.
The first shipping LibreOffice and Firefox 4. - openSUSE's ZYpp package management introduces a new MultiCurl backend, support for zsync transfers and Metalink download support.
- Kernel 2.6.37 which includes better hardware support, including the brand new open Broadcom Wireless drivers (4313, 43224, 43225)
- Tumbleweed is a major new initiative from the openSUSE community, providing “Rolling Release Management” of stable application packages.
- The well-known third-party Packman repositories for openSUSE are rearranged.
Download completed... will give it a try next week.
BASH: Rename multiple files with sequential number at end
Spent way too much time trying to do this, hope this help someone else:
i=1;for f in *.jpg; do mv "$f" "newname$i.jpg"; let i++; done
Gentoo Linux – LiveDVD 11.0 Released
![]()
Gentoo Linux LiveDVD 11.0 was released yesterday!
It includes Linux Kernel 2.6.37 (with Gentoo patches), KDE SC 4.6, GNOME 2.32, OpenOffice 3.2.1, Mozilla Firefox 3.6.13 among other great software!
Special Features:
- Writable AUFS support so you can emerge new packages!
- Persistancy for $HOME is available; press F9 for more info!
More details here
Download in progress...
Extract emails from big text file
Fount it here:
perl -wne'while(/[\w\.\-]+@[\w\.\-]+\w+/g){print "$&\n"}' emails.txt | sort -u > output.txt