find . -name '*.mp3' |while read FILE; do rm "$FILE"; done
List disk usage for all items in a dir
ls |while read i; do du -sh "$i"; done
This is easier done with
du -sh *
but it's the usage of "while read" I wanted to show.
find . -name '*.mp3' |while read FILE; do rm "$FILE"; done
ls |while read i; do du -sh "$i"; done
du -sh *
lspci -k
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
Kernel driver in use: ata_piix
00:1f.2 IDE interface: Intel Corporation 82801GB/GR/GH (ICH7 Family) SATA IDE Controller (rev 01)
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 01)
Kernel driver in use: i801_smbus
Kernel modules: i2c-i801
ker@srv1:~$ sudo lspci -vv -s 0:1e
sudo lspci -k |grep Kernel
lsusb -s <bus>:<slot>
tar xvf linux-2.6.29.tar.bz2
bunzip2 patch-2.6.30-rc2.bz2
cd linux-2.6.29
patch -p1 <../patch-2.6.30-rc2
/usr/src/linux-2.6.30-rc2$ head Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 30
EXTRAVERSION = -rc2
NAME = Temporary Tasmanian Devil
mv 2.6.29 2.6.30-rc2
sh NVIDIA-Linux-x86-180.44-pkg1.run -x
entry->owner = THIS_MODULE;
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
entry->owner = THIS_MODULE;
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,30)
entry->owner = THIS_MODULE;
#endif
#endif
./nvidia-installer
apt-get install kernel-package libncurses5-dev fakeroot
wget ftp://ftp.sunet.se/pub/Linux/kernel.org/linux/kernel/v2.6/linux-2.6.29.1.tar.bz2
tar xvf linux-2.6.29.1.tar.bz2
cd linux-2.6.29.1
make clean && make mrproper
cp /boot/config-2.6.28-11-generic ./.config
make menuconfig
export CONCURRENCY_LEVEL=2
make-kpkg clean
time fakeroot make-kpkg --initrd kernel_image kernel_headers