Sometimes you need to look for something (i.e. grep) in file, but you want to see several lines BEFORE and AFTER the line you’re looking for. So, how can you do this in Linux? Try: It looks for text “Deploying” in file catalina.out…
Tag: <span>linux</span>
One day I got tired of entering ssh mycoolusername@my.awesome.server.com Because my username is the same on all the servers. So, what I did – I’ve created a file and added a default username for the servers: $ cat ~/.ssh/configCanonicalizeHostname yesHost *.my.awesome.server.com User mycoolusername…