You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/quick_tour.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,14 @@ You may be familiar with the Linux/Unix `ps` command. It provides a list of all
94
94
95
95
::: note
96
96
The traditional Unix `ps` only shows the current process and its parents by default. Nushell's implementation shows all of the processes on the system by default.
97
+
98
+
Normally, running `ps` in Nushell uses its **_internal_**, cross-platform command. However, it is still possible to run the **_external_**, system-dependent version on Unix/Linux platforms by prefacing it with the _caret sigil_. For example:
99
+
100
+
```nu
101
+
^ps aux # run the Unix ps command with all processes in user-oriented form
102
+
```
103
+
104
+
See [Running External System Commands](./running_externals.md) for more details.
97
105
:::
98
106
99
107
What if we wanted to just show the processes that are actively running? As with `ls` above, we can also work with the table that `ps`_outputs_:
@@ -108,8 +116,7 @@ ps | where status == Running
108
116
```
109
117
110
118
::: tip
111
-
Remember above, where the `size` column from the `ls` command was a `filesize`? Here, `status` is really just a string, and
112
-
you can use all the normal string operations and commands with it, including (as above) the `==` comparison.
119
+
Remember above, where the `size` column from the `ls` command was a `filesize`? Here, `status` is really just a string, and you can use all the normal string operations and commands with it, including (as above) the `==` comparison.
113
120
114
121
You can examine the types for the table's columns using:
0 commit comments