Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › OSx86 Core & 10.X › Hide the mach_kernel
24,261 reads · 2008-03-24 – 2009-11-18
Guide 10.X Core Voodoo / XNU Kernel

Hide the mach_kernel

For those who have updated to a new kernel but have noticed that it is still visible from within the Finder, follow this small guide. Open the terminal and type: Now press "ctrl+x" then "y" to save. You'll need to restart the Finder to…

Primary Author
@R0GUE Published 2008-03-24
Collection
OSx86 Core & 10.X
Archival Footprint
24,261 historical reads · 16 curated field notes (from 22 dispatches) · 2008-03-24 – 2009-11-18
Credited Voices (11)
@nfoav8or (6)@Ianxxx (4)@pαuℓzurrr. (2)@cmdshft (2)@Imkantus (2)@R0GUE@CyCLoBoT@bhast2@Firewalk@naquaada@OG-Phantom

For those who have updated to a new kernel but have noticed that it is still visible from within the Finder, follow this small guide.

Open the terminal and type:

cd /
pico .hidden
mach_kernel

Now press "ctrl+x" then "y" to save.

You'll need to restart the Finder to notice the effects. Either type in the Terminal:

killall Finder

or go to the Apple Menu>Force Quit>Finder>Relaunch.

The kernel should now be hidden.

Synthesized Community Field Notes

16 technical responses curated from 22 original dispatches

Field Note #1 @naquaada 2008-04-03

There are a lot of progs which can change the file attributes, I always use Path Finder for this.

Field Note #2 @nfoav8or 2008-12-06

Microsoft User Data Folder (made invisible)

I don't know if this will help someone out there so I'll post it as an add-on here...

I've been trying to get the "Microsoft User Data" folder to be hidden but still there so I get it out of my Documents folder in the Dock. (purely aesthetics for me)

To toggle the invisibility bit of a single file or folder you’ll need Apple's Xcode Tools software, specifically a Unix program called SetFile. It can be found in the /Developer/Tools directory.

Launch Terminal.

/Developer/Tools/SetFile -a V /Users/YourHomeDirectory/Documents/Microsoft\ User\ Data

Remember to change "YourHomeDirectory" to match your system and to not put a "/" at the end of the code as this will only set the contents of the folder to be invisible and not the folder itself.

After pressing Return/Enter, this immediately enables the invisibility bit although the file will not actually turn invisible until the Finder is relaunched... to make it invisible in the Dock you need to restart the dock as well. I use MainMenu (mac update.com/info.php/id/17111/mainmenu) for this as it allows me to do both very quickly via a few clicks.

To reverse directions with SetFile, you do almost the same thing with the exception it needs to be a lower case v instead of an upper case V. This disables the invisible bit.

This probably is old news but I never bothered to look into the issue until now.. I've always used the ".hidden" method for all my other needs.

Field Note #3 @Ianxxx 2008-12-17 ↳ Re: @nfoav8or
@nfoav8orI don't know if this will help someone out there so I'll post it as an add-on here... I've been trying to get the "Microsoft User Data" folder to be hidden but still there so I get it out of my Documents folder in the Dock. (purely aesthetics for me) To toggle the invisibility bit of a single file or folder you’ll need Apple's Xcode…

Wouldn't work unless I used /Developer/usr/bin/SetFile
otherwise great tip thanks

Field Note #4 @nfoav8or 2008-12-17 ↳ Re: @Ianxxx
@IanxxxWouldn't work unless I used /Developer/usr/bin/SetFile otherwise great tip thanks

weird... the method I posted above works on both my macbook and my hackintosh... the SetFile command's default install location is to where I posted. it depends on how you installed the Xcode Tools. where did you select as the install point.

Field Note #5 @cmdshft 2008-12-17

From my experience with SetFile, you don't need to type the full path, it works with just:

setfile -a V /path/here

But yeah, you do need to have Developer Tools installed.

Field Note #6 @pαuℓzurrr. 2008-12-17

