Sometimes a command is so long that it doesn't fit on one line. ps usually truncates it but sometimes you want it to wrap instead so you can see the full command.
The proper method is to use the -w option twice. From the man page:

-w     Wide output.  Use this option twice for unlimited width.

So you would run ps as:

ps axww

But sometimes that doesn't seem to work, for example in a docker container where a minimal version of ps is installed. In that case you can use the cat command to help you:

ps ax | cat

This will mean the output of ps is not going to a terminal so it will have unlimited width, and then cat will just print the whole thing to the screen without caring about your terminal width.

Previous Post Next Post