Sample Header Ad - 728x90

Why does this display output: ls 1>/dev/null | less

0 votes
1 answer
51 views
If I do this: ls 1>/dev/null then as expected there is no output to the screen because it's been redirected to /dev/null However, if I do this ls 1>/dev/null | less I see the file listing of the current directory. How?!?
Asked by Ben (327 rep)
Jan 8, 2025, 04:37 PM
Last activity: Jan 8, 2025, 04:51 PM