Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A need to grep the output for this command:

systemctl | grep failed

The problem is that it does not show complete units:

systemd-...-clean.service loaded failed failed        Cleanup of Temporary Directories
systemd-...-setup.service loaded failed failed        Recreate Volatile Files and Directories
tcsd.service              loaded failed failed        LSB: Init script for TCSD
cups.socket               loaded failed failed        CUPS Printing Service Sockets

Your can see the units show like: systemd-...es-clean.timer for systemd-tmpfiles-clean.service

I tried with a file:

systemctl --failed > file

Or cat:

systemctl --failed | cat

But the problem is the same. I need some help to understand why that happens and how fix it.

share|improve this question
Just for the future, man systemctl or man somethingelse solves most of these problems ;) – drahnr Oct 15 '12 at 21:21

This is not related to pipes, is systemctl's behavior. Use the --full switch to get full names:

    Do not ellipsize unit names and truncate unit descriptions in the
    output of list-units and list-jobs.
share|improve this answer
You are right :) , thank you very much. – Kevin Oct 13 '12 at 14:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.