What is the kernel of Mac Os - macos

Linux is the kernel of Ubuntu like wise what is the kernel of Mac Os Which are using in apple laptops? are there any thing like that?

Run uname -a from the terminal to see your OS and machine details

Related

Linux Terminal on Mac

Is there any way to get the linux terminal on Mac OS X? Without using any tool like Homebrew, can the same commands be executed effectively in Mac OS X also?

Mac OS Snow Leoperd

I want to test my cocoa application on mac os 10.6 (Snow Leoprrd) . But there are 10.7.5 is installed on my system . How can we install mac os 10.6 on my system , i have downloaded .dmg file of mac os 10.6 , I have use VMWare but there is no luck error occures that "This os is not mac os x server'. Is there any way to install this os virtually or directly on any system of mac os .
Thanks
If you have an external hard drive you can install the OS to that drive and boot up directly from there to test out your software. This works great and allows you to run the OS in a full native environment instead of using a VM.
Alternatively you could still go the VM route, but keep in mind that it might be trial and error. This article has a step-by-step guide to install Snow Leopard with VMWare:
http://macs.about.com/od/windowsonyourmac/ss/Virtualization-Of-Leopard-And-Snow-Leopard-Using-Vmware-Fusion.htm

Invoke Mac Kernel Panic?

So i am lookin for some source code to crash the mac kernel. I found crashme for debain linux but that does not work for the mac kernel. So i was wondering if anyone knows where i can find a command-line utility or some source code to invoke the mac kernel panic? This would be a huge help, thanks.
Apple has a tech note about how to do this.
The short way to do it is with this command, sudo dtrace -w -n "BEGIN{ panic();}", run from the terminal.
Update 2020: As noted by Wei Shen in the comments, you'll need to disable SIP to make this work in modern versons of macOS.
I recently updated crashme to work on Mac OS X Lion. You will need to download the source code from http://crashme.codeplex.com/ and compile it using Xcode command line tools. More details are in a answer to question 5085136. But note that crashme hasn't found any immediate kernel panics on the Mac yet. However, after running crashme on the native MacBook Pro, and running it in VirtualBox VM's on the same machine, one in an x86 PC-BSD and another in an x64 Centos, my Lion Kernel became unhappy enough that it threw a kernel panic a few minutes later as I was editing a file using the native Emacs. So crashme may have stumbled upon a kernel bug.
Go in terminal and type "killall kernel_task" it should force the computer into a panic without downloading any software. Just make sure you have everything saved before you try :D
although this requires a password it works every time
sudo halt

gedit text editor - mac os x

Does anybody know if you can setup remote connections in gedit(on mac os x snow leopard), so I don't have to keep ftp'ing up seperately.
I know it can be done on Ubuntu but can't figure out how to do it on a mac, if even possible.
An application independent solution for this would be sshfs on OSX through MacFUSE. sshfs is also available for Linux.
This sshfs with a GUI is also available via MacPorts.
There is also a possibility of automatic upload after each file save in Transmit and in Cyberduck (FTP programs).

Find out if install script runs on mac or linux machine

I'm trying to find out if my install scrip is running on a Mac or Linux device.
Can someone give me a hint?
Check out the uname program. On linux uname returns 'Linux', on Leopard it returns 'Darwin'

Resources