Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

cool11

macrumors 68000
Original poster
Sep 3, 2006
1,779
220
I did this

sudo chflags hidden /mach_kernel

in mach_kernel file of mountain lion, typing it in terminal, in order to make it invisible for me. I did this to avoid accidentally delete it.

I do not know terminal commands, so, can somebody tell me how to undo it?
I want to make it visible again.
 

cool11

macrumors 68000
Original poster
Sep 3, 2006
1,779
220
Come on, I need this terminal command!
Anybody with such knowledge?
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
From the chflags man page :

Putting the letters ``no'' before or removing the letters ``no'' from a
keyword causes the flag to be cleared. For example:

nouchg clear the user immutable flag (owner or super-user only)
dump clear the nodump flag (owner or super-user only)

Make it visible again :

Code:
sudo chflags nohidden /mach_kernel
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.