Show Full Path of Commands in htop
Learn how to configure the htop interactive process
viewer in Linux to display the complete file path of running commands
instead of just the shortened program names. This quick guide covers the
keyboard shortcut method and the step-by-step setup menu configuration
to help you easily identify the exact location of running binaries.
The Quick Keyboard Shortcut
The fastest way to toggle between the short program name and the full command path is by using a built-in keyboard shortcut while the program is running.
- Press
pon your keyboard.
Pressing this key instantly switches the “Command” column to show the absolute path of the executable. Pressing it again will revert the view back to the standard program name.
Configuring via Setup Menu
If you want to permanently change the view or customize how the command line arguments are displayed, you can navigate through the internal setup menu.
- Launch
htopin your terminal. - Press
F2(orS) to enter the Setup menu. - Use the arrow keys to navigate down to Display options in the left-hand column.
- Move to the middle column and locate the option labeled Show program path.
- Press
Spaceto check the box next to it. - (Optional) You can also check Detailed command line to see all arguments passed to the process.
- Press
F10(orEsc) to save your changes and return to the main process list.
Once saved, htop will remember this preference across
future terminal sessions, ensuring you always see the full directory
path for every active process.