-
Notifications
You must be signed in to change notification settings - Fork 5
linux macos troubleshooting Notes
ipatch edited this page May 7, 2018
·
1 revision
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 /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
- some commands working with strace
- some useful commands when working with strace, see π
- StackExchange QnA - recovering from a grub rescue crash
- Ubuntu.com - Grub2 Troubleshooting
If you find any of this info helpful on your journey π click that π βοΈ star button. It sure makes me feel warm and fuzzy π» on the inside.
-
Linux and macOS Operation Notes
- β macOS Op Notes
- π§ Linux Op Notes
- Vim & Neovim Notes
- git Notes
- π fish shell Notes
- ECMAScript Tooling
- π₯§ Raspberry Pi Notes
- asdf version manager Notes
- Bind9 Notes
- Creating a custom motd on Debian Jessie
- ECMAScript Tooling
- Email client Notes
- Email Server Setup Notes Postfix & Dovecot
- Emoji side quest
- fish shell Notes
- π₯ π€ git it got it good Notes
- git Notes
- Graphics and Image Processing Notes
- GUI text editor Notes
- π»π§ Homebrew and Linuxbrew formula Notes
- Linux and macOS Administration Notes
- Linux and macOS Troubleshooting Notes
- MacBook Pro Late 2013 Notes
- Vim & Neovim Notes
- Video Production Notes
- Python Notes
- radare Notes
- Raspberry Pi Notes
- Terminal Emulators
- Tmux Notes
- Web Browser Notes
- Weechat Notes
- Microsoft Windows Notes