pslog command
pslog shows open log files for a process
Typical usage: diagnosing process issues, information gathering, troubleshootingIntroduction 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 system | Package name | Installation |
---|---|---|
AlmaLinux | psmisc |
|
Arch Linux | psmisc |
|
Debian | psmisc |
|
Fedora | psmisc |
|
Red Hat Enterprise Linux | psmisc |
|
Rocky Linux | psmisc |
|
openSUSE | psmisc |
|
Ubuntu | 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:
Command | Category | Summary |
---|---|---|
basename | files | Strips directory and file name suffix from a given path |
chrt | processes | Sets Linux scheduler policy and priority for a process or command |
dmesg | logging | Shows kernel log messages |
journalctl | logging | Logging facility for Linux systems using systemd |
kill | processes | Sending signals to processes |
nice | processes | Runs commands with specified priority |
numactl | processes | Controls NUMA policy for processes and shared memory |
peekfd | processes | Tracks a process and show file descriptor activity |
pidof | processes | Returns process IDs for a process name |
pidstat | monitoring | Monitoring CPU, memory, and disk activity |
pidwait | processes | Wait for process to stop |
pmap | processes | Shows memory mapping of process |
prtstat | processes | Shows process details for selected process like state, CPU and memory usage |
pscap | capabilities | Display available capabilities for running processes |
pstree | processes | Show active processes and children like a tree |
pwdx | processes | Shows current working directory of a process |
renice | processes | Changes the priority of running processes |
slabtop | memory | Shows slab usage of kernel |
smem | memory | Show memory usage including swap |
strace | process inspection | Inspects running process |
units | data conversion | Converts a unit into another one, like from Celcius to Fahrenheit |
watch | processes | Monitors changes in output of specified command |