How do I start gedit in terminal?











up vote
0
down vote

favorite












I did a search for how to start gedit from the terminal. Answers were frustrating to say the least. Finally I happened on the idea of opening gedit with the system monitor on and look for new apps. Voilà. There was xed.



Here is the nearest solution: but it did not meet requirements.
https://help.ubuntu.com/community/gedit



Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.










share|improve this question
























  • Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
    – J. Starnes
    Dec 12 '17 at 4:26






  • 1




    Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
    – Magelican
    Dec 12 '17 at 4:31






  • 4




    Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
    – J. Starnes
    Dec 12 '17 at 5:20










  • Also include the output of lsb_release -a to get the best answer for your distro and version.
    – J. Starnes
    Dec 12 '17 at 5:30










  • If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
    – sudodus
    Dec 12 '17 at 7:23















up vote
0
down vote

favorite












I did a search for how to start gedit from the terminal. Answers were frustrating to say the least. Finally I happened on the idea of opening gedit with the system monitor on and look for new apps. Voilà. There was xed.



Here is the nearest solution: but it did not meet requirements.
https://help.ubuntu.com/community/gedit



Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.










share|improve this question
























  • Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
    – J. Starnes
    Dec 12 '17 at 4:26






  • 1




    Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
    – Magelican
    Dec 12 '17 at 4:31






  • 4




    Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
    – J. Starnes
    Dec 12 '17 at 5:20










  • Also include the output of lsb_release -a to get the best answer for your distro and version.
    – J. Starnes
    Dec 12 '17 at 5:30










  • If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
    – sudodus
    Dec 12 '17 at 7:23













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I did a search for how to start gedit from the terminal. Answers were frustrating to say the least. Finally I happened on the idea of opening gedit with the system monitor on and look for new apps. Voilà. There was xed.



Here is the nearest solution: but it did not meet requirements.
https://help.ubuntu.com/community/gedit



Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.










share|improve this question















I did a search for how to start gedit from the terminal. Answers were frustrating to say the least. Finally I happened on the idea of opening gedit with the system monitor on and look for new apps. Voilà. There was xed.



Here is the nearest solution: but it did not meet requirements.
https://help.ubuntu.com/community/gedit



Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.







command-line shortcut-keys gedit






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 12 '17 at 5:07









karel

56.4k11124142




56.4k11124142










asked Dec 12 '17 at 4:03









Magelican

112




112












  • Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
    – J. Starnes
    Dec 12 '17 at 4:26






  • 1




    Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
    – Magelican
    Dec 12 '17 at 4:31






  • 4




    Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
    – J. Starnes
    Dec 12 '17 at 5:20










  • Also include the output of lsb_release -a to get the best answer for your distro and version.
    – J. Starnes
    Dec 12 '17 at 5:30










  • If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
    – sudodus
    Dec 12 '17 at 7:23


















  • Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
    – J. Starnes
    Dec 12 '17 at 4:26






  • 1




    Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
    – Magelican
    Dec 12 '17 at 4:31






  • 4




    Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
    – J. Starnes
    Dec 12 '17 at 5:20










  • Also include the output of lsb_release -a to get the best answer for your distro and version.
    – J. Starnes
    Dec 12 '17 at 5:30










  • If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
    – sudodus
    Dec 12 '17 at 7:23
















Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
– J. Starnes
Dec 12 '17 at 4:26




Are you in a terminal window or a TTY? If a window for a non root gedit @con is essentially correct. If in a TTY on a server without a gui things will be a bit more difficult.
– J. Starnes
Dec 12 '17 at 4:26




1




1




Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
– Magelican
Dec 12 '17 at 4:31




Just to clarify. I was looking for the line to allow me to create a keyboard shortcut.
– Magelican
Dec 12 '17 at 4:31




4




4




Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
– J. Starnes
Dec 12 '17 at 5:20




Then you should edit your question. Because we were silly and believed you wanted to "start gedit from the terminal" :)
– J. Starnes
Dec 12 '17 at 5:20












Also include the output of lsb_release -a to get the best answer for your distro and version.
– J. Starnes
Dec 12 '17 at 5:30




Also include the output of lsb_release -a to get the best answer for your distro and version.
– J. Starnes
Dec 12 '17 at 5:30












If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
– sudodus
Dec 12 '17 at 7:23




