macosunixfilesystemsfindernautilus

What directories does Linux have that macOS doesn't?


I'm a Python programmer that is trying to make a system of sorts that creates save data for a game I'm making, and I want it to be in different places in something like Ubuntu than I do macOS. As I don't have a macOS, and it's impossible to just up and get an ISO to get a macOS VM, I can't look through the files and folders and see what it has (or doesn't) that Linux does or doesn't.

I've tried looking all over to the point of attempting to get a hold of an ISO to build a VM in VirtualBox, but haven't been successful at all.

What files or folders does macOS have that Linux does, or vice versa?


Solution

  • To complete the (excellent) answer from @Michael, here is the listing of the home and root directory after a fresh install on the latest stable release of MacOS System (10.14.2)

    MacBook-Pro:~ max$ ls -al /
    total 37
    drwxr-xr-x  26 root  wheel   832 Jan  6 19:00 .
    drwxr-xr-x  26 root  wheel   832 Jan  6 19:00 ..
    -rw-rw-r--   1 root  admin  8196 Jan 13 07:11 .DS_Store
    drwx------   5 root  admin   160 Jan  6 11:47 .Spotlight-V100
    d-wx-wx-wt   2 root  wheel    64 Jan 14 06:39 .Trashes
    ----------   1 root  admin     0 Aug 18 06:53 .file
    drwx------  11 root  admin   352 Jan 14 06:39 .fseventsd
    drwxr-xr-x   2 root  wheel    64 Aug 18 06:53 .vol
    drwxrwxr-x+ 39 root  admin  1248 Nov 30 12:49 Applications
    drwxr-xr-x+ 60 root  wheel  1920 Nov 30 12:50 Library
    drwxr-xr-x   2 root  wheel    64 Aug 18 06:53 Network
    drwxr-xr-x@  5 root  wheel   160 Nov 30 12:46 System
    drwxr-xr-x   5 root  admin   160 Jan  6 18:59 Users
    drwxr-xr-x+  4 root  wheel   128 Jan 14 06:39 Volumes
    drwxr-xr-x@ 37 root  wheel  1184 Nov 30 12:55 bin
    drwxrwxr-t   2 root  admin    64 Aug 18 06:53 cores
    dr-xr-xr-x   3 root  wheel  4301 Jan 14 06:39 dev
    lrwxr-xr-x@  1 root  wheel    11 Jan  6 18:49 etc -> private/etc
    dr-xr-xr-x   2 root  wheel     1 Jan 14 06:40 home
    -rw-r--r--   1 root  wheel   313 Aug 18 10:03 installer.failurerequests
    dr-xr-xr-x   2 root  wheel     1 Jan 14 06:40 net
    drwxr-xr-x   6 root  wheel   192 Nov 30 12:50 private
    drwxr-xr-x@ 64 root  wheel  2048 Jan  6 18:49 sbin
    lrwxr-xr-x@  1 root  wheel    11 Jan  6 18:49 tmp -> private/tmp
    drwxr-xr-x@  9 root  wheel   288 Nov 30 12:38 usr
    lrwxr-xr-x@  1 root  wheel    11 Jan  6 18:49 var -> private/var
    

    And the home dir:

    MacBook-Pro:~ max$ ls -al ~
    total 16
    drwxr-xr-x+ 15 max    staff   480 Jan 14 06:43 .
    drwxr-xr-x   5 root  admin   160 Jan  6 18:59 ..
    -r--------   1 max    staff     7 Jan  6 18:59 .CFUserTextEncoding
    drwx------   2 max    staff    64 Jan 14 06:40 .Trash
    -rw-------   1 max    staff     0 Jan 13 07:11 .bash_history
    drwx------  10 max    staff   320 Jan 14 06:40 .bash_sessions
    -rw-------   1 max    staff   908 Jan 14 06:43 .viminfo
    drwx------+  3 max    staff    96 Jan  6 18:59 Desktop
    drwx------+  3 max    staff    96 Jan  6 18:59 Documents
    drwx------+  3 max    staff    96 Jan  6 18:59 Downloads
    drwx------@ 51 max    staff  1632 Jan 13 07:11 Library
    drwx------+  3 max    staff    96 Jan  6 18:59 Movies
    drwx------+  3 max    staff    96 Jan  6 18:59 Music
    drwx------+  3 max    staff    96 Jan  6 18:59 Pictures
    drwxr-xr-x+  4 max    staff   128 Jan  6 18:59 Public