Linux Befehle

apache abstellen -> sudo httpd -k stop

Prozess sicher killen -> kill -9 (Prozess Nr)

Prozess killen -> kill (Prozess Nr)

alle Prozesse anzeigen -> ps -A

SambaWiki

Yast2

vncviewer 192.168.0.23:5901

vncviewer paede-laptop:0

nmap 10.11.1.0./24 -p 1-1023

LOGS

Go to /var/logs directory:# cd /var/logs

View common log file /var/log/messages using any one of the following command:# tail -f /var/log/messages
# less /var/log/messages
# more -f /var/log/messages
# vi /var/log/messages

  • /var/log/message: Genreal message and system releated stuff
  • /var/log/auth.log: Authenication logs
  • /var/log/kern.log: Kernel logs
  • /var/log/cron.log: Crond logs
  • /var/log/maillog: Mail logs
  • /var/log/qmail/ : Qmail log directory (more files inside this directory)
  • /var/log/httpd/: Apache access and error logs directory
  • /var/log/lighttpd: Lighttpd access and error logs directory
  • /var/log/boot.log : System boot log
  • /var/log/mysqld.log: MySQL database server log file
  • /var/log/secure: Authentication log
  • /var/log/utmp or /var/log/wtmp : Login records file
  • /var/log/yum.log: Yum log files

#!/bin/bash
echo “$1 ist das erste Argument”
echo “$2 das zweite.”
echo “Alles klar?”
unter dem Namen ECHO2.sh ab. Dann folgt wieder chmod u+x ECHO2.sh
und der Aufruf ./ECHO2.sh gut gemacht.
Nun sollte erscheinen:
gut ist das erste Argument
gemacht das zweite.
Alles klar?