Wtmp
Les fichiers wtmp, btmp, utmp et leur variante tel que wtmpx, btmpx et utmpx sont des fichiers sur les systèmes UNIX qui gardent une trace de toutes les connexions et déconnexions au système. Ces fichiers sont généralement placés dans le répertoire /var/log (ou /var/run pour utmp). Le fichier wtmp est indiqué dans le Filesystem Hierarchy Standard 2.3.
Format
Le fichier wtmp enregistre toutes les connexions et déconnexions. Son format est exactement comme utmp sauf que le nom d'utilisateur nul indique une déconnexion sur le terminal associé. Par ailleurs, le terminal de nom ~ avec nom d'utilisateur indique l'arrêt ou le redémarrage d'un système d'arrêt ou le redémarrage et la paire de noms terminal / logs l'ancien / nouveau système moment où la date change.
Visualisation
Le contenu du fichier wtmp n'est pas intelligible à l'écran, on utilise le logiciel last afin d'interpréter et d'afficher correctement son contenu.
Sous Linux le contenu de wtmp peut être visualisé grâce à la commande :
last -f /var/log/wtmp
Celui de utmp peut être visualisé grâce à :
last -f /var/run/utmp
Liens externes
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
