2

When I run a long command w just shows part of it by default.

enter image description here

How do I make it show the full command?

1 Answer 1

5

The command is designed to produce a columnar layout, and for that reason truncates all output that exceeds the character width of the current display. Otherwise, it would be wrapped and render the output less structured. In a larger terminal window, e.g. after you maximized the terminal, more output will be shown when running the command again.

A trick to see all output wrapped within a smaller window, but loosing some of the column formatting, would be to pipe the output to cat:

w | cat
1
  • 2
    As an alternative, piping to tee or more would also generate similar results.
    – Kulfy
    Commented Mar 22, 2021 at 18:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .