pslog command

pslog shows open log files for a process

Typical usage: diagnosing process issues, information gathering, troubleshooting

Introduction into pslog

The pslog command is a very small tool with one task: show which log files are opened by the selected process ID (PID). Just give it a PID and the program will show what log files are opened.

Installation

When pslog is not installed by default, it can be added to the system using the relevant software package.

Package information for pslog

Operating systemPackage nameInstallation
AlmaLinuxpsmisc
dnf install psmisc
Arch Linuxpsmisc
pacman -S psmisc
Debianpsmisc
apt install psmisc
Fedorapsmisc
dnf install psmisc
Red Hat Enterprise Linuxpsmisc
dnf install psmisc
Rocky Linuxpsmisc
dnf install psmisc
openSUSEpsmisc
zypper install psmisc
Ubuntupsmisc
apt install psmisc

Your Linux distribution using a different package? Share your feedback.

Usage

Frequently Asked Questions

What is the pslog command and its purpose?

The pslog command is a command-line tool to show what log files a process has opened

Which package provides the pslog command?

The command pslog is provided by the psmisc package.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to pslog:

Related and similar commands to pslog
CommandCategorySummary
basenamefilesStrips directory and file name suffix from a given path
chrtprocessesSets Linux scheduler policy and priority for a process or command
dmesgloggingShows kernel log messages
journalctlloggingLogging facility for Linux systems using systemd
killprocessesSending signals to processes
niceprocessesRuns commands with specified priority
numactlprocessesControls NUMA policy for processes and shared memory
peekfdprocessesTracks a process and show file descriptor activity
pidofprocessesReturns process IDs for a process name
pidstatmonitoringMonitoring CPU, memory, and disk activity
pidwaitprocessesWait for process to stop
pmapprocessesShows memory mapping of process
prtstatprocessesShows process details for selected process like state, CPU and memory usage
pscapcapabilitiesDisplay available capabilities for running processes
pstreeprocessesShow active processes and children like a tree
pwdxprocessesShows current working directory of a process
reniceprocessesChanges the priority of running processes
slabtopmemoryShows slab usage of kernel
smemmemoryShow memory usage including swap
straceprocess inspectionInspects running process
unitsdata conversionConverts a unit into another one, like from Celcius to Fahrenheit
watchprocessesMonitors changes in output of specified command