Shell/bash befehle: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
Zeile 4: Zeile 4:
 
===lvs===
 
===lvs===
 
lvs — report information about logical volumes
 
lvs — report information about logical volumes
<source lang="bash">
+
 
w # Show who is logged on and what they are doing.
+
===w===
who # show who is logged on
+
Show who is logged on and what they are doing.
last, lastb # show listing of last logged in users
+
===who===
lastlog # examine lastlog file
+
show who is logged on
</source>
+
===last, lastb===
 +
show listing of last logged in users
 +
===lastlog===
 +
examine lastlog file
 +
 
  
  

Version vom 27. März 2018, 17:57 Uhr

Befehle

lsblk

lsblk - Blockgeräte auflisten

lvs

lvs — report information about logical volumes

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

für die History

/etc/profile

export HISTFILESIZE=
export HISTSIZE=
#export HISTTIMEFORMAT="[%F %T] "
export HISTTIMEFORMAT="%d/%m/%y %T "
export HISTFILE=~/.bash_history

ip

ip rule

Zeigt sämtliche Routing Tabellen an.

ip r ls t <Tabellenname>

Zeigt den Inhalt einer Routingtabelle