ERICASBERRY.COM
Eric 's Blog and Vast Repository of Nearly
Useless Information
Flush MacOS DNS Cache
Had to restart a dead remote VM server this morning, and it gets its IP
address from DHCP. I don’t have physical access to the machine and I
needed to SSH into the VM to manually restart some services. My
MacOS system was still caching the old DNS address, and IT told me I
needed to flush my DNS cache. I had no idea how to do that on MacOS,
but turns out to be pretty simple. In the terminal, just run the following
command:
sudo killall -HUP mDNSResponder
Magic!
Share this:
J a n u a r y 2 2 , 2 0 2 0 L e a v e a c o m m e n t
Copying dot les from the shell
This isn’t rocket science, more of a note to self.
Found myself moving to a new work machine at work. Part of that
involves copying dot files that Mac OSX finder can’t see. I really only
want to move the ones I absolutely need, because I’m moving from a
machine that I’ve had for nearly 5 years, so a lot of cruft has
J a n u a r y 7 , 2 0 2 0 1 C o m m e n t
Search …
Flush MacOS DNS Cache
Copying dot files from the shell
This Is Unsafe
Safari blocking new window
opened from clicking button in
web application
Yesterday
Tweets by EricAsberry
Search
R e c e n t P o s t s
accumulated.
I have to return the old machine soon though. So the first thing I did was
use Carbon Copy Cloner to back up the entire image to a USB drive.
Now, I don’t want to carry that USB drive around everywhere. Once I
get the code repositories, etc copied I don’t want to be tethered to it.
But I want to hang on to all those dot files and directories in case I miss
something and need them.
So what I’ve done in the past is a bunch of ls -la commands, and pick
out the ones I know I need, manually copying them one by one. Found
myself about to do the same thing again, even though there are some I
know for sure I don’t need, and while I could just delete those and copy
everything, I still want to keep them on the backup because I’m
paranoid.
Copying dot files from the ter