Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
How can I open a symlink without the terminal window popping up? Moreover, when I close the terminal window, the application quits as well. I tried using
nohup open symlink1
without any results. I have made a symlink to the iTunes executable (the one inside the contents package, NOT the iTunes.app) which I want to be able to open by double clicking the link, but without the terminal window popping up.
Why not just make an HFS+ alias? Command-option-drag the iTunes app anywhere you want on your machine, and it should work like you want it to.
I just figured out a solution:
Make an executable (intended as the link)
#!/bin/bash
cd /Applications/iTunes.app/Contents/MacOS
nohup ./iTunesX &
exit
and change under preferences in Terminal
When the shell quits: close if the shell exited cleanly
Change iTunesX and the cd path to any desired target.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I was going through a Ruby lesson and accidentally typed dc instead of cd into the terminal.
Now when I try to access the programs folder on my desktop using the following commands
cd;
cd Desktop;
cd programs
The path is not showing ups as Desktop/programs
Instead it is only showing up as programs in the terminal as a result I can't access the text wrangler file.
Did I mess something up when I accidentally typed dc? And if so I can I restore the default?
Just typing dc will run the dc (desk calculator) command. It's hard to tell what's going on, because we don't know what you did after running the dc command. If ls is showing you file listings, then you've already left dc and you're back in your shell. (dc doesn't show a prompt; the shell does.)
dc happens to accept q as a command to tell it to quit, but more generally if you've executed a command you didn't mean to, Ctrl-D will terminate a command that reads from standard input, Ctrl-C will generate an interrupt that will terminate any command that doesn't handle it, and Ctrl-Z will suspend the current program (run jobs to see a list of suspended programs).
Or, as a last resort, you can close your terminal and launch a new one.
It would be more helpful if you'd show us (copy-and-paste) the commands you're typing and their output.
The problem most likely is that your current directory isn't the one you want or expect it to be. pwd shows you what the current directory is; cd changes the current directory to what you specify (or to your home directory if you type cd without an argument).
(Incidentally, you don't need to type a semicolon at the end of each command. Semicolons can be used to separate multiple commands on one line.)
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I want to be able to double click a file and have it open in vim inside the terminal.
I can change the default application by right clicking and selecting "Open with another application" then "Use A custom command", and then using a shell script in a file I wrote... which is this
terminal -e vim
It works in that it opens vim in a terminal, but not the file i was selecting.
So how can I change the script so that it opens the files I select?
You could simply create a vim.desktop file.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm brand new to using Mac Terminal and I can't seem to figure out what's going on when I try to navigate directories. I have experience in MS-DOS (from many many years ago...but I still get the basic idea) and it's not working the way I'd like it to.
I'm trying to navigate to any directory and it's not allowing me to. If I type:
cd/Applications
It's giving me the error:
-bash: cd/Applications: No such file or directory
I've tried to navigate to it from the default directory and I also tried to navigate to it after typing:
sudo -s
Which I read was how to get to the absolute root directory. I know this is impossibly basic but can someone point me in the right direction on what I'm doing wrong? Thanks!
You need a space between the command name, "cd", and each of its arguments, in this case directory name "/Applications". So:
cd /Applications
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm rather new to MacOS and I cannot find it easy to working with Terminal to get ffmpeg run properly as I have on Window.
I have got ffmpeg binary from http://ffmpegmac.net and I try running the executable in Terminal, it tells that the command not found ? The only way I can run it by now is using command : "open ffmpeg", but this way the Terminal open in another window and this is not what I'm expecting.
Is there any ways to call ffmpeg directly in Terminal (just like run in on Windows cmd) or I'm missing anything ?
Mac OS X (and Unix) is different to Windows. Calling open ffmpeg isn't guaranteed to open the binary in the directory, it's guaranteed to find the binary in your PATH variable (do echo $PATH to see that). Try open ./ffmpeg instead.
You might actually be best off installing it with Homebrew, that'll give you system wide access to it.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I installed the latest version (2.30.1) of Gedit for Windows. And whenever I open files from explorer with gedit, it won't open as tabs in the current instance, instead it opens a new window for each file, like a notepad. I do not like this behavior. Is there any way to configure gedit to open files in the same window as tabs?
Judging from this askubuntu.org post, this is not only an issue on windows. Making the suggested changes and building gedit for windows might yield some result.
This may not be the best answer, but you can try Notepad++ instead of Gedit for Windows. It has basically the same features (and I actually find Notepad++ better - a friend of mine uses Wine with Notepad++ on Ubuntu).
http://notepad-plus-plus.org/