After running npm run-script build the build folder is not visible in Mac Finder.
But the folder is there, as seen via Terminal window ls command.
How can I get the folder to display in finder?
The build folder might be hidden. You can try pressing cmd + shift + . in Finder to turn on showing hidden folders.
You might have opened Finder in the wrong folder. Try running open . in the terminal where you ran ls in. That will open Finder in the correct folder.
Related
I want to open a project folder using terminal.
when type the command .code in terminal it open up vscode but the folder is empty and there is no file.
obviously I can open it with right-clicking and open with code but is there a way i could open it through terminal?
I'm running Ubuntu as my operating system.
You have to use cd to enter in the folder that you want to open in vs code.
After that you just need to use code . and it will open the current folder in vs code.
I recently started using XAMPP on Mac and it installed the "lampp" folder under "Shared" and showing as an IP address in Finder. So I can access the files via Finder but I'm unable to cd into the folder via Terminal.
The Shared folder is simply not visible. I tried /Volumes to see all volumes, but "lampp" wasn't listed, as well mounting it somehow but that also didn't work. Any ideas? It's so odd that I see the folder in Finder but not in Terminal!
I had the same problem the route for htdocs is the following:
cd /Users/***your_user_name***/.bitnami/stackman/machines/xampp/volumes/root/htdocs
"username" only replaces that line by the name of your user
Example, for me it would be:
cd /Users/adanuri/.bitnami/stackman/machines/xampp/volumes/root/htdocs
I run in to the same problem and looked for hours for a solution. I now found this page:
https://www.apachefriends.org/blog/new_xampp_20170628.html
Since it is a VM you have to click on the Open Terminal button in the general tab of the stack manager. Then a new window opens and you can work on the terminal.
Screenshot of the stack manager with the open Terminal option
Screen Shot of the open Terminal window
If you just want the http://localhost version, go and reinstall the non VM XAMPP.
Make sure you download & install a version where the name doesn't include '-VM' here: https://www.apachefriends.org/download.html
This the path where you can find the full path of xampp htdocs folder.
/Users/my_name/.bitnami/stackman/machines/xampp/volumes/root/htdocs
In case you do not remember the path of the "htdocs" folder, you could type ls -a (ls stands for list) and see even hidden folders and files.
".bitnami" is one of those (inside the user folder) and then follow the path down to "htdocs".
All the other folders, already pointed out by #uriplata in the above answer, are visible simply using the command ls each time you change folder (with command "cd").
You have to mount the drive:
When the drive is mounted you can see it at: .bitnami/stackman/machines/volumes/root
If the drive is not mounted root will be empty. However, your data will still be there.
"Open Terminal" XAMPP management tool, see image in this link
You only must clic in "Open Terminal" at XAMPP management tool, as you can see in the attached image.
I cannot find the htdocs directory anywhere on XAMPP for Mac.
Many videos on YouTube show people just clicking a button that says "Go to application folder" but on my user interface, it reads: "Go to application" which just opens the localhost page at http://localhost.
Where can I locate the htdocs directory?
In the "volumes" tab, you have to mount it first. Then it appears on the desktop as if it were an external USB. All the data is inside it. :D
At least for macbook (os high sierra) go to terminal and type or copy and paste:
cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs
I have installed XAMPP version 7.3.11, After starting the Apache and other services, go to volumes tab on XAMPP, and click on mount button,
And then Click on explore button,
You will get Finder open up with this,
Open xampp application, then do the following:
go to: volumes,
click the [mount] button, and
finally click explore.
Go to Volumes Tab and click Mount
You can find it under Locations in the Sidebar. Click on it.
Open this folder: Lamp
You can find the htdocs folder inside Lamp, just like the below screenshot:
Note: I am using macOS Catalina.
you installed Xampp-VM (VirtualMachine), simply instead install one of the "normal" installations and everything runs fine.
Simple as ...
From the UI
Click Go->Go to Folder then /Applications/XAMPP/htdocs
From Terminal
cd /Applications/XAMPP/htdocs
Click volumes, then explore, and then that should open lampp which has htdocs in it.
for each easy and useful access you can add terminal command via editing your bash profile, here how:
open terminal -> type cd hit enter.
then type nano .bash_profile
then add this line
alias htdocs="cd ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs"
Now hit ctrl + o then hit enter, then hit ctrl + x
Now to refresh the terminal commands type the following command
source .bash_profile
Now you can use htdocs command each time you want to navigate htdocs folder.
There are two ways to find it:
One way is to open Finder>Applications>XAMPP(FolderNotTheInstaller)>htdocs
Another way is cmd+space and searches for manager-osx,
go to Welcome and click the Open Application Folder.
For me it was in
/Users/your username/.bitnami/stackman/machines/xampp
I am using Mac Os Mojave 10.14.5
From XAMPP Application window (manager-osx) click => Open Application Folder >> htdocs
Now you opened your target folder.
You can see process by image below
XAMPP Application window (manager-osx)
Open Application Folder
Application (xamppfiles) folder opened
Click on 'htdocs'
Your target folder 'htdocs' opened
Now begin your development
Make sure no other apache servers are running as it generates an error when you try to access it on the browser even with a different port. Go to Finder and below Device you will usually see the lampp icon. You can also open the htdocs from any of the ide or code editor by opening files or project once you locate the lampp icon. Make sure you mount the stack.
Simply click in "Go To Application Folder"
I used this line to locate and edit the permissions under xampp:
chmod 777 ~/.bitnami/stackman/machines/xampp/volumes/root/htdocs/folder
The next moment I installed MAMP, can find the docks in my local.
PFA screenshot.
Location:
/Applications/MAMP/htdocs/
You installed xampp Vn thats the problem.
Install normal xampp and everything will be fine.
link to nornal xampp: https://www.apachefriends.org/download.html
Download it from the link
install it
when it opens, Simply click in "Go To Application Folder".
/Applications/XAMPP/xamppfiles/htdocs
Go to finder in your Mac
In Location click the network address.
You will see the Lampp folder. To see this network address yo need to have started xampp application and mounted it.
Click Lampp folder
You will see the htdocs folder among the folders.
On opening htdocs folder you will find your php applications
From the Finder menu, click Go->Go to Folder. Type in /Applications/XAMPP
I'm following a app tutorial and it says:
"Next, create an empty file in the root of the Xcode app project directory and call the file Podfile. Open it with your favorite text editor and paste the following line in it:"
I'm confused exactly where this is? is it inside my Xcode program? or is it some folder inside my Xcode folder in finder?
Got it.
Open Terminal, navigate to the directory that has your project. Type it like this:
cd ~/Path/To/Folder/Containing/yourProject
I saved mine on my desktop so it was simple.
Then type: pod init
This creates the pod file.
Then type:
open -a Xcode Podfile
This will open the file so that you can edit it.
You should do it in Terminal.
Once in Terminal:
type cd (there is a space after cd)
drag your project to the Terminal window and press return. It points Terminal to your project.
type touch .Podfile, which will create an empty file in your project
type open -a TextEdit .Podfile, which will open the .Podfile file in TextEdit
paste your code in it and then save.
you can check that your Podfile has been created by typing ls -a in Terminal, which will show you all files and folders in your project
This should work.
I'm writing a small command line tool/app in Xcode 6. After a steep learning curve (that I'm still climbing) I've got my code working in main.m without errors. My question is: does Xcode build some executable code that I can run from the command line inside a Terminal? I've tried "Build" and "Run & Build" but I don't see where any executable code is created. I'm very new at Xcode and need some help. I'm running OS X 10.9.5 and Xcode 6.1.1 on a Mac Mini.
If viewing my code would be useful, let me know and I'll put it up.
Thanks for any assistance.
Kevin H.
It's hidden very well. In Xcode 6, when you build an app, there is a folder "Products" in the project navigator (left pane). The name of your project will be there too. Right click, and select "show in finder". It will show you an obscure folder hidden deep in your OS X Library where the executable is located.
To copy the executable to a more convenient location each time you compile go into the project settings and select the Build Phase.
Type in a absolute location such as: ~/Documents/dev/temp. (It does recognize ~ as the current users home directory)
Then Press the '+' Button Under the 'Copy Files' Section and Select Your File (Select Your executable under the Products Folder)
Deselect the 'Copy only when installing' button. Then build and it should be at that location.
To launch just open the terminal app and go to that location. The executable should run unless there are dynamic libraries it calls that are not in the lib path.
Hope this helps
The binary is in a folder under /Users/Username/Library.
Something like:
/Users/<Username>/Library//Developer/Xcode/DerivedData/.../Build/Products/Debug/<ProjectName>
You can easily find it with this command:
find /Users/<Username>/Library/ -name "<ProjectName>"
replace "Username" and "ProjectName" accordingly to reflect your environment.
"Find" works, but you could also view the build log output and look for "CreateBuildDirectory" and copy the path from there.
Example below:
In Xcode 14 the path is nested under the line that says "Create build directory $(DERIVED_DATA_DIR)", but you can see the full path by expanding the icon on the right of the output.