hvanbelle Short-Info

MyGoogle pages

Linux - System

ps ax | grep httpd | grep -v "grep"
ps ax -H
ps aux | sort +4n
ps afx

dos2unix: recode ibmpc..lat1 file2convert.txt
unix2dos: recode lat1..ibmpc file2convert.txt

killall -i httpd
kill -HUP <pid inetd>

tail -n10 /var/log/messages | less
tail -n20 -f /var/squid/logs/access.log | ./check.awk

words /etc/rc.d/lpd
imwheel -k
lpr -Phpdj500 info.txt
boot linux init=/bin/bash rw
lsof -i tcp
rpcinfo -p
a2ps -R --columns=1 --rows=1 file2print.pl
ln -s /usr/src/linux-2.4.14 /usr/src/linux
kbdrate -r 30 -d 250

grep -i -w -n -c "/mnt" /var/log/messages > result.txt
grep -i -w -n "/mnt" /var/log/messages > result.txt

mount | grep /mnt | awk -F"on " '{print $2}' | awk -F " " '{print $1}'
diff -y list_2_process.txt list_not_2_process.txt | grep < | sort | awk -F" " '{print $1}'

tee (read from standard input and write to standard output)

setterm -blank 0
xset s off
xset s noblank
xset -dpms

ssh -n host1 gimp &

mo:23:respawn:/usr/sbin/mgetty -s 115200 /dev/ttyS0 (in /etc/inittab)
hwclock --set --date="May 21 06:59"
clock -s

date -s 13:40:00 +%X
date -s 07/23/01 +%D dateh
date -d '1979-01-01 946684800 sec' +"%Y-%m-%d %T %z"
date -u gives UTC-time (the same for all people everywhere)
ntpd -d
ntpdate ntp2.belbone.be
hwclock --systohc

tleds -d 300 eth0
tleds -d 300 ppp0

splitvt split console ctrl-w for switching
nohup command & (command continues even after a logoff)
nohup command > myout.file 2>&1 (all output goes to myout.file)

man -t <page name here> | lpr
man -t ls > ls.ps
tn5250 -m fr -s session1 -y IBM-5292-2

echo -e "\33[9;0]" no console blanking
vim :syntax on
cat -v (controle chars will not be executed but will still be printed)
pr --header=HEADER file2print
echo text_here | mail -s subject user@host.com
mail -s test_mail send2@email.here < ./info.txt

last (show listing of last logged in user)
lsof | grep inet

Compile kernel 2.4.x: make dep clean bzImage modules modules_install
Compile kernel 2.6.x: make; make modules_install

md -p /tmp/p1/p11/p111 (all non-existing sub-dirs are also created)

xterm -rv -T "Test Window" -n "Icon Name" -iconic
xterm -fn 6x13 -nsb -ls -display
xterm -fn 6x13 -sb -ls -display -e xlander
xterm -fn 6x13 -sb -ls -display -e xmessage -center "Hello..."
xmessage -nearmouse -timeout 5 "Hello..."
xmessage -center -file /usr/local/info/info.txt
write user1 tty1 < info.txt
startx -- -bpp16