Hallo newbee forum,
Is it possible to open an application from the command line which opens a file I want?
For example: I want to open "exercise1" with the application emacs.
[solved] How to open an application with file from bash
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
[solved] How to open an application with file from bash
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: How to open an application with file from bash
Why not? I'm assuming you launch emacs with the command "emacs" so probably the command "emacs exercise1" is worth a try. You would need to run that command from the folder in which the file exercise1 is located. Or you would instead give the relative or full path to the file exercise1 as the command's argument. Perhaps emacs needs to be told in a different way; you can usually find the command line options a program has by consulting its manpage. For emacs, the command "man emacs" should take you there. This website may be worth a read to get more comfortable on the command line: http://en.flossmanuals.net/command-line/index/
Re: How to open an application with file from bash
Yes it works.
I was forgotten to go to the directory where exercise1 residents.
I bookmarked the site about the command line.
My question is now solved.
thank you.
I was forgotten to go to the directory where exercise1 residents.
I bookmarked the site about the command line.
My question is now solved.
thank you.