Shell/bash befehle: Unterschied zwischen den Versionen

Aus Vosp.info
Wechseln zu:Navigation, Suche
Zeile 1: Zeile 1:
 
== Befehle ==
 
== Befehle ==
 +
=== lsblk===
 +
lsblk - Blockgeräte auflisten
 +
===lvs===
 +
lvs — report information about logical volumes
 
<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.

Version vom 27. März 2018, 17:56 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