Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Gerenciamento de accounting
Comandos accounting
accton - Ativa o processo accounting
accton
(opes)
off accounting
Exemplos:
# accton -h
# accton on
Turning on process accounting, file set to the default '/var/log/account/pacct'
# accton off
Turning off process accounting.
# accton /var/log/account/pacct
Turning on process accounting, file set to '/var/log/account/pacct'.
lastcomm
(opes)
-h
--user (usurio)
--tty (terminal)
--command (comando)
-V
Exibe ajuda
Exibe um usurio
Exibe um terminal
Exibe um comando
verso do comando
Para fazer um teste logue em um terminal e execute algum comando, neste exemplo irei
logar como aluno1 (apertando as teclas CRTL + ALT + F1), no teminal tty1 e digitarei o
comando w.
Exemplos:
#
#
#
#
#
#
lastcomm
lastcomm
lastcomm
lastcomm
lastcomm
lastcomm
aluno1
--user aluno1
tty1
--tty tty1
w
--command w
(opes)
-a
-c
Mostra resumo de
porcentagens
-m
Exemplos:
#
#
#
#
sa
sa
sa
sa
-a
-c
-m
-acm
Significado
cpu
re
avio
tio
last
(opes)
-n
(nmero)
(tty)
-a
-x
-R
tty
Exemplos:
#
#
#
#
last
last -n 5 (exibe 5 linhas)
last tty1 (exibe somente o terminal tty1)
last | grep aluno1 (exibe somente o usurio aluno1)
(opes)
-p
Exibe totais
individuais
-a
-d
-y
Exemplos:
#
#
#
#
#
ac
ac
ac
ac
ac
-p
-a
-d
-y
-ap