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 [2022/10/11 08:05] – Ajout vitesse réseau yahikoinformatique:linux:commandes [2023/10/30 14:54] (current) yahiko
Line 57: Line 57:
 </codedoc> </codedoc>
  
 +===== Formater la date =====
 +Format YY-mm-JJ_H-M-S
 +<codedoc code:bash>
 +now=$(date +"%Y-%m-%d_%H-%M-%S")
 +</codedoc>
 +
 +===== Volume LVM inactif =====
 +<codedoc code:bash>
 +root@proxmox:~# lvscan
 +  inactive          '/dev/drbdvg3/lv-ovz3' [900.00 GiB] inherit
 +
 +root@proxmox:~# vgchange -ay
 +
 +root@proxmox:~# lvscan
 +  ACTIVE            '/dev/drbdvg3/lv-ovz3' [900.00 GiB] inherit
 +</codedoc>
 +
 +===== wget avec mot de passe =====
 +<code shell>
 +wget --user [NOM_UTILISATEUR] --password [MOT_DE_PASSE] [URL]
 +</code>
 +
 +===== less : afficher dernière ligne =====
 +<code shell>
 +less +G /où/est/mon/fichier
 +</code>
informatique/linux/commandes.1665475500.txt.gz · Last modified: 2022/10/11 08:05 by yahiko

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki