add makefile and man

pull/46/head
rapha 2020-04-27 01:45:16 -03:00
parent 38863bd607
commit 9616bf120d
7 changed files with 82 additions and 0 deletions

20
Makefile Executable file
View File

@ -0,0 +1,20 @@
PRGM = bashtop
BINDIR ?= $(PREFIX)/bin
PREFIX ?= /usr
SHRDIR ?= $(PREFIX)/share
install:
@install -Dm755 bin/* -t $(DESTDIR)$(BINDIR)
@install -Dm644 doc/bashtop.1 -t $(DESTDIR)$(SHRDIR)/man/man1
clean:
rm -rf /usr/bin/bashtop
rm -rf /usr/share/man/man1/bashtop.1
clear
all: install
uninstall: clean
rm -rf /usr/bin/bashtop
rm -rf /usr/share/man/man1/bashtop.1
clear

62
doc/bashtop.1 Normal file
View File

@ -0,0 +1,62 @@
.\" Manpage for bashtop.
.\" Contact admin@qvantnet.com to correct errors or typos.
.TH man 8 "26 Apr 2020" "v0.8.14" "bashtop man page"
.SH bashtop
Linux resource monitor
.SH SYNOPSIS
bashtop
.SH DESCRIPTION
Resource monitor that shows usage and stats for processor, memory, disks, network and processes.
.SH OPTIONS
.TP
\fB\ Esc, M, m\fR
Shows main menu.
.TP
\fB\ F2, O, o\fR
Shows options.
.TP
\fB\ F1, H, h m\fR
Shows this window.
.TP
\fB\ Ctrl-C, Q, q m\fR
Quits program.
.TP
\fB\ (+, A, a) (-, S, s) m\fR
Add/Subtract 100ms to/from update timer.
.TP
\fB\ Up, Down m\fR
Select in process list.
.TP
\fB\ Enter m\fR
Show detailed information for selected process.
.TP
\fB\ Pg Up, Pg Down m\fR
Jump 1 page in process list.
.TP
\fB\ Home, End m\fR
Jump to first or last page in process list.
.TP
\fB\ Left, Right m\fR
Select previous/next sorting column.
.TP
\fB\ R, r m\fR
Reverse sorting order in processes box.
.TP
\fB\ F, f m\fR
Input a string to filter processes with.
.TP
\fB\ C, c m\fR
Clear any entered filter.
.TP
\fB\ T, t m\fR
Terminate selected process with SIGTERM - 15.
.TP
\fB\ K, k m\fR
Kill selected process with SIGKILL - 9.
.TP
\fB\ I, i m\fR
Interrupt selected process with SIGINT - 2.
.SH BUGS
There are always bugs :P
.SH AUTHOR
Aristocratos (admin@qvantnet.com)

View File

Before

Width:  |  Height:  |  Size: 8.4 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

View File

Before

Width:  |  Height:  |  Size: 147 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View File

Before

Width:  |  Height:  |  Size: 119 KiB

After

Width:  |  Height:  |  Size: 119 KiB