I've used this program a couple times now, seems to do the job too

alto mac.com/hide_folders/

Field Note #7 @nfoav8or 2008-12-17 ↳ Re: @pαuℓzurrr.
@pαuℓzurrr.I've used this program a couple times now, seems to do the job too alto mac.com/hide_folders/ ...

I've tried this as well. Remember though that the problem I was trying to solve was simply hiding the "Microsoft User Data" folder found in the user's Documents folder. The Hide Folders app did "hide" it, but after opening any of the Microsoft Office apps again, it simply re-created another folder in the Documents folder. This is why I've strayed away from using this.

Field Note #8 @Ianxxx 2008-12-18 ↳ Re: @nfoav8or
@nfoav8orweird... the method I posted above works on both my macbook and my hackintosh... the SetFile command's default install location is to where I posted. it depends on how you installed the Xcode Tools. where did you select as the install point.

I installed to default, in /Developer/Tools are shortcuts/aliases the actual files are installed in /Developer/usr/bin

Field Note #9 @nfoav8or 2008-12-18

I stand corrected... but it should work regardless with the Terminal code posted by Hara Taiki. remember the differences with -v and -V (for everyone else)

Field Note #10 @Ianxxx 2008-12-18 ↳ Re: @Hara Taiki
@Hara TaikiFrom my experience with SetFile, you don't need to type the full path, it works with just: setfile -V /path/here But yeah, you do need to have Developer Tools installed.

Strange any of the tools in Developer/Tools don't work for me unless i specify path Developer/usr/bin?
they don't work if I just use setFile or /Developer/Tools/setFile

Field Note #11 @cmdshft 2008-12-19

Odd, after having a major crash with my system and reinnstalling everything, after installing the Developer Tools, setfile worked once, and no longer seems to be working.

Any reason?

Field Note #12 @Ianxxx 2008-12-20

Try like me to specify path /Developer/usr/bin/setFile

Field Note #13 @nfoav8or 2008-12-20

I don't understand it either way... both my hackintosh and macbook still work with setfile... both with "/Developer/Tools/setFile" and with just "setFile"

Field Note #14 @Imkantus 2009-11-17 ↳ Re: @pαuℓzurrr.
@pαuℓzurrr.I've used this program a couple times now, seems to do the job too alto mac.com/hide_folders/

Be aware of using this!

Using it on /mach_kernel & /boot made my system unbootable...

Field Note #15 @OG-Phantom 2009-11-18 ↳ Re: @Imkantus
@ImkantusBe aware of using this! Using it on /mach_kernel & /boot made my system unbootable...

Ack! A year old thread, but just to clarify (since it's been revived anyway);

setfile -a V Makes the file invisible
setfile -a v Makes the file visible

The case [upper or lower] of the V is important.

Field Note #16 @Imkantus 2009-11-18

I know that myself.

But I didn't want to install the Dev Tools to my netbook - 16GB ain't much enaugh to waste space - the .hidden doesn't work on SL, and I was to lacy to transfer files from my other hack, so I was looking into some non pay-software.
My only intention with that posting was to warn people about using this one…

Corroborated & Participated: @pαuℓzurrr. @CyCLoBoT @bhast2 @Firewalk @nfoav8or
Sources & Contributor Provenance (11 credited usernames · Thread #822)
UsernameDossier ContributionDispatchesActive Window
@nfoav8orCore Contributor62008-12-06 → 2008-12-20
@IanxxxCore Contributor42008-12-17 → 2008-12-20
@pαuℓzurrr.Contributor22008-03-24 → 2008-12-17
@cmdshftContributor22008-12-17 → 2008-12-19
@ImkantusContributor22009-11-17 → 2009-11-18
@R0GUEPrimary Author12008-03-24
@CyCLoBoTContributor12008-03-26
@bhast2Contributor12008-03-26
@FirewalkContributor12008-04-01
@naquaadaContributor12008-04-03
@OG-PhantomContributor12009-11-18