trying to enter my obsidian icloud folder from terminal
i see folders in my icloud but not obsidian folder
in finder obsidian folder has small obsidian icon included
inside i have two folders for my two vaults
i see those folders and can access them in finder but not in terminal
What I’m trying to do
access obsidian folder from CLI
to use some js libraries on markdown files
Does it work if you right-click the Obsidian folder, and in Services select New Terminal at Folder?
You can also right-click the folder, press Option, and select Copy "Obsidian" as Pathname, then past it in Terminal (and in Obsidian to save for later).
When in Terminal and doing ls, it doesn’t show hidden folders, like the .obsidian folder, but it is there. To actually see it, you need to do ls -a. You can also just change into it (without seing it), using cd .obsidian when you’re standing in the vault folder.
When in Finder, you need to hit Shift + Cmd + . when you’re standing in the vault folder, to see and access the .obsidian folder.
(Not sure how to get to the ICloud folder in the first place, but when in the vault folder my suggestion should work)
What worked: @CawlinTeffid > Right click + cmd > services > new terminal at folder @egauthier > also the direct link from
What did not: @OGRobrain > was unable to see my obsidian folder with ls -al
i> Mac-Robert:com~apple~CloudDocs robert.matyszewski$ ls -al
total 56928
drwxr-xr-x 11 robert.matyszewski staff 352 Dec 14 14:14 .
drwxr-xr-x@ 114 robert.matyszewski staff 3648 Dec 22 19:33 …
-rw-r–r–@ 1 robert.matyszewski staff 14340 Dec 31 13:44 .DS_Store
drwxr-xr-x@ 38 robert.matyszewski staff 1216 Dec 31 13:38 .Trash
lrwxr-xr-x@ 1 robert.matyszewski staff 35 Nov 25 13:28 Documents → /Users/robert.matyszewski/Documents
drwxr-xr-x@ 4 robert.matyszewski staff 128 Jan 1 16:38 Downloads
-rw-r–r–@ 1 robert.matyszewski staff 29126884 Jul 6 2017 IMG_0009.MOV
drwxr-xr-x@ 5 robert.matyszewski staff 160 Jun 6 2022 Notes
drwxr-xr-x@ 11 robert.matyszewski staff 352 Dec 21 11:18 Zdrowie
drwxr-xr-x@ 3 robert.matyszewski staff 96 Nov 25 10:08 books
drwxr-xr-x@ 5 robert.matyszewski staff 160 Dec 31 13:44 ibooks
iMac-Robert:com~apple~CloudDocs robert.matyszewski$ pwd
/Users/robert.matyszewski/Library/Mobile Documents/com~apple~CloudDocs
iMac-Robert:com~apple~CloudDocs robert.matyszewski$
My final goal is to use markdown-merge on my old daily notes to merge them. I am unable to run the library inside my obsidian icloud folder, but when i copied daily notes subfolder to my desktop it worked. On icloud i get error:
iMac-Robert:04-2022 robert.matyszewski$ merge-markdown -m /Users/robert.matyszewski/Library/Mobile Documents/iCloud~md~obsidian/Documents/Robert/02 journal/*2022/04-2022
\Error: ENOENT: no such file or directory, lstat ‘/Users/robert.matyszewski/Library/Mobile’