Create Swap File Nov 8, 2012 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
Find Directories & Add Group Sticky Bit Nov 8, 2012 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 just the code
Output Directories to Shell Nov 8, 2012 Output Directories to Shell find . -maxdepth 99 -mindepth 1 -type d -printf %P\\n ls -1l | grep '^d' | awk '{print $8}' find ./ -type d find
CHMOD Directories Only Nov 8, 2012 CHMOD Directories Only Change UNIX permissions on directories only. find . -type d -print0 | xargs -0 chmod 755
Export Active Active Directory Users into CSV Nov 7, 2012 csvde Export Active Active Directory Users into CSV That’s not a typo. Export only active Active Directory users (not disabled) into a csv file with csvde, the following should suite your needs: