PDA

View Full Version : messaggio in .bash_history


RaouL_BennetH
30-03-2009, 12:02
Ciao a tutti :)

Ho trovato un comando nella cronologia della riga comandi; Il comando è il seguente:


PROMPT_COMMAND='pwd>;kill -STOP $$'


Sono sicuro di non averlo dato io dato che non ne comprendo neanche il significato...

Cosa potrebbe essere ?

Ho modo di controllare se c'è stata un'entrata illecita nel sistema?

Grazie mille :)

RaouL.

sacarde
30-03-2009, 14:00
e' strano anche per me....

io da root ho questo

PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'

Gimli[2BV!2B]
30-03-2009, 20:13
@ RaouL_BennetH, per caso usi mc? (https://bugs.launchpad.net/baltix/+source/mc/+bug/53095) (Midnight Commander (http://www.midnight-commander.org/))

@ sacarde: dovresti trovarne uno molto simile in /etc/bash.bashrc, oppure lo hai nel tuo ~/.bashrc. Serve ad impostare il titolo nei terminali grafici, questo è quello proposto in Debian:
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
#case "$TERM" in
#xterm*|rxvt*)
# PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
# ;;
#*)
# ;;
#esac

RaouL_BennetH
31-03-2009, 10:02
Si, uso mc :)