Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Not relevant to the topic,why "df |(head -n1; grep shm)" can't work? Commented Feb 15 at 5:00
  • More short."df | grep 'shm\|1K-blocks'" Commented Feb 15 at 5:01
  • @showkey Because head -n1 outputs the first line of STDIN, and discards the rest, so grep has nothing to read. Read man head. U&L is a Q&A site, not a conversation site. If you have new information on your original question, edit the question and add it. If you have a new question, How to Ask it. Do not try to start conversations in a Comment. Commented Feb 15 at 17:44