python

Create a command-line in Ubuntu  #angularjs #reactjs

  • If you want to use a python script , you can follow the answer of @furas at comments.
  • I learnt stuff with that answer, but I wanted the answer in Python.
  • As I’m starting doing programming, I’d like that someone could help me to create this script in python.
  • xdg-open calls the default web browser in your system.

In Ubuntu, I’d like to create a command-line called pycharm_help which will open firefox or another browser with the website https://docs.python.org/2.7/py-modindex.html. I know for doing this, I need to create a script with #!/usr/bin at the beginning. As I’m starting doing programming, I’d like that someone could help me to create this script in python. Could anyone be able to tell me how to do it? And help me create this little program?

@ng_real_ninja: Create a command-line in Ubuntu #angularjs #reactjs

at the beginning. As I’m starting doing programming, I’d like that someone could help me to create this script in python. Could anyone be able to tell me how to do it? And help me create this little program?

Thanks in advance!

If you want to use a python script , you can follow the answer of @furas at comments. But you can do it even in pure command line / bash script like this:

xdg-open calls the default web browser in your system.

(mind the dot in the beginning).

You could also use links (terminal web browser) directly from terminal like

With links the web page will be displayed in terminal.

Much more simpler make an alias:

file .

python

You might also like More from author

Comments are closed, but trackbacks and pingbacks are open.