Do programs in /bin or /usr/bin should be invoked from a shell?












0















I started my Chrome and Firefox from search bar and find they were also opened from a terminal



user@host:~$ pstree -aps 5221 | head -10
systemd,1 splash
`-gdm3,1027
`-gdm-session-wor,2418
`-gdm-x-session,2529 --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
`-gnome-session-b,2545 --session=ubuntu
`-gnome-shell,2741
`-chrome,5221
|-cat,5227
|-cat,5228
|-chrome,5232


Chrome was invoked from a GUI utility called gnome-shell.



Does any installed software should be run from a form of terminal?



Additionally, I find the terminal I am working is not named tty but



user@host:~$ tty
/dev/pts/0


and can't communicate with tty2



 user@host:~$ echo "very strange long text" > /dev/tty2
user@host:~$ grep -r 'very strange long text' / 2>/dev/null


does not return valuable message, the text to tty2 lost.










share|improve this question





























    0















    I started my Chrome and Firefox from search bar and find they were also opened from a terminal



    user@host:~$ pstree -aps 5221 | head -10
    systemd,1 splash
    `-gdm3,1027
    `-gdm-session-wor,2418
    `-gdm-x-session,2529 --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
    `-gnome-session-b,2545 --session=ubuntu
    `-gnome-shell,2741
    `-chrome,5221
    |-cat,5227
    |-cat,5228
    |-chrome,5232


    Chrome was invoked from a GUI utility called gnome-shell.



    Does any installed software should be run from a form of terminal?



    Additionally, I find the terminal I am working is not named tty but



    user@host:~$ tty
    /dev/pts/0


    and can't communicate with tty2



     user@host:~$ echo "very strange long text" > /dev/tty2
    user@host:~$ grep -r 'very strange long text' / 2>/dev/null


    does not return valuable message, the text to tty2 lost.










    share|improve this question



























      0












      0








      0


      0






      I started my Chrome and Firefox from search bar and find they were also opened from a terminal



      user@host:~$ pstree -aps 5221 | head -10
      systemd,1 splash
      `-gdm3,1027
      `-gdm-session-wor,2418
      `-gdm-x-session,2529 --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
      `-gnome-session-b,2545 --session=ubuntu
      `-gnome-shell,2741
      `-chrome,5221
      |-cat,5227
      |-cat,5228
      |-chrome,5232


      Chrome was invoked from a GUI utility called gnome-shell.



      Does any installed software should be run from a form of terminal?



      Additionally, I find the terminal I am working is not named tty but



      user@host:~$ tty
      /dev/pts/0


      and can't communicate with tty2



       user@host:~$ echo "very strange long text" > /dev/tty2
      user@host:~$ grep -r 'very strange long text' / 2>/dev/null


      does not return valuable message, the text to tty2 lost.










      share|improve this question
















      I started my Chrome and Firefox from search bar and find they were also opened from a terminal



      user@host:~$ pstree -aps 5221 | head -10
      systemd,1 splash
      `-gdm3,1027
      `-gdm-session-wor,2418
      `-gdm-x-session,2529 --run-script env GNOME_SHELL_SESSION_MODE=ubuntu /usr/bin/gnome-session --session=ubuntu
      `-gnome-session-b,2545 --session=ubuntu
      `-gnome-shell,2741
      `-chrome,5221
      |-cat,5227
      |-cat,5228
      |-chrome,5232


      Chrome was invoked from a GUI utility called gnome-shell.



      Does any installed software should be run from a form of terminal?



      Additionally, I find the terminal I am working is not named tty but



      user@host:~$ tty
      /dev/pts/0


      and can't communicate with tty2



       user@host:~$ echo "very strange long text" > /dev/tty2
      user@host:~$ grep -r 'very strange long text' / 2>/dev/null


      does not return valuable message, the text to tty2 lost.







      command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 4 mins ago







      Alice

















      asked 3 hours ago









      AliceAlice

      15610




      15610






















          0






          active

          oldest

          votes











          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%2f1111032%2fdo-programs-in-bin-or-usr-bin-should-be-invoked-from-a-shell%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1111032%2fdo-programs-in-bin-or-usr-bin-should-be-invoked-from-a-shell%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

          GameSpot

          connect to host localhost port 22: Connection refused

          Getting a Wifi WPA2 wifi connection