Tips
- great book about the cli: https://shop.fsf.org/books-docs/introduction-command-line
- When a parent process dies, the children does not die together, their parent become init https://unix.stackexchange.com/questions/158727/is-there-any-unix-variant-on-which-a-child-process-dies-with-its-parent/158736#158736
- To kill services using systemd: https://0pointer.de/blog/projects/systemd-for-admins-4.html
- Systemd can be set to kill the main process or the cgroup
- Systemd creates a special cgroup for each service running
- this won’t work if you fork a process in a different cgroup
- https://www.freedesktop.org/software/systemd/man/systemd.service.html
- You may need to use nsenter in order to get more info about lsof https://serverfault.com/questions/1000338/in-lsof-output-what-are-those-sock-lines/1000366#1000366
- To know which shared libraries a program is using:
ldd /usr/bin/curl
(LD_LIBRARY_PATY tells the program where to look for shared libraries) dstat
Every second it prints out how many bytes were written to the network/disk that secondopensnoop -p PID
prints out in real time every file being open by a program (uses eBPF)- https://github.com/iovisor/bcc
- you can use netcat to create http requests
netstat -tunapl
to know which process is listening to a portngrep
=> network grep
ssh tips
Torrent
- ariac (aria) https://github.com/smmr-software/mabel
Try it out
Fixing cedilha
Firefox
rofi
rofi -show
Guides
- tcpdump
- https://litchipi.github.io/series/container_in_rust rust linux
- https://danielmiessler.com/study/vim/#language vim
- A visual guide to SSH tunnels
- https://linuxhint.com/how-to-use-ngrep/
Restore all my packages
- https://www.howtogeek.com/110034/how-to-back-up-restore-your-installed-ubuntu-packages-with-aptoncd/