Questions About Commands Flashcards
Comment copier un fichier?
cp fichier1 fichier2
Comment déplacer un fichier?
mv fichier1 fichier2
Comment créer un répertoire?
mkdir dossier
Comment supprimer un répertoire?
rm -rf dossier
Comment créer un lien symbolique?
ln -s fichier lien
Comment trouver un fichier par son nom?
find dossier -name fichier
Comment comparer deux fichiers?
diff fichier1 fichier2
Comment afficher le contenu d’un fichier?
cat fichier
Comment afficher les n premières lignes d’un fichier?
head -n fichier
Comment afficher les n dernières lignes d’un fichier?
tail -n fichier
Comment éditer un fichier avec vi?
vi fichier
Comment mettre à jour la liste des paquets?
apt-get update
Comment installer un logiciel?
apt-get install soft
Comment désinstaller un paquet?
apt-get remove soft
Comment afficher les informations d’un paquet?
apt-cache show soft
Comment rechercher un paquet?
apt-cache search soft
Comment afficher les dépendances d’un paquet?
apt-cache depends soft
Comment afficher les paquets orphelins?
deborphan
Comment redémarrer la machine?
shutdown -r now
Comment afficher les utilisateurs connectés?
who
Comment afficher les informations sur l’interface réseau?
ifconfig -a
Comment monter une partition?
mount /media/cleusb
Comment démonter une partition?
umount /media/cleusb
Comment créer un fichier gzip?
gzip fichier.txt