Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmitry-salnikov/ccea113c1d2b1d2ea77dbd16ddffb3c0 to your computer and use it in GitHub Desktop.
Save dmitry-salnikov/ccea113c1d2b1d2ea77dbd16ddffb3c0 to your computer and use it in GitHub Desktop.

Revisions

  1. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 8 additions and 6 deletions.
    14 changes: 8 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -14,21 +14,21 @@ This is a list of the most helpful keyboard commands I use within top.

    `Left` and `Right` to navigate horizontally through fields (in case you're displaying a bunch).

    `C` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).
    `Shift+c` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).

    ## Sorting

    `Shift+P` sort processes by CPU usage
    `Shift+p` sort processes by CPU usage

    `Shift+M` sort processes by memory usage
    `Shift+m` sort processes by memory usage

    `Shift+R` reverse sort order
    `Shift+r` reverse sort order

    Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.

    ## Searching

    `L` search for a string and highlights all occurences
    `Shift+l` search for a string and highlights all occurences

    `o` add a filter to limit which processes are displayed. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `USER=eric`.

    @@ -44,4 +44,6 @@ Sort on any field: Press `f` to bring up the Field Management menu. Select the f

    `d` set the refresh rate (in seconds)

    `W` saves the settings you've configured while running top to a file (`.toprc`) so they persist next time you use it.
    `Shift+w` saves the settings you've configured while running top to a file (`.toprc`) so they persist next time you use it.

    `Shift+e` toggle the scale of memory metrics (between kilobytes and megabytes etc.) in the system memory summary, and `e` toggles the scale of memory metrics in the process list. The default is kilobytes, I find megabytes a useful level.
  2. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -30,7 +30,7 @@ Sort on any field: Press `f` to bring up the Field Management menu. Select the f

    `L` search for a string and highlights all occurences

    `o` add a filter. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `USER=eric`.
    `o` add a filter to limit which processes are displayed. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `USER=eric`.

    `Ctrl+o` view active filters.

  3. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -28,7 +28,7 @@ Sort on any field: Press `f` to bring up the Field Management menu. Select the f

    ## Searching

    `L` search for a string, which will also highlight all occurences
    `L` search for a string and highlights all occurences

    `o` add a filter. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `USER=eric`.

  4. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@

    This is a list of the most helpful keyboard commands I use within top.

    ## The basics

    `h` shows help on interactive commands. Also see the [top manual page](http://man7.org/linux/man-pages/man1/top.1.html)

    `q` to quit the program.
  5. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@
    # top (the UNIX process inspector) cheat sheet

    This is a list of the most helpful keyboard commands I use within top.

    `h` shows help on interactive commands. Also see the [top manual page](http://man7.org/linux/man-pages/man1/top.1.html)

    `q` to quit the program.
  6. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@

    `Up` and `Down` to scroll through processes one by one, or `PageUp` and `PageDown` for paged navigation.

    `Left` and `Right` to navigate horizontally through fields (useful when displaying many).
    `Left` and `Right` to navigate horizontally through fields (in case you're displaying a bunch).

    `C` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).

  7. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 20 additions and 11 deletions.
    31 changes: 20 additions & 11 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,26 @@
    # top (the UNIX process inspector) cheat sheet

    `h` shows help on interactive commands. Also see the [top manual page](http://man7.org/linux/man-pages/man1/top.1.html)

    `q` to quit the program.

    ## Navigating

    * `Up` and `Down` to scroll through processes one by one, or `PageUp` and `PageDown` for paged navigation.
    * `Left` and `Right` to navigate horizontally through fields (useful when displaying many).
    * `C` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).
    `Up` and `Down` to scroll through processes one by one, or `PageUp` and `PageDown` for paged navigation.

    `Left` and `Right` to navigate horizontally through fields (useful when displaying many).

    `C` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).

    ## Sorting

    * `Shift+P` sort processes by CPU usage
    * `Shift+M` sort processes by memory usage
    * `Shift+R` reverse sort order
    * Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.
    `Shift+P` sort processes by CPU usage

    `Shift+M` sort processes by memory usage

    `Shift+R` reverse sort order

    Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.

    ## Searching

    @@ -28,7 +34,10 @@

    ## Other stuff

    * `m` switches memory views between the list of metrics and graph view.
    * `k` kill a process
    * `d` set the refresh rate (in seconds)
    * `W` saves the settings you've configured while running top to a file (`.toprc`) so they persist next time you use it.
    `m` switches memory views between the list of metrics and graph view.

    `k` kill a process

    `d` set the refresh rate (in seconds)

    `W` saves the settings you've configured while running top to a file (`.toprc`) so they persist next time you use it.
  8. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # top (the UNIX process inspector) cheat sheet

    `h` shows help on interactive commands. Also see the man page for top (`man top`).
    `h` shows help on interactive commands. Also see the [top manual page](http://man7.org/linux/man-pages/man1/top.1.html)
    `q` to quit the program.

    ## Navigating
  9. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@

    `L` search for a string, which will also highlight all occurences

    `o` add a filter. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `user=eric`.
    `o` add a filter. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `USER=eric`.

    `Ctrl+o` view active filters.

  10. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,8 @@
    # top (the UNIX process inspector) cheat sheet

    `h` shows help on interactive commands. Also see the man page for top (`man top`).
    `q` to quit the program.

    ## Navigating

    * `Up` and `Down` to scroll through processes one by one, or `PageUp` and `PageDown` for paged navigation.
    @@ -13,9 +16,19 @@
    * `Shift+R` reverse sort order
    * Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.

    ## Searching

    `L` search for a string, which will also highlight all occurences

    `o` add a filter. A filter takes the format `{field name}{comparator}{value}`. For example, to see only processes owned by my user, I would add a filter `user=eric`.

    `Ctrl+o` view active filters.

    `=` clear all filters.

    ## Other stuff

    * `m` switches memory views between the list of metrics and graph view.
    * `k` kill a process
    * `d` set the refresh rate (in seconds)
    *
    * `W` saves the settings you've configured while running top to a file (`.toprc`) so they persist next time you use it.
  11. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 7 additions and 3 deletions.
    10 changes: 7 additions & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,10 @@
    # top (the process-inspector) cheat sheet
    # top (the UNIX process inspector) cheat sheet

    ## Navigating

    * `Up` and `down` navigate through the list of processes
    * `Up` and `Down` to scroll through processes one by one, or `PageUp` and `PageDown` for paged navigation.
    * `Left` and `Right` to navigate horizontally through fields (useful when displaying many).
    * `C` will show an index of where you are in the process list (eg 30/300 when your cursor is on process 30 and there are 300).

    ## Sorting

    @@ -14,4 +16,6 @@
    ## Other stuff

    * `m` switches memory views between the list of metrics and graph view.

    * `k` kill a process
    * `d` set the refresh rate (in seconds)
    *
  12. @ericandrewlewis ericandrewlewis revised this gist Aug 29, 2016. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,3 +11,7 @@
    * `Shift+R` reverse sort order
    * Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.

    ## Other stuff

    * `m` switches memory views between the list of metrics and graph view.

  13. @ericandrewlewis ericandrewlewis renamed this gist Aug 29, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  14. @ericandrewlewis ericandrewlewis created this gist Aug 29, 2016.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # top (the process-inspector) cheat sheet

    ## Navigating

    * `Up` and `down` navigate through the list of processes

    ## Sorting

    * `Shift+P` sort processes by CPU usage
    * `Shift+M` sort processes by memory usage
    * `Shift+R` reverse sort order
    * Sort on any field: Press `f` to bring up the Field Management menu. Select the field to sort on, press `s` and then `Escape`.