Linux
 

Forums & Blogs

AllAboutLinux

Events

Distros 

Suse 

Fedora

MEPIS

Ubuntu 

LiveCD

PCLinuxOS

Sabayon

KNOPPIX 

 

 Why Linux?

General

Kernel version

$ cat  /proc/version

 

Show connected USB devices

$ lsusb 

 

Bash scripting

Apply the same commands to all files with mask

#!/bin/bashfor i in filemask; do

echo $i
more commands here
done

Kill application

$ pkill gnuplot (kills all gnuplot processes)

 

CPU info and RAM usage

$ cat /proc/cpuinfo 

$ free 


Creating plots

gnuplot tutorial

demo scripts for gnuplot

my gnuplot notes

Packing

$ tar -czf name.tgz directory

Unpacking

$ tar -xzf name.tgz

$ tar -xvf name.tar

$ tar -xjf name.bz2

Tools

Grep (wiki)

split and concatenate files (wiki)

Create file tree $ tree


Sed

Find and replace FINDSTRING with REPLACESTRING in all *.php files

#!/bin/bash
for fl in *.php; do
mv $fl $fl.old
sed 's/FINDSTRING/REPLACESTRING/g' $fl.old > $fl
rm -f $fl.old
done

GRUB boot loader

Content of  /boot/grub/grub.conf

default=0

timeout=5

splashimage=(hd0,0)/grub/splash.xpm.gz

hiddenmenu

title Fedora (2.6.21-1.3194.fc7)
        root (hd0,0)
        kernel /vmlinuz-2.6.21-1.3194.fc7 ro root=/dev/VolGroup01/LogVol00 rhgb quiet
        initrd /initrd-2.6.21-1.3194.fc7.img

Programms

The best web browsers : Opera, Firefox