If you feel that the answers are not answering your question, you must modify your question, so that we understand what you really want. Please tell us what you want and answer our questions to make us understand. Otherwise we can only guess and not really help you.
– sudodus
Dec 12 '17 at 7:23










3 Answers
3






active

oldest

votes

















up vote
0
down vote













You're over thinking it.



To start gedit from the terminal, just type "gedit".



If you have any errors, print them here.






share|improve this answer





















  • I am now curious. Why did gedit not work? xed does seem odd.
    – Magelican
    Dec 12 '17 at 4:36






  • 1




    leave the error here when typing gedit on terminal
    – M.A.K. Ripon
    Dec 12 '17 at 4:37


















up vote
0
down vote













Gedit, as described in your link, is "Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system.". If you're not starting gedit under the control of a GUI environment, (like a Ctrl-Alt-F1 terminal or a ssh connection) gedit will NOT work.



Ask the system about editors with man -k editor (returns 71 results on my system, YMMV), and ask the packaging system about editors with apt-cache search editor (418 results, YMMV).



If you'd describe what you mean by "from the terminal" more precisely, we could help more. For example, if you're connected via ssh, and running under a local GUI, man ssh and the -X or -Y options would be suggested.



What are you trying to do? If it's remote and simple, there are awk, sed, ed, editor, ex, nano, red, sed, vi, vim, or even emacs available.






share|improve this answer




























    up vote
    0
    down vote













    In xubuntu 16.04 run xfce4-keyboard-settings. On the "Application Shortcut" tab click the "add" button. For the command paste /usr/share/applications/org.gnome.gedit.desktop, click "OK". In the next window press the key combo you prefer. Close the keyboard settings window.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "89"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f985440%2fhow-do-i-start-gedit-in-terminal%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote













      You're over thinking it.



      To start gedit from the terminal, just type "gedit".



      If you have any errors, print them here.






      share|improve this answer





















      • I am now curious. Why did gedit not work? xed does seem odd.
        – Magelican
        Dec 12 '17 at 4:36






      • 1




        leave the error here when typing gedit on terminal
        – M.A.K. Ripon
        Dec 12 '17 at 4:37















      up vote
      0
      down vote













      You're over thinking it.



      To start gedit from the terminal, just type "gedit".



      If you have any errors, print them here.






      share|improve this answer





















      • I am now curious. Why did gedit not work? xed does seem odd.
        – Magelican
        Dec 12 '17 at 4:36






      • 1




        leave the error here when typing gedit on terminal
        – M.A.K. Ripon
        Dec 12 '17 at 4:37













      up vote
      0
      down vote










      up vote
      0
      down vote









      You're over thinking it.



      To start gedit from the terminal, just type "gedit".



      If you have any errors, print them here.






      share|improve this answer












      You're over thinking it.



      To start gedit from the terminal, just type "gedit".



      If you have any errors, print them here.







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Dec 12 '17 at 4:22









      con

      1085




      1085












      • I am now curious. Why did gedit not work? xed does seem odd.
        – Magelican
        Dec 12 '17 at 4:36






      • 1




        leave the error here when typing gedit on terminal
        – M.A.K. Ripon
        Dec 12 '17 at 4:37


















      • I am now curious. Why did gedit not work? xed does seem odd.
        – Magelican
        Dec 12 '17 at 4:36






      • 1




        leave the error here when typing gedit on terminal
        – M.A.K. Ripon
        Dec 12 '17 at 4:37
















      I am now curious. Why did gedit not work? xed does seem odd.
      – Magelican
      Dec 12 '17 at 4:36




      I am now curious. Why did gedit not work? xed does seem odd.
      – Magelican
      Dec 12 '17 at 4:36




      1




      1




      leave the error here when typing gedit on terminal
      – M.A.K. Ripon
      Dec 12 '17 at 4:37




      leave the error here when typing gedit on terminal
      – M.A.K. Ripon
      Dec 12 '17 at 4:37












      up vote
      0
      down vote













      Gedit, as described in your link, is "Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system.". If you're not starting gedit under the control of a GUI environment, (like a Ctrl-Alt-F1 terminal or a ssh connection) gedit will NOT work.



      Ask the system about editors with man -k editor (returns 71 results on my system, YMMV), and ask the packaging system about editors with apt-cache search editor (418 results, YMMV).



      If you'd describe what you mean by "from the terminal" more precisely, we could help more. For example, if you're connected via ssh, and running under a local GUI, man ssh and the -X or -Y options would be suggested.



      What are you trying to do? If it's remote and simple, there are awk, sed, ed, editor, ex, nano, red, sed, vi, vim, or even emacs available.






      share|improve this answer

























        up vote
        0
        down vote













        Gedit, as described in your link, is "Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system.". If you're not starting gedit under the control of a GUI environment, (like a Ctrl-Alt-F1 terminal or a ssh connection) gedit will NOT work.



        Ask the system about editors with man -k editor (returns 71 results on my system, YMMV), and ask the packaging system about editors with apt-cache search editor (418 results, YMMV).



        If you'd describe what you mean by "from the terminal" more precisely, we could help more. For example, if you're connected via ssh, and running under a local GUI, man ssh and the -X or -Y options would be suggested.



        What are you trying to do? If it's remote and simple, there are awk, sed, ed, editor, ex, nano, red, sed, vi, vim, or even emacs available.






        share|improve this answer























          up vote
          0
          down vote










          up vote
          0
          down vote









          Gedit, as described in your link, is "Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system.". If you're not starting gedit under the control of a GUI environment, (like a Ctrl-Alt-F1 terminal or a ssh connection) gedit will NOT work.



          Ask the system about editors with man -k editor (returns 71 results on my system, YMMV), and ask the packaging system about editors with apt-cache search editor (418 results, YMMV).



          If you'd describe what you mean by "from the terminal" more precisely, we could help more. For example, if you're connected via ssh, and running under a local GUI, man ssh and the -X or -Y options would be suggested.



          What are you trying to do? If it's remote and simple, there are awk, sed, ed, editor, ex, nano, red, sed, vi, vim, or even emacs available.






          share|improve this answer












          Gedit, as described in your link, is "Text Editor (gedit) is the default GUI text editor in the Ubuntu operating system.". If you're not starting gedit under the control of a GUI environment, (like a Ctrl-Alt-F1 terminal or a ssh connection) gedit will NOT work.



          Ask the system about editors with man -k editor (returns 71 results on my system, YMMV), and ask the packaging system about editors with apt-cache search editor (418 results, YMMV).



          If you'd describe what you mean by "from the terminal" more precisely, we could help more. For example, if you're connected via ssh, and running under a local GUI, man ssh and the -X or -Y options would be suggested.



          What are you trying to do? If it's remote and simple, there are awk, sed, ed, editor, ex, nano, red, sed, vi, vim, or even emacs available.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 12 '17 at 4:28









          waltinator

          21.9k74169




          21.9k74169






















              up vote
              0
              down vote













              In xubuntu 16.04 run xfce4-keyboard-settings. On the "Application Shortcut" tab click the "add" button. For the command paste /usr/share/applications/org.gnome.gedit.desktop, click "OK". In the next window press the key combo you prefer. Close the keyboard settings window.






              share|improve this answer



























                up vote
                0
                down vote













                In xubuntu 16.04 run xfce4-keyboard-settings. On the "Application Shortcut" tab click the "add" button. For the command paste /usr/share/applications/org.gnome.gedit.desktop, click "OK". In the next window press the key combo you prefer. Close the keyboard settings window.






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  In xubuntu 16.04 run xfce4-keyboard-settings. On the "Application Shortcut" tab click the "add" button. For the command paste /usr/share/applications/org.gnome.gedit.desktop, click "OK". In the next window press the key combo you prefer. Close the keyboard settings window.






                  share|improve this answer














                  In xubuntu 16.04 run xfce4-keyboard-settings. On the "Application Shortcut" tab click the "add" button. For the command paste /usr/share/applications/org.gnome.gedit.desktop, click "OK". In the next window press the key combo you prefer. Close the keyboard settings window.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Dec 12 '17 at 5:44

























                  answered Dec 12 '17 at 5:37









                  J. Starnes

                  1,409416




                  1,409416






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f985440%2fhow-do-i-start-gedit-in-terminal%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      數位音樂下載

                      When can things happen in Etherscan, such as the picture below?

                      格利澤436b