Shell History with date


Include in /root/.bashrc

# History with date
HISTTIMEFORMAT="%F-%T "
 

 or

HISTTIMEFORMAT="%d/%m/%y %T "

 
Optional: Clear history
history -c 

Logoff and login again.




How to list open ports and application using them in Windows

  netstat -abn or netstat -a -n -p tcp -o

Mais vistos