HOST=bob-n.fsprings.com echo ${HOST%%[-\.]*}
better df formating
df -P will provide 1 line per mount-point df -h -P will give human readable sizes (MB, GB, …) df -hP|column -t Will allign the output in columns
Adding users to Windows via command line
net user <user> <password> /add net user bob password To add to administrators group net localgroup administrators <user>/add To allow remote desktop access net localgroup “Remote Desktop Users” <user>/add If the password isn’t supposed to expire use this: WMIC USERACCOUNT…