Skip to content

Comment on Linux command line techniques: IO redirection and piping

Comments

As far as redirection goes, this skipped the least known bit (IMHO), closing descriptors.

    jmhobbs@katya:~$ cat file-that-doesnt-exist
    cat: file-that-doesnt-exist: No such file or directory
    jmhobbs@katya:~$ cat file-that-doesnt-exist 2>&-
    jmhobbs@katya:~$
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.