Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

--full
    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
add comment

Your Answer

 
discard

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.