Show All Hidden Files on Mac OS X & Find Large Files

Just a short ‘note to self’, because I can never remember how to do this or this command:

I recently had an issue where the available disk space on my Mac-mini ran way too low, and I couldn’t for the life of me find out what was consuming all that space, I shunted all VMs to an external disk but this didn’t really help me that much, so I went on a mission to find these large files and deal with them! 🙂

When using something like the excellent Resilio Sync Pro you may find, like I did, your system disk has filled up with files you don’t seem to be able to find.

In the case of Resilio, it creates an archive directory providing un-delete options, while useful, it meant I had nearly 200GB of wasted space on my already limited system disk that was consumed with files I had deleted.

Unfortunately, these files were hidden so I had no idea they existed.

In order to see hidden system files you will need to run the following command:

defaults write com.apple.finder AppleShowAllFiles YES

You will now probably need to also ‘relaunch’ the Finder session, you can do this by holding down the ALT key and right clicking the mouse, you will now see the ‘relaunch’ option in the menu, this kind of resets the Finder view.

Screenshot 2017-05-26 09.03.26

Once run, you will see all those hidden system files, meaning damage can be done, so I urge caution, and in fact, I recommend you turn it off again when done, just to be on the safe side.

You can do this by running the same command from a terminal window, replacing the ‘YES’ with a ‘NO’ at the end:

defaults write com.apple.finder AppleShowAllFiles NO

Now to find those pesky large files that are filling up your prescious disk space:

  1. Click the Finder icon in the Dock.
  2. Choose Go > Home or press Shift-Command (⌘)–H.
  3. Choose File > Find or press Command (⌘)–F.
  4. Open the Kind pop-up menu, then choose Other.
  5. Under “Select a search attribute” select the checkbox for File Size. Make sure no other checkboxes are selected, then click OK.
  6. Change the “equals” pop-up menu to “is greater than,” then change the “KB” pop-up menu to “MB.”
  7. Enter a minimum file size. 100 MB is a good starting point. You can change the value to see more or fewer results.

Searching begins as soon as you type a file size. It may take a moment for all the search results to appear.

The above bullets came from the apple support website and part of a larger article describing how to increase your disk size > OS X Mavericks: Increase disk space

Top 20 vRealize Automation articles for July 2016

Top 20 vRealize Automation articles for July 2016

Top 20 vRealize Automation articles for July 2016

Here is our Top 20 vRealize Operations Manager articles list for July 2016. This list is ranked by the number of times a VMware Support Request was resolved by following the steps in a published Knowledge Base article. Configure a certificate for use with vRealize Operations Manager After cancelling the selected alerts in VMware vRealize […] The post Top 20 vRealize Automation articles for July 2016 appeared first on Support Insider.


VMware Social Media Advocacy

Top 20 VSAN articles for July 2016

Top 20 VSAN articles for July 2016

Top 20 VSAN articles for July 2016

Here is our Top 20 vSAN articles list for July 2016. This list is ranked by the number of times a VMware Support Request was resolved by following the steps in a published Knowledge Base article. Performance Degradation of Hybrid disk groups on VSAN 6.2 Deployments vSphere 5.5 Virtual SAN requirements Requirements and considerations for […] The post Top 20 vSAN articles for July 2016 appeared first on Support Insider.


VMware Social Media Advocacy

My top 10 VMworld Vegas Session picks

“My top 10 VMworld Vegas Session picks” via VMtoCloud.com

My top 10 VMworld Vegas Session picks

This year VMworld is back in Vegas and it is bigger than ever. While it is going to be a blast to be in Vegas there is a lot more to get excited about. As an employee I can’t register for session so that you all have first dibs. I can still attend if there is room. In no particular order here are my top 10 session that I want to attend. Notice they are not my own sessions.


VMware Social Media Advocacy

A VMworld party so epic you need to sign a…

A VMworld party so epic you need to sign a waiver just to attend! — vSphere-land

A VMworld party so epic you need to sign a…

If you hadn’t heard by now the VMworld 2016 party is being held at the Las Vegas Motor Speedway. This isn’t the first time it was held there, back in 2008 which was my first VMworld the party was also held at that location. I remember that one fondly as I had a great time … Continue reading »


VMware Social Media Advocacy

How to correctly test the performance of…

How to correctly test the performance of Virtual SAN 6.2 deduplication feature

How to correctly test the performance of…

In VMware Virtual SAN 6.2, we introduced several features highly requested by customers, such as deduplication and compression. An overview of this feature can be found in the blog: Virtual SAN 6.2 – Deduplication And Compression Deep Dive.


VMware Social Media Advocacy

Emulate the ‘insert’ key in ‘Terminal’ on a Mac

This will be one of those ‘Duh, obviously’ type posts for most Mac native users, but for myself, being an ex-Windows admin for years before having anything to do with macs, I have always tended to use a Windows admin VM for when I needed things like an ssh session using ‘putty’, but more and more lately I am trying to streamline, so have been running with Terminal in Mac OS X more and more

However this presents me with some challenges sometime, like where’s that damn insert key? I have seen similar posts stating things like ‘ctrl+right arrow key’ will do it, but that doesn’t work for me as I have loads of separate desktops and this just jumps me between them.

So I found the following for remapping key functionality in terminal

    • In Terminal.app’s Preferences, go to ‘Settings’ and select ‘Keyboard’

<EDIT> The ‘Setting‘ tab under ‘Terminal Preferences’ has now changed to ‘Profiles‘ – not sure which release this happened in but I am running Mac OS X Mojave 10.14.3
Screenshot 2019-04-06 20.00.25

    •  Find the Key you want to replace, I used the ‘F5’ key as on my external Apple Keyboard this key has no other secondary functions already, and change the default Action value to:
  • \033[2~

You can obviously use any key you like and I’m sure there’s loads of other ways to do this, but I have found this works well for me

Annoying problem with the vSphere Web Client and the missing ‘Recent Tasks’ pane

So, I was just doing some basic admin tasks using the vSphere Web Client, and I accidentally closed the recent tasks pane at the bottom,

RecentTasksPane

that really threw me, I have never made that mistake before and it took me ages to work out how to get it back.
So if you are as dumb as me, or at least made the same mistake as I did, hopefully, this will help you out:

All you need to do is to reset the web client back to factory defaults, by clicking on the little arrow next to your login name, up in the top left of the page and select “Reset to Factory Defaults” you will have to log in again, and if you had moved the other objects around they will be reset too, but at least you get the recent tasks back

ResetWbeClientToDefaults

 

<Edit>
Thanks to Daniele Murrau who also informed me that if you want to just add the ‘Recent Tasks’ or ‘Alarms’ pane back, without performing a full ‘Reset To Factory Defaults’ you can do so by clicking on the ‘Layout Settings’ option and putting a tick back in the radio button box, shown below:

Screen Shot 2016-08-04 at 10.30.27.png

Useful if you have made other layout changes that you want to preserve as well as adding the missing pane(s) back