Tags: linux

Sort by: Date / Title /

  1. 11 months ago by spirit
    1. #Linux
    2. for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; [ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done
    3.  
    4. #Windows:
    5. for /L %I in (1,1,254) DO ping -w 30 -n 1 192.168.1.%I | find "Reply"
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2130"></script>
  2. 1 year ago by neorom
    1. iptables -D table -s IP -j DROP
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2129"></script>
  3. 1 year ago by neorom
    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
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2121"></script>
  4. sponsorised links
  5. 1 year ago by spirit
    find / -mtime 2 -o -ctime 2
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2113"></script>
  6. 1 year ago by spirit
    1. find / -perm -0002 -type d -print
    2. find / -perm -0002 -type f -print
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2112"></script>
  7. 1 year ago by spirit
    Great for finding effects of make install
    1. find / -cmin -5
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2111"></script>
  8. 1 year ago by sox and saved by 2 others
    1. # Ajouter une route par defaut
    2. route add default gw 192.168.0.1
    3.  
    4. # Afficher les routes
    5. route -n
    6.  
    7. # Supprimer une route
    8. route del -net 192.168.0.1/24
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2101"></script>
  9. 1 year ago by koudou
    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' {} \;
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2089"></script>
  10. 1 year ago by koudou
    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
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2087"></script>
  11. 1 year ago by koudou
    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
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2086"></script>

First / Previous / Next / Last / Page 1 of 12 (118 posteets)