Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
1744277a
Unverified
Commit
1744277a
authored
Oct 11, 2020
by
Joshua Pratt
Committed by
GitHub
Oct 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
systemadmin: correct sort order for psmem aliases (#6253)
parent
fd512077
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
README.md
plugins/systemadmin/README.md
+2
-2
systemadmin.plugin.zsh
plugins/systemadmin/systemadmin.plugin.zsh
+2
-2
No files found.
plugins/systemadmin/README.md
View file @
1744277a
...
@@ -16,8 +16,8 @@ plugins=(... systemadmin)
...
@@ -16,8 +16,8 @@ plugins=(... systemadmin)
| clr |
`clear; echo Currently logged in on $TTY, as $USER in directory $PWD.`
| Clears the screen and prints the current user, TTY, and directory |
| clr |
`clear; echo Currently logged in on $TTY, as $USER in directory $PWD.`
| Clears the screen and prints the current user, TTY, and directory |
| path |
`print -l $path`
| Displays PATH with each entry on a separate line |
| path |
`print -l $path`
| Displays PATH with each entry on a separate line |
| mkdir |
`mkdir -pv`
| Automatically create parent directories and display verbose output |
| mkdir |
`mkdir -pv`
| Automatically create parent directories and display verbose output |
| psmem |
`ps -e -orss=,args= \| sort -b -k1
,1n`
| Display the processes using the most memory |
| psmem |
`ps -e -orss=,args= \| sort -b -k1
-nr`
| Display the processes using the most memory |
| psmem10 |
`ps -e -orss=,args= \| sort -b -k1
,1n \| head -10`
| Display the top 10 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 |
| pscpu |
`ps -e -o pcpu,cpu,nice,state,cputime,args \|sort -k1 -nr`
| Display the top processes using the most CPU |
| 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 -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 |
| hist10 |
`print -l ${(o)history%% *} \| uniq -c \| sort -nr \| head -n 10`
| Display the top 10 most used commands in the history |
...
...
plugins/systemadmin/systemadmin.plugin.zsh
View file @
1744277a
...
@@ -25,8 +25,8 @@ alias clr='clear; echo Currently logged in on $TTY, as $USER in directory $PWD.'
...
@@ -25,8 +25,8 @@ alias clr='clear; echo Currently logged in on $TTY, as $USER in directory $PWD.'
alias
path
=
'print -l $path'
alias
path
=
'print -l $path'
alias mkdir
=
'mkdir -pv'
alias mkdir
=
'mkdir -pv'
# get top process eating memory
# get top process eating memory
alias
psmem
=
'ps -e -orss=,args= | sort -b -k1
,1n
'
alias
psmem
=
'ps -e -orss=,args= | sort -b -k1
-nr
'
alias
psmem10
=
'ps -e -orss=,args= | sort -b -k1
,1n
| head -10'
alias
psmem10
=
'ps -e -orss=,args= | sort -b -k1
-nr
| head -10'
# get top process eating cpu if not work try excute : export LC_ALL='C'
# get top process eating cpu if not work try excute : export LC_ALL='C'
alias
pscpu
=
'ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr'
alias
pscpu
=
'ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr'
alias
pscpu10
=
'ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10'
alias
pscpu10
=
'ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment