Questions About Commands Flashcards

1
Q

Comment copier un fichier?

A

cp fichier1 fichier2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Comment déplacer un fichier?

A

mv fichier1 fichier2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Comment créer un répertoire?

A

mkdir dossier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Comment supprimer un répertoire?

A

rm -rf dossier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Comment créer un lien symbolique?

A

ln -s fichier lien

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Comment trouver un fichier par son nom?

A

find dossier -name fichier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Comment comparer deux fichiers?

A

diff fichier1 fichier2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Comment afficher le contenu d’un fichier?

A

cat fichier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Comment afficher les n premières lignes d’un fichier?

A

head -n fichier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Comment afficher les n dernières lignes d’un fichier?

A

tail -n fichier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Comment éditer un fichier avec vi?

A

vi fichier

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Comment mettre à jour la liste des paquets?

A

apt-get update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Comment installer un logiciel?

A

apt-get install soft

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Comment désinstaller un paquet?

A

apt-get remove soft

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Comment afficher les informations d’un paquet?

A

apt-cache show soft

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Comment rechercher un paquet?

A

apt-cache search soft

17
Q

Comment afficher les dépendances d’un paquet?

A

apt-cache depends soft

18
Q

Comment afficher les paquets orphelins?

19
Q

Comment redémarrer la machine?

A

shutdown -r now

20
Q

Comment afficher les utilisateurs connectés?

21
Q

Comment afficher les informations sur l’interface réseau?

A

ifconfig -a

22
Q

Comment monter une partition?

A

mount /media/cleusb

23
Q

Comment démonter une partition?

A

umount /media/cleusb

24
Q

Comment créer un fichier gzip?

A

gzip fichier.txt

25
Comment extraire un fichier tar?
tar xvf archive.tar
26
Comment afficher le contenu d'un répertoire?
ls -l dossier
27
Comment changer le propriétaire d'un fichier?
chown utilisateur fichier
28
Comment changer les permissions d'un fichier?
chmod 755 fichier
29
Comment afficher la version du noyau?
uname -r
30
Comment afficher les processus en cours?
ps aux
31
Comment tuer un processus?
kill pid
32
Comment tester une connexion réseau?
ping adresseIP
33
Comment obtenir de l'aide sur une commande?
man command
34
Comment afficher le répertoire de travail courant?
pwd