25 Kasım 2013 Pazartesi

colrm - linux

echo "123456" | colrm -4

31 Ekim 2013 Perşembe

Sed - Boş satırları silmek

sed '/^$/d' input.txt > output.txt

22 Ekim 2013 Salı

Linux - tar.bz2 dosyasını açmak

tar jxf file.tar.bz2

30 Eylül 2013 Pazartesi

Unix - İki dosyanın ortak satırları

perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/'  file1 file2

30 Haziran 2013 Pazar

Raspberry - cgi dizini


./apache2/sites-available/default dosyasındadır.

Örnek:
./apache2/sites-available/default:      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

Sonuçta Raspbian da bir Debian dağıtımıdır.



Raspberry - Hostname değiştirmek

sudo vi /etc/hostname
sudo reboot
hostname --fqd

21 Haziran 2013 Cuma

Linux kabuk değişkenleri

$$ = The PID number of the process executing the shell.
$? = Exit status variable.
$0 = The name of the command you used to call a program.
$1 = The first argument on the command line.
$2 = The second argument on the command line.
$n = The nth argument on the command line.
$* = All the arguments on the command line.
$# The number of command line arguments.