In the format shown above, UDP is used for transmitting the message. The destination port is set to the default auf 514. Rsyslog is also capable of using much more secure and reliable TCP sessions for message forwarding. Also, the destination port can be specified. To select TCP, simply add one additional @ in front of the host name (that is, @host is UPD, @@host is TCP). For example: *.* @@finlandia To specify the destination port on the remote machine, use a colon followed by the port number after the machine name. The following forwards to port 1514 on finlandia: *.* @@finlandia:1514 This syntax works both with TCP and UDP based syslog. However, you will probably primarily need it for TCP, as there is no well-accepted port for this transport (it is non-standard). For UDP, you can usually stick with the default auf 514, but might want to modify it for security rea- sons. If you would like to do that, it's quite easy: *.* @finlandia:151
find / -mtime 2 -o -ctime 2
Astuces très simples mais toujours utiles :
- Rechercher/remplacer une occurence dans toute une série de fichiers :
find mon_repertoire -type f -exec sed -i 's/occurence/remplacement/g' {} \;
- Supprimer les lignes contenant une occurence dans une série de fichiers :
find mon_repertoire -type f -exec sed -i 's/occurence/d' {} \;Le logiciel convmv effectue la conversion des noms de fichiers contenus dans "répertoire/" de latin1 vers UTF8 : convmv --notest -r -f latin1 -t utf-8 répertoire/ L'outil iconv convertit le contenu des fichiers : iconv -f latin1 -t utf-8 textISO.txt >> textUTF8.txt
date : donne la date locale date -u : donne la date universelle (temps universel continu UTC) date --set 12:34:56 : modifier la date locale sudo hwclock --show : affiche la date du BIOS sudo hwclock --set --date="12:34:56" : fixe l'heure du BIOS (en heure locale) sudo hwclock --systohc : force la date du BIOS à se mettre à la date du système sudo hwclock --hctosys : force la date système à se mettre à la date du BIOS
First / Previous / Next / Last / Page 1 of 12 (118 posteets)