Skip to content
ServerOK
  • Home
  • HowTo
    • Cpanel
    • Mail
    • MySQL
    • Nginx
    • Apache
    • CloudLinux
    • Ubuntu
    • WordPress
    • Magento
  • Tools
  • Hire Me

proc

Displaying /proc/PID/cmdline with space

April 2, 2020December 3, 2018 by Yujin Boby

On linux, the file /proc/PID/cmdline shows the command line for the process. If you check content of this file, you will see the command, but arguments are not seperated by space. To display the command line with space, run cat /proc/PID/cmdline | tr ‘\000’ ‘ ‘ Or cat /proc/PID/cmdline | xargs -0 echo Example To … Read more

Categories Linux Tags cmdline, linux proc, proc Leave a comment

Categories

  • AlmaLinux
  • Amazon AWS
  • Apache
  • CentOS
  • Cloud
  • CloudLinux
  • Cpanel
  • Debian
  • DevOps
  • Docker
  • Ecommerce
  • Exim
  • FreeBSD
  • Game
  • General
  • git
  • Google Cloud
  • IIS
  • kubernetes
  • lighttpd
  • Linux
  • LiteSpeed
  • LiteSpeed
  • Magento
  • Mail
  • MongoDB
  • MySQL
  • Nginx
  • Node.js
  • OpenLiteSpeed
  • openSUSE
  • Oracle Linux
  • PHP
  • Plesk
  • Postfix
  • PostgreSQL
  • PowerMTA
  • Programming
  • Python
  • RHEL
  • Rocky Linux
  • Ruby
  • Security
  • SEO
  • SSL
  • Ubuntu
  • Uncategorized
  • Vim
  • Virtualization
  • Web Server
  • Windows
  • WordPress
  • Zimbra
© 2025 ServerOK • Built with GeneratePress