Envoie message Syslog sur un serveur distant

1 nc -w0 -u 192.168.1.1 514 <<< "Test 12345 script envoie syslog UDP"

Commande ls

Options pour l'affichage de la date et l'heure
option : --time-style=[STYLE] [STYLE]

  • full-iso
  • long-iso
  • iso
  • locale
  • +%Y-%m-%d %H:%M:%S
1 $ ls -l --time-style=full-iso
2 total 28
3 -rw-r--r-- 1 root root 745 2015-08-19 03:09:29.000000000 +0000 back.ldif
4 -rw-r--r-- 1 root root  87 2016-07-24 13:18:45.511717070 +0000 delete_masse.txt
5 -rw-r--r-- 1 root root 578 2015-08-19 03:09:29.000000000 +0000 front.ldif
6 -rw-r--r-- 1 root root 627 2015-08-19 03:09:29.000000000 +0000 more.ldif
7 -rw-r--r-- 1 root root 672 2016-07-24 13:24:15.956947346 +0000 more2.ldof
8 -rw-r--r-- 1 root root 187 2015-08-19 03:09:29.000000000 +0000 sssvlv_config.ldif
9 -rw-r--r-- 1 root root  90 2015-08-19 03:09:29.000000000 +0000 sssvlv_load.ldif
1 $ ls -l --time-style=+"%Y-%m-%d %H:%M:%S"
2 total 28
3 -rw-r--r-- 1 root root 745 2015-08-19 03:09:29 back.ldif
4 -rw-r--r-- 1 root root  87 2016-07-24 13:18:45 delete_masse.txt
5 -rw-r--r-- 1 root root 578 2015-08-19 03:09:29 front.ldif
6 -rw-r--r-- 1 root root 627 2015-08-19 03:09:29 more.ldif
7 -rw-r--r-- 1 root root 672 2016-07-24 13:24:15 more2.ldof
8 -rw-r--r-- 1 root root 187 2015-08-19 03:09:29 sssvlv_config.ldif
9 -rw-r--r-- 1 root root  90 2015-08-19 03:09:29 sssvlv_load.ldif

Options sur l'affichage du contenu d'un dossier
option : --format=[format]
[format]

  • across
  • comma
  • horizontal
  • long
  • single-column
  • verbose
  • vertical
1 $ ls -l  --format=single-column
2 back.ldif
3 delete_masse.txt
4 front.ldif
5 more.ldif
6 more2.ldof
7 sssvlv_config.ldif
8 sssvlv_load.ldif

Options sur les fichiers : option : --sort=[SORT]
[SORT]

  • extension
  • none
  • size
  • time
  • version
 1 $ ls -al --sort=extension
 2 total 36
 3 drwxr-xr-x  2 root root 4096 Jul 24 13:24 .
 4 drwxr-xr-x 46 root root 4096 Jul 24 13:18 ..
 5 -rw-r--r--  1 root root  745 Aug 19  2015 back.ldif
 6 -rw-r--r--  1 root root  578 Aug 19  2015 front.ldif
 7 -rw-r--r--  1 root root  627 Aug 19  2015 more.ldif
 8 -rw-r--r--  1 root root  187 Aug 19  2015 sssvlv_config.ldif
 9 -rw-r--r--  1 root root   90 Aug 19  2015 sssvlv_load.ldif
10 -rw-r--r--  1 root root  672 Jul 24 13:24 more2.ldof
11 -rw-r--r--  1 root root   87 Jul 24 13:18 delete_masse.txt