User Tools

Site Tools


wiki:linux:reminder-shell

Differences

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

Link to this comparison view

Next revision
Previous revision
wiki:linux:reminder-shell [2024/07/08 23:54] – created admin5745621wiki:linux:reminder-shell [2024/11/28 23:26] (current) hmattaliano
Line 1: Line 1:
 ====== Pense-bêtes Shell ====== ====== Pense-bêtes Shell ======
 +
 +
 +===== L'historique des commandes bash =====
 +
 +
 +Afficher l'historique des commandes utilisé.
 +
 +<code>history</code>
 +
 +Supprimer l'historique
 +
 +<code>history -c</code>
 +<WRAP center round info 100%>
 +Le fichier où est stocker l'historique se trouve généralement dans le fichier **.bash_history** disponible dans le dossier **home** utilisateur
 +
 +Afficher directement avec le fichier
 +<code>cat /home/user/.bash_history</code>
 +
 +Ce chemin est stocker dans la variable $HISTFILE
 +
 +Afficher le contenu de $HISTFILE
 +<code>echo $HISTFILE</code>
 +</WRAP>
  
wiki/linux/reminder-shell.1720475650.txt.gz · Last modified: 2024/08/21 14:20 (external edit)