« Commandes BASH » : différence entre les versions

Ligne 268 : Ligne 268 :


=== Comparer répertoire ===
=== Comparer répertoire ===
diff -rb /rep1/ /rep2/
<syntaxhighlight lang="bash" line copy>
diff -rb /rep1/ /rep2/
</syntaxhighlight>


=== supprimer un repertoire ===
=== supprimer un repertoire ===
rm -rf portail
<syntaxhighlight lang="bash" line copy>
rm -rf portail
</syntaxhighlight>


=== modifier attributs ===
=== modifier attributs ===
#modif proprio
<syntaxhighlight lang="bash" line copy>
chown -R personne:groupe rep (-R recursif)
#modif proprio
 
chown -R personne:groupe rep (-R recursif)
#modif des droits
chmod -R 755 repertoire
 


#modif des droits
chmod -R 755 repertoire
</syntaxhighlight>


== MySql ==
== MySql ==