OSs
Command variations for different OSs so I don’t forgot 😁
Linux
ps -ef # list all running processes
ps -aux --forest # list all processes in forest view
xclip -i file.ext -selection clipboard # copy file contents to clipboard
NetBSD
- List all running processes:
ps -Ajww
Windows
CMD
- List files recursively:
dir /a-D /S /B
- List files & folders recursively:
dir /a /S /B
Powershell Goodness
Process Info
- List all processes:
Get-Process
- Get process by network port:
Get-Process -Id (Get-NetTCPConnection -LocalPort <PORT>).OwningProcess
- Get process path by process name:
(Get-Process -Name <PROCESS_NAME>).path