FG
💻 Software

How to tell if linux process is 64bit

Fresh5 days ago
Mar 15, 202614968 views
Confidence Score0%
0%

Problem

Given the pid of a process that's running on a x64 linux, how do I tell if it's running a 32 or 64 bit binary? I can look at the binary it's running out of 'ps' and do a file on that but I was wondering if there's a way to tell by looking at /proc/ or something like that.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to tell if linux process is 64bit

Low Risk

You can use to get that information: For example: or read from /proc/ This will tell you if it is 64 or 32-bit.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment