How do I create a TCP listener with netcat and put it in the background?What are the differences between netcat-traditional and netcat-openbsd?Netcat not working (at least, not that I can tell)How do I send files with netcat using find?

How can I get a ride in the jump seat as a non-professional pilot?

Does being invisible grant advantage on stealth checks by RAW?

Permanent river of lava

Retracting Recommendation Letters

Propagator of a real scalar field does not give an unambiguous result

Why do cargo airlines frequently choose passenger aircraft rather than aircraft designed specifically for cargo?

Feeling of forcing oneself to do something

How to make Emacs "forget" code evaluated in scratch buffer?

What's the best way to keep cover of a pan slightly opened?

Prefix all commands in shell

How do electric hot water heaters explode and what can be done to prevent that from happening?

Does "dd" command without parameter or input/output redirection do anything?

hfill doesn't work between minipages

Would an Illegitimate child of a monarch have been recognized at the Russian court?

Why does std::atomic constructor behave different in C++14 and C++17

Intuitive explanation why some autonomous DEs go to infinity in finite time.

Should I still follow "programming to an interface not implementation" even if I think using concrete class members is the simpler solution?

Turning off Apple hardware checks on startup

Recommendation for a fixed-step ODE solver?

When to bemoan and when to moan

How does vampirism work in 5e?

What movie or fandom is this jewelry from?

Why impeach Trump now and not earlier?

What is the purpose of the rules in counterpoint composition?



How do I create a TCP listener with netcat and put it in the background?


What are the differences between netcat-traditional and netcat-openbsd?Netcat not working (at least, not that I can tell)How do I send files with netcat using find?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0


















I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.



How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.










share|improve this question

































    0


















    I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.



    How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.










    share|improve this question





























      0













      0









      0








      I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.



      How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.










      share|improve this question
















      I’m using nc -l to create a listener socket, but then it just.....listens.....and I can’t issue any further commands.



      How do I put it in the background so I can maintain the listener and keep issuing commands in the CLI? I'm using Ubuntu Server 18.04.







      netcat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 27 at 18:21









      zx485

      1,7285 gold badges15 silver badges18 bronze badges




      1,7285 gold badges15 silver badges18 bronze badges










      asked Sep 27 at 16:48









      GreatWhiteSlarkGreatWhiteSlark

      254 bronze badges




      254 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          1



















          Put and ampersand (&) at the end of the command.



          $ nc -l 8080 &


          It might be better to open another terminal window though, and keep your listener in the foreground.






          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/4.0/"u003ecc by-sa 4.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%2f1177117%2fhow-do-i-create-a-tcp-listener-with-netcat-and-put-it-in-the-background%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









            1



















            Put and ampersand (&) at the end of the command.



            $ nc -l 8080 &


            It might be better to open another terminal window though, and keep your listener in the foreground.






            share|improve this answer





























              1



















              Put and ampersand (&) at the end of the command.



              $ nc -l 8080 &


              It might be better to open another terminal window though, and keep your listener in the foreground.






              share|improve this answer



























                1















                1











                1









                Put and ampersand (&) at the end of the command.



                $ nc -l 8080 &


                It might be better to open another terminal window though, and keep your listener in the foreground.






                share|improve this answer














                Put and ampersand (&) at the end of the command.



                $ nc -l 8080 &


                It might be better to open another terminal window though, and keep your listener in the foreground.







                share|improve this answer













                share|improve this answer




                share|improve this answer










                answered Sep 27 at 16:54









                Ryan J. YoderRyan J. Yoder

                7584 silver badges14 bronze badges




                7584 silver badges14 bronze badges































                    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%2f1177117%2fhow-do-i-create-a-tcp-listener-with-netcat-and-put-it-in-the-background%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

                    Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

                    How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

                    Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü