Shell/bash befehle: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „<source lang="bash"> w # Show who is logged on and what they are doing. who # show who is logged on last, lastb # show listing of last logged in users lastlog # e…“) |
F (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
+ | == Befehle == | ||
<source lang="bash"> | <source lang="bash"> | ||
w # Show who is logged on and what they are doing. | w # Show who is logged on and what they are doing. | ||
Zeile 4: | Zeile 5: | ||
last, lastb # show listing of last logged in users | last, lastb # show listing of last logged in users | ||
lastlog # examine lastlog file | lastlog # examine lastlog file | ||
+ | </source> | ||
+ | |||
+ | |||
+ | == Einstellungen == | ||
+ | |||
+ | |||
+ | '''/etc/profile''' | ||
+ | <source lang="bash"> | ||
+ | export HISTFILESIZE= | ||
+ | export HISTSIZE= | ||
+ | #export HISTTIMEFORMAT="[%F %T] " | ||
+ | export HISTTIMEFORMAT="%d/%m/%y %T " | ||
+ | export HISTFILE=~~/.bash_history | ||
+ | |||
</source> | </source> |
Version vom 2. Juli 2015, 13:56 Uhr
Befehle
w # Show who is logged on and what they are doing.
who # show who is logged on
last, lastb # show listing of last logged in users
lastlog # examine lastlog file
Einstellungen
/etc/profile
export HISTFILESIZE=
export HISTSIZE=
#export HISTTIMEFORMAT="[%F %T] "
export HISTTIMEFORMAT="%d/%m/%y %T "
export HISTFILE=~~/.bash_history