On 2018-07-01 19:46, to...@tuxteam.de wrote:
On Sun, Jul 01, 2018 at 07:19:02PM +0100, mick crane wrote:
On 2018-07-01 06:00, Karen Lewellen wrote:
>Well it seems   it works like this.
>traceroute domain-to-be-traced.com > trace-results.txt
>or something like that.
>process worked for me just now.
>Thanks as usual,
>Karen

I'm asking 'cause I don't really know.
What's the difference between a pipe "|" and sending the result
somewhere ">" ?

The pipe starts a process (using the command and parameters right of
the pipe symbol) and sends the stdout of the "left" process to the
stdin of the right process as in:

  ls -l | less

... this would send the output of "ls -l" to the input of "less",
which pages that input for you, or

  ls -l | grep lolcat

...which sends the output of "ls -l" to the input of "grep lolcat",
this last filtering out the lines containing the pattern "lolcat",

while ">" would redirect the standard output to a file, like in

  ls -l > /tmp/result

...which will create a file /tmp/result (or replace an existing
file) and fill it with "ls -l"'s output.

HTH
-- toms

yes I use them a bit but just wondered "|" is sending to a process I guess but the process doesn't exist until asked for, whereas ">" is sending to what ? some internal kernel thing that dumps the output in a file ?
forget I said anything.

mick


Key ID    4BFEBB31

Reply via email to