summaryrefslogtreecommitdiff
path: root/plugins/systemadmin/README.md
diff options
context:
space:
mode:
authorKevin Burke <kevin@burke.dev>2021-11-09 00:04:10 -0800
committerGitHub <noreply@github.com>2021-11-09 09:04:10 +0100
commite86c6f5e7fc9f024a427e2870ab70644b5454725 (patch)
treebde5878b37dc151ae8643ef0473ea90a0d89a830 /plugins/systemadmin/README.md
parent55682e36920e2ab7633fc6eee11466d3faed0bf8 (diff)
downloadzsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.gz
zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.tar.bz2
zsh-e86c6f5e7fc9f024a427e2870ab70644b5454725.zip
style: use `-n` flag in `head` and `tail` commands (#10391)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
Diffstat (limited to 'plugins/systemadmin/README.md')
-rw-r--r--plugins/systemadmin/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/systemadmin/README.md b/plugins/systemadmin/README.md
index 052fc6edc..146b58605 100644
--- a/plugins/systemadmin/README.md
+++ b/plugins/systemadmin/README.md
@@ -17,9 +17,9 @@ plugins=(... systemadmin)
| path | `print -l $path` | Displays PATH with each entry on a separate line |
| mkdir | `mkdir -pv` | Automatically create parent directories and display verbose output |
| psmem | `ps -e -orss=,args= \| sort -b -k1 -nr` | Display the processes using the most memory |
-| psmem10 | `ps -e -orss=,args= \| sort -b -k1 -nr \| head -10` | Display the top 10 processes using the most memory |
+| psmem10 | `ps -e -orss=,args= \| sort -b -k1 -nr \| head -n 10` | Display the top 10 processes using the most memory |
| pscpu | `ps -e -o pcpu,cpu,nice,state,cputime,args \|sort -k1 -nr` | Display the top processes using the most CPU |
-| pscpu10 | `ps -e -o pcpu,cpu,nice,state,cputime,args \|sort -k1 -nr \| head -10` | Display the top 10 processes using the most CPU |
+| pscpu10 | `ps -e -o pcpu,cpu,nice,state,cputime,args \|sort -k1 -nr \| head -n 10` | Display the top 10 processes using the most CPU |
| hist10 | `print -l ${(o)history%% *} \| uniq -c \| sort -nr \| head -n 10` | Display the top 10 most used commands in the history |
## Functions