In a finder window press CMD + SHIFT + . to toggle show/hide hidden files.
With a single user on MacOS the login screen background should be a blurred version of the desktop background. However sometimes when picking a new desktop background the login background defaults to standard MacOS background. To resolve this do the following.
- Pick a different desktop background to the actual one you want to use.
- In the Finder, choose Go > Go To Folder.
- Paste the following and press return: /Library/Caches.
- Delete the file named com.apple.desktop.admin.png.
- In the Desktop & Screen Saver preference pane, select the desktop background you want.
- After a few seconds the com.apple.desktop.admin.png should be recreated using your new background image.
When creating a dynamic disk VirtualBox asks you to specify the maximum size. If the max dynamic disk size needs changing after its initial creation we cannot use the VirtualBox interface, instead we need the VBoxManage command line tool.
1. Shutdown the VM and quit VirtualBox
2. Open the Terminal app and use the following command to navigate to the VirtualBox app directory
3. Now in the proper directory, you’re ready to run the resize command with the following syntax:
VBoxManage modifyhd –resize [new size in MB] [/path/to/vdi]
VBoxManage modifyhd –resize 30000 ~/Documents/VM/Windows10.vdi
4. If desired, verify the change has taken place with the showhdinfo command:
5. Launch VirtualBox and boot renewly resized VM
Dynamic disks tend to be the preferred choice for virtual disk images as they only use the physic disk space they need. However while VirtualBox is a very good free virtual machine application, the dynamic disks are much better expanding than shrinking. While commercial tools such as VMWare and Parallels have a one click/automatic way to reclaim physical disk space, VirtualBox needs a little manual intervention.
The following steps will give you some physical disk space back, its a good idea to run these after a major service pack install or after removing a large application from your virtual machine. Steps 1-5 is recommend regardless of which VM application you are running as this frees space on the virtual machine.
1. Delete unwanted files
2. Run Windows Clean Up, use the advanced option to remove windows update files.
3. Empty Recycle Bin
5. Clean garbage bits and bytes using SDelete by Windows Sysinternals, after installation open cmd and type
sdelete.exe C: -z
6. Shutdown Windows VM and close VirtualBox
7. Open Terminal app and enter
8. Then enter
VBoxManage modifyhd –compact “[/path/to/vdi]”
Shut down your Mac, then turn it on and immediately hold down these four keys together:
Option, Command, P, and R.
Keep holding the keys for about 20 seconds, during which your Mac might appear to restart. (If you have a Mac that plays a startup sound when you turn it on, you can release the keys after the second startup sound.)
The following will display all hidden files and folders in Finder
- Open Terminal found in Finder > Applications > Utilities.
- In Terminal, paste the following: defaults write com.apple.finder AppleShowAllFiles YES.
- Press return.
- Hold the ‘Option/alt’ key, then right click on the Finder icon in the dock and click Relaunch.
To reverse, repeat the above but substitute YES for NO at the end of the Terminal command.
When leaving your Mac for a short time its a good idea to lock the machine.
To do this, first launch System Preferences and select Privacy and Security. Under the General tab select Require password immediately, close System Preferences. The following shortcuts will lock your machine.
Control+Shift+Eject is the keystroke for Macs with an Eject key, and for external keyboards.
Control+Shift+Power is the keystroke for Macs without the eject key, like the MacBook Air and MacBook Pro Retina.
The basic syntax for creating a symbolic link (or soft link) is as follows:
ln -s /path/to/original/ /path/to/link
For example, to create a symbolic link for the user Downloads folder which links it to a directory on a separate mounted drive, syntax may look like the following:
ln -s /Volumes/Storage/Downloads/ ~/Downloads/
That will link the active users ~/Downloads/ folder to a directory named “Downloads” on the mounted drive called “Storage”. If such a directory and drive existed, this would basically allow all files that would typically appear in the user downloads folder to go to the other mounted volume instead, essentially offloading the storage burden to that separate drive, while still preserving the appearance of a ~/Downloads/ folder for the user. As mentioned before, this behaves much like an alias.