User Tools

Site Tools


informatique:linux:commandes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatique:linux:commandes [2020/08/14 16:19] yahikoinformatique:linux:commandes [2022/10/11 10:05] (current) – Ajout vitesse réseau yahiko
Line 19: Line 19:
 </codedoc> </codedoc>
 [[https://linuxize.com/post/how-get-size-of-file-directory-linux/|Source]] [[https://linuxize.com/post/how-get-size-of-file-directory-linux/|Source]]
 +
 +===== Déterminer si un disque est un disque mécanique ou un SSD =====
 +<codedoc code:bash>
 +cat /sys/block/sdx/queue/rotational
 +</codedoc>
 +Où sdx est le disque (sda, sdb...).
 +
 +Va retourner
 +<codedoc code:bash>
 +1 = disque mécanique
 +0 = SSD
 +</codedoc>
 +[[https://unix.stackexchange.com/questions/65595/how-to-know-if-a-disk-is-an-ssd-or-an-hdd|Source]]
 +
 +===== Bypasser un fsck =====
 +<codedoc code:bash>
 +shutdown -rf
 +</codedoc>
 +
 +===== Afficher nom FQDN =====
 +<codedoc code:bash>
 +hostname --fqdn
 +</codedoc>
 +
 +===== Vérifier le dernier reboot =====
 +<codedoc code:bash>
 +last -x shutdown
 +</codedoc>
 +
 +===== Vérifier la vitesse réseau =====
 +<codedoc code:bash>
 +less /sys/class/net/<nom interface>/speed
 +</codedoc>
 +Par exemple : 
 +<codedoc code:bash>
 +less /sys/class/net/enp0s3/speed
 +</codedoc>
 +
informatique/linux/commandes.1597414758.txt.gz · Last modified: 2020/08/14 16:19 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki