Common shell instructions

Here is my little reminder on commands I use, not so frequently, on Ubuntu. Hope this can helps others !

Network

List network services

netstat -ntlp | grep LISTEN

Sed

Copy inputFile to outputFile replacing in the content oldContent by newContent

Exemple, copy Apache site config of www.islay.fr for blog.grossiord.net :