LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   [trick] Leave console free for apps while running X (https://www.linuxquestions.org/questions/slackware-14/%5Btrick%5D-leave-console-free-for-apps-while-running-x-20418/)

SiliconBadger 05-09-2002 02:51 PM

I see...
 
Thanks for the info on the > /dev/null & part. That will be useful... how is that related to the | (pipe), which allows the piping of output as in tar -tf linux-2.4.18.tar.gz|egrep kde?

I see your point about the tips, acid_kewpie. This is a general problem I have with putting too much effort into forum posts. :p

Rashkae 05-09-2002 03:00 PM

> and |
 
> is used to redirect the SDTOUT of a process into a file (the work of writing to the file is being done by the shell)

| is used to redirect SDTOUT into SDTIN of another program.

Also useful is the < , which is used to read a file as STDIN for a process... This often gets neglected in favor of cat however.

Almost everywhere you see:
cat filename | someprogram

Can be re-written as:
someprogram < filename

tifkat 05-18-2002 09:36 PM

Re: > /dev/null
 
Quote:

Originally posted by Rashkae Slightly edited by tifkat ;)
/dev/null is... also a great device to use for backups. Guaranteed, backups will go many times faster.
Uh-oh, someone's been reading The BOFH again!

tifkat


All times are GMT -5. The time now is 02:38 AM.