Top
Usage
f - customize top show options
'N' - to sort the list by process id
'P' - to sort the process list by cpu usage.
'T' - to sort by the running time.
'Mm' - to sort by the memory
1 - show all cpus usage
-d/d - delay seconds
top -d 2-c/c - show it will display absolute path of running process.
-u -
top -u mysqlsave top results
top -n 1 -b > top-output.txt-r/r - renice pid
Fields Management for window 1:Def, whose current sort field is %CPU
Navigate with Up/Dn, Right selects for move then <Enter> or Left commits,
'd' or <Space> toggles display, 's' sets sort. Use 'q' or <Esc> to end!
* PID = Process Id TTY = Controlling T vMj = Major Faults
* USER = Effective Use TPGID = Tty Process G vMn = Minor Faults
* PR = Priority SID = Session Id USED = Res+Swap Size
* NI = Nice Value nTH = Number of Thr nsIPC = IPC namespace
* VIRT = Virtual Image P = Last Used Cpu nsMNT = MNT namespace
* RES = Resident Size TIME = CPU Time nsNET = NET namespace
* SHR = Shared Memory SWAP = Swapped Size nsPID = PID namespace
* S = Process Statu CODE = Code Size (Ki nsUSER = USER namespac
* %CPU = CPU Usage DATA = Data+Stack (K nsUTS = UTS namespace
* %MEM = Memory Usage nMaj = Major Page Fa LXC = LXC container
* TIME+ = CPU Time, hun nMin = Minor Page Fa RSan = RES Anonymous
* COMMAND = Command Name/ nDRT = Dirty Pages C RSfd = RES File-base
PPID = Parent Proces WCHAN = Sleeping in F RSlk = RES Locked (K
UID = Effective Use Flags = Task Flags <s RSsh = RES Shared (K
RUID = Real User Id CGROUPS = Control Group CGNAME = Control Group
RUSER = Real User Nam SUPGIDS = Supp Groups I
SUID = Saved User Id SUPGRPS = Supp Groups N
SUSER = Saved User Na TGID = Thread Group
GID = Group Id OOMa = OOMEM Adjustm
GROUP = Group Name OOMs = OOMEM Score c
PGRP = Process Group ENVIRON = Environment vP - to sort the process list by cpu usage.
T' - to sort by the running time.
Last updated