Skip to content

Commit 7cc974e

Browse files
committed
Additional changes from review
1 parent 37e37e0 commit 7cc974e

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

book/quick_tour.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,14 @@ You may be familiar with the Linux/Unix `ps` command. It provides a list of all
9494

9595
::: note
9696
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.
97105
:::
98106

99107
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
108116
```
109117

110118
::: 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.
113120

114121
You can examine the types for the table's columns using:
115122

@@ -118,6 +125,8 @@ ps | describe
118125
# => table<pid: int, ppid: int, name: string, status: string, cpu: float, mem: filesize, virtual: filesize> (stream)
119126
```
120127

128+
The [`describe` command](/commands/docs/describe.md) can be used to display the output type of any command or expression.
129+
121130
:::
122131

123132
## Command Arguments in a Pipeline

0 commit comments

Comments
 (0)