A task can usually be started and run as a background task by putting a ‘&’ at the end of the command line.

If a task was started and is running in the foreground, it is still possible to move it to the background without cancelling it. To move a task from the foreground to the background perform the following steps:

CTRL-Z (That is, while holding the CTRL key down, tap the ‘z’ key) This will suspend the current foreground job (task).
Enter the job control command ‘bg’
Tap the ‘Enter’ key
The job is now running in the background.

Useful commands to see which jobs are still running is the ‘jobs’ or the ‘ps ua’ commands. If the ‘jobs’ command is used, a background jobs can be brought to the foreground with the command fg n where n is the job (not the PID) number.

#!/bin/sh
# simpel backup
# Patrick Biber
# 2010-11-02
# Version: 0.1
# first format disk to EXT3!

mount /dev/sda1 /mnt/hdbackup
mkdir /mnt/hdbackup/paede-`date +%d.%m.%Y`
touch /var/log/manualbackup/paede-`date +%d.%m.%Y`
rsync -vrpAE /home/ /mnt/hdbackup/paede-`date +%d.%m.%Y`/ > /var/log/manualbackup/paede-`date +%d.%m.%Y` 2>&1

I found this script to sort Apache logs:

#!/bin/sh
if [ ! -f $1 ]; then
echo "Usage: $0 "
exit
fi
echo "Sorting $1"
sort -t ' ' -k 4.9,4.12n -k 4.5,4.7M -k 4.2,4.3n -k 4.14,4.15n -k 4.17,4.18n -k 4.20,4.21n $1 > $2

LOCAL MAILING


mail -v -s "The subject goes here" someone@somewhere.net [enter]
Hey, how's it going? [enter]
. [enter]
sendEmail -f myemail@myisp.com -t username@yahoo.com -s smtp.myisp.com -u
"Hello boss" -m "Hello boss, this is just a test message"
sudo apt-get install sendEmail
Now to send email ,
sendEmail -f FROM -t TO -s SERVER -u SUBJECT -m MESSAGE
Example :
sendEmail -f myemail@myisp.com -t username@yahoo.com -s smtp.myisp.com -u
"Hello boss" -m "Hello boss, this is just a test message"

REMOTE MAILING WITH TELNET AND SMTP COMMANDS

telnet localhost 25
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.postfix-howto.de ESMTP Postfix
helo localhost
250 mail
mail from: testing at example.com
250 Ok
rcpt to: tester at localhost
250 Ok
data
354 End data with .
some text
.
250 Ok: queued as B58E141D33
quit

smbstatus

check groups from a certain user
id "name"

check entrys from passwd
getent passwd "name"


smbstatus -u
smbstatus -s
smbstatus --help
smbstatus -S
nano /etc/samba/smb.conf
cd /home/data/SAMBA-RECYCLER/

DNS service ist in diesen files zu konfigurieren:
/etc/bind/db.hostname.com
und
/etc/bind/db."HostIP".in-addr.arpa

dig hostname.com zeigt die dns einträge an

dig MX hostname @dns1.dnsservername.ch

TTL checken sollte auf 10 sein
SERIAL zu erhöhen und danach /etc/init.d/bind9 restart

Beispiel MX einträge abfragen dig MX hostname.com @servername