Tag

commands Archives - AWS Managed Services by Anchor

Awesome but often unknown Linux commands and tools

By | Technical | 5 Comments

I’ve been working in this industry for a while now and naturally spend a lot of time using Linux on a daily basis. This gives lots of exposure to various Linux commands and tools. That said, I am sometimes surprised when I see, often very experienced system administrators, using somewhat convoluted commands to do something relatively simple using a different tool. This is my opportunity to share some of these experiences: 1. pgrep and pkill – The first command ‘pgrep’ will return the process id based on a name or other attributes. pkill will signal a process with a matching name or attribute. Want to kill all processes being run by a given user? Issue a pkill -U USERNAME; sure beats the hell out of: ps -U USERNAME | awk…

Read More