Full path name of bash? and base process of Linux?











up vote
0
down vote

favorite












I recently had the following questions:




  • What is the full path name of bash?

  • What is the base process of Linux?


I couldn't answer these.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I recently had the following questions:




    • What is the full path name of bash?

    • What is the base process of Linux?


    I couldn't answer these.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I recently had the following questions:




      • What is the full path name of bash?

      • What is the base process of Linux?


      I couldn't answer these.










      share|improve this question















      I recently had the following questions:




      • What is the full path name of bash?

      • What is the base process of Linux?


      I couldn't answer these.







      bash process path init






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 24 at 20:19









      Rui F Ribeiro

      38.3k1475126




      38.3k1475126










      asked Feb 7 '14 at 11:26









      user59840

      1




      1






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote













          The base process in linux is named init and has the PID 1
          If you are on Linux, you can install the command pstree to have a tree view of the process, or using the command ps -eF. See also Wikipedia: init



          bash is probably (depending on your distribution) in /bin/bash or /usr/bin/bash



          To identify the path of a command an easy thing to use is the command:



          type bash
          #you can also usee (but not recommanded)
          whereis bash
          command -v bash


          It will read your path (or try to guess) and gives you several path where you can find the file bash






          share|improve this answer



















          • 1




            Most probably not /usr/bin/bash but /bin/bash
            – grebneke
            Feb 7 '14 at 11:44










          • Yes you're both right... End of the week tired.. coffee... really sorry.
            – Kiwy
            Feb 7 '14 at 11:48










          • /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
            – l0b0
            Feb 7 '14 at 12:51












          • To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
            – brm
            Feb 7 '14 at 13:59










          • We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
            – slm
            Feb 7 '14 at 14:11











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f114019%2ffull-path-name-of-bash-and-base-process-of-linux%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote













          The base process in linux is named init and has the PID 1
          If you are on Linux, you can install the command pstree to have a tree view of the process, or using the command ps -eF. See also Wikipedia: init



          bash is probably (depending on your distribution) in /bin/bash or /usr/bin/bash



          To identify the path of a command an easy thing to use is the command:



          type bash
          #you can also usee (but not recommanded)
          whereis bash
          command -v bash


          It will read your path (or try to guess) and gives you several path where you can find the file bash






          share|improve this answer



















          • 1




            Most probably not /usr/bin/bash but /bin/bash
            – grebneke
            Feb 7 '14 at 11:44










          • Yes you're both right... End of the week tired.. coffee... really sorry.
            – Kiwy
            Feb 7 '14 at 11:48










          • /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
            – l0b0
            Feb 7 '14 at 12:51












          • To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
            – brm
            Feb 7 '14 at 13:59










          • We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
            – slm
            Feb 7 '14 at 14:11















          up vote
          3
          down vote













          The base process in linux is named init and has the PID 1
          If you are on Linux, you can install the command pstree to have a tree view of the process, or using the command ps -eF. See also Wikipedia: init



          bash is probably (depending on your distribution) in /bin/bash or /usr/bin/bash



          To identify the path of a command an easy thing to use is the command:



          type bash
          #you can also usee (but not recommanded)
          whereis bash
          command -v bash


          It will read your path (or try to guess) and gives you several path where you can find the file bash






          share|improve this answer



















          • 1




            Most probably not /usr/bin/bash but /bin/bash
            – grebneke
            Feb 7 '14 at 11:44










          • Yes you're both right... End of the week tired.. coffee... really sorry.
            – Kiwy
            Feb 7 '14 at 11:48










          • /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
            – l0b0
            Feb 7 '14 at 12:51












          • To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
            – brm
            Feb 7 '14 at 13:59










          • We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
            – slm
            Feb 7 '14 at 14:11













          up vote
          3
          down vote










          up vote
          3
          down vote









          The base process in linux is named init and has the PID 1
          If you are on Linux, you can install the command pstree to have a tree view of the process, or using the command ps -eF. See also Wikipedia: init



          bash is probably (depending on your distribution) in /bin/bash or /usr/bin/bash



          To identify the path of a command an easy thing to use is the command:



          type bash
          #you can also usee (but not recommanded)
          whereis bash
          command -v bash


          It will read your path (or try to guess) and gives you several path where you can find the file bash






          share|improve this answer














          The base process in linux is named init and has the PID 1
          If you are on Linux, you can install the command pstree to have a tree view of the process, or using the command ps -eF. See also Wikipedia: init



          bash is probably (depending on your distribution) in /bin/bash or /usr/bin/bash



          To identify the path of a command an easy thing to use is the command:



          type bash
          #you can also usee (but not recommanded)
          whereis bash
          command -v bash


          It will read your path (or try to guess) and gives you several path where you can find the file bash







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Feb 7 '14 at 14:20

























          answered Feb 7 '14 at 11:41









          Kiwy

          5,85653555




          5,85653555








          • 1




            Most probably not /usr/bin/bash but /bin/bash
            – grebneke
            Feb 7 '14 at 11:44










          • Yes you're both right... End of the week tired.. coffee... really sorry.
            – Kiwy
            Feb 7 '14 at 11:48










          • /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
            – l0b0
            Feb 7 '14 at 12:51












          • To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
            – brm
            Feb 7 '14 at 13:59










          • We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
            – slm
            Feb 7 '14 at 14:11














          • 1




            Most probably not /usr/bin/bash but /bin/bash
            – grebneke
            Feb 7 '14 at 11:44










          • Yes you're both right... End of the week tired.. coffee... really sorry.
            – Kiwy
            Feb 7 '14 at 11:48










          • /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
            – l0b0
            Feb 7 '14 at 12:51












          • To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
            – brm
            Feb 7 '14 at 13:59










          • We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
            – slm
            Feb 7 '14 at 14:11








          1




          1




          Most probably not /usr/bin/bash but /bin/bash
          – grebneke
          Feb 7 '14 at 11:44




          Most probably not /usr/bin/bash but /bin/bash
          – grebneke
          Feb 7 '14 at 11:44












          Yes you're both right... End of the week tired.. coffee... really sorry.
          – Kiwy
          Feb 7 '14 at 11:48




          Yes you're both right... End of the week tired.. coffee... really sorry.
          – Kiwy
          Feb 7 '14 at 11:48












          /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
          – l0b0
          Feb 7 '14 at 12:51






          /usr/bin/bash is not that uncommon (Arch Linux for example), but yes, it depends on the distribution.
          – l0b0
          Feb 7 '14 at 12:51














          To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
          – brm
          Feb 7 '14 at 13:59




          To find out the full path you can also run 'which bash'. That should show the path that will be executed when you run just 'bash'
          – brm
          Feb 7 '14 at 13:59












          We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
          – slm
          Feb 7 '14 at 14:11




          We shouldn't be recommending the use of which or whereis. If you're using Bash it should be type. unix.stackexchange.com/questions/85249/…
          – slm
          Feb 7 '14 at 14:11


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f114019%2ffull-path-name-of-bash-and-base-process-of-linux%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

          サソリ

          広島県道265号伴広島線

          Accessing regular linux commands in Huawei's Dopra Linux