Commande linux

kamikaz-88 Messages postés 66 Statut Membre -  
kamikaz-88 Messages postés 66 Statut Membre -
Bonjour,

je voulais savoir que fait cette commande
cat /etc/passwd | grep/bin/bash/ | wc -l
et merci d'avance

1 réponse

  1. tibobo_77 Messages postés 226 Date d'inscription   Statut Membre Dernière intervention   263
     
    cat /etc/passwd --> affiche le contenu du fichier /etc/passwd
    grep /bin/bash/ --> affiche les lignes ou /bin/bash apparait
    wc -l --> conmpte le nombre de ligne

    Donc la commande affiche le nombre de ligne qui contiennent "/bin/bash" dans le fichier /etc/passwd
    1
    1. kamikaz-88 Messages postés 66 Statut Membre 362
       
      merci beaucoup
      0