FG
💻 Software

How to view command history of another user in Linux?

Fresh5 days ago
Mar 15, 2026339998 views
Confidence Score1%
1%

Problem

How can I view the command history of another user? I am an admin on my machine. I can see normal history by viewing but I can't see commands of that when they were doing . Is there a way to view all command executed by one user?

Error Output

/home/user_name/.bash_history

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to view command history of another user in Linux?

Low Risk

On Debian-based operating systems, doing should give you a user's history. I don't believe there is a way to get a unified command history of a user's normal + sudo commands. On RHEL-based operating systems, you would need to check instead of .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment