Senior
Have you ever had to execute Linux commands? Which ones do you use?
sobes.tech AI
Answer from AI
Yes, I regularly use Linux commands when developing and debugging applications in Go. Some frequently used commands include:
ps,top— for process monitoring.netstat,ss— for checking network connections.grep,awk,sed— for filtering and processing logs.curl,wget— for testing HTTP requests.strace— for tracing system calls.docker— for managing containers.
Example: to find all errors in application logs, you can use:
cat app.log | grep ERROR
Or to check which ports the application is listening on:
ss -tuln | grep 8080