Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ps aux not wrapping lines

Tags:

linux

ps

When I do 'ps aux' a lot of the lines are longer than the width of my terminal, and not wrapping to the next line. At first I thought it was my stty settings, but I noticed that other commands like netstat do wrap lines in my terminal. I would prefer not to be forced to use less or some other pager.

Does anybody know why the lines are not wrapping? and how to fix?

like image 328
msknapp Avatar asked Dec 08 '13 18:12

msknapp


People also ask

What is TTY in ps aux?

A TTY is a computer terminal. In the context of ps , it is the terminal that executed a particular command. The abbreviation stands for "TeleTYpewriter", which were devices that allowed users to connect to early computers.

How do I turn off word wrap in terminal?

Completely disabling line wrapping for embedded terminals in VSCode is not possible because the shell running within the terminal window always breaks lines to its visible width. As of VSCode 1.61 (Sep 2021) you can set a wider virtual width of the terminal window.

What does ps aux display?

The ps aux command is a tool to monitor processes running on your Linux system. A process is associated with any program running on your system, and is used to manage and monitor a program's memory usage, processor time, and I/O resources.

What output does the command ps produce?

By default, it prints the processes of the current user and terminal in four columns: PID – the process id. TTY – terminal associated with the process. TIME – elapsed CPU utilization time for the process.


1 Answers

from man(1) ps OUTPUT MODIFIERS

[UN*X]  -w   Wide output.  Use this option twice for unlimited width.
[BSD]   w    Wide output.  Use this option twice for unlimited width.

I tend to the UN*X variant ps -ef and add, as a mnemonic, word wrap to make: ~ $ ps -efww but ~ $ ps auxww is equivalent.

like image 193
Dave G Avatar answered Sep 20 '22 04:09

Dave G