Projet

Général

Profil

Demande #35888

addc .bashrc mal configuré

Ajouté par Klaas TJEBBES il y a 19 jours. Mis à jour il y a 19 jours.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
11/04/2024
Echéance:
% réalisé:

0%


Description

Par exemple :

root@scribe:~# env|grep HIS
HISTCONTROL=ignoredups
HISTSIZE=1000
HISTTIMEFORMAT=[ %d/%m/%Y %H:%M:%S ] 
HISTFILE=/root/.bash_history
HISTIGNORE=
HISTFILESIZE=9999

alors que

root@addc:~# env|grep HIS
<rien>

Donc :

root@addc:~# echo toto
toto
root@addc:~#  echo titi
titi
root@addc:~# history |tail -n 2
  142  echo toto
  143  history |tail -n 2

la commande "echo titi" a été "oubliée" parce qu'elle commence par un espace.
l'historique n'est pas horodaté, etc.

Historique

#1 Mis à jour par Klaas TJEBBES il y a 19 jours

  • Description mis à jour (diff)

Formats disponibles : Atom PDF