Shell

Display Active Connections in Linux

ubuntu server show all tcp connections This post will show you how the netstat command displays active connections in Linux and… Read More

June 10, 2016 6:07 am 06:07

How to Restart Network on Ubuntu 16.04 Xenial Linux

Ubuntu Server 16.04 LTS isn't managed with NetworkManager and does not come installed by default like it did in prior… Read More

May 24, 2016 9:17 pm 21:17

Strong Ciphers for Apache, nginx and Lighttpd

Cipherli.st - Strong ciphers for Apache, nginx and Lighttpd Read More

April 22, 2016 8:12 pm 20:12

Find Large Files

find /var/www -type f -size +10240k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'… Read More

November 8, 2012 8:55 am 08:55

Create Swap File

#!/bin/bash -e # Set default variable values : ${SWAP_SIZE_MEGABYTES:=1024} : ${SWAP_FILE_LOCATION:=/var/swap.space} if (( $SWAP_SIZE_MEGABYTES <= 0 )); then echo 'No… Read More

November 8, 2012 8:54 am 08:54

Find Directories & Add Group Sticky Bit

Probably make another post explaining what a sticky bit is and how it's used, but for now I'm giving you… Read More

November 8, 2012 8:52 am 08:52