Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

linux macos troubleshooting Notes

ipatch edited this page May 7, 2018 · 1 revision

Working with processes

To show the process ID of a process by the string name

pgrep <processName>

To kill a process by the name of the process

pkill <processName>

To listen to see which process ID / name is listening on a port

netstat -tulpn | grep :25

25 denotes the port number

strace Notes

strace /usr/bin/ld -lsasl2
ln -s /usr/local/lib/libsasl2.so /usr/lib/libsasl2.so
/usr/bin/ld -lsasl2

To trace system calls from commands, ie,

strace df -h

To trace Linux Process PID

strace -p 42

To get a summary of a Linux process

strace -c -p 42

To print instruction pointer during system call

strace -i df -h

To show time of day for each output line

strace -t df -h

Useful Links

Frequent Flyers ✈️

❀️ ~/.πŸ› πŸˆ

Clone this wiki locally

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /