sysadmin

If you want to find out which directories on your Linux box that is gobbling up all of your disk space, use this command. du -h <dir> | grep ‘[0-9\.]\+G’ If you want to check the current directory, don’t include a

If you’re like me and you have to connect to a VPN with the Cisco Anywhere Connect client, you’re probably dealing with strange networking issues as a result. One of the things I do when I’m experiencing networking issues is that I restart networking on my Mac. To do that run this command. sudo ifconfig … How to Restart Networking on a Mac

If you’ve ever thought, “What’s the easiest why to quickly synch two remote directories?” If I were going to sync up two remote directories I would do this. rsync -avz user@gdemolished.com:~/Maildir/ . If I ran this command in a directory called Maildir.backup, all of the contents of the remote Maildir would be in there. If … Synch two directories with rsync

I’ve had to, from time-to-time, create users on Linux boxes that need to connect via IMAP to get email, but they can’t SSH or login to the server. There are certainly more elaborate ways to solve this problem, but here’s my ghetto solution. When creating the user set their shell to /bin/false. useradd –shell /bin/false … How to Add a Linux User for Mail but Not Login