What does `sleep` with multiple arguments mean?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





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







up vote
0
down vote

favorite












I was wondering what differences are between



sleep 1 2 3


and



sleep 6


?



They seem the same. Thanks.







share|improve this question



















  • It is not recommended to use vondor specific feaures like this.
    – schily
    Jul 29 at 9:44
















up vote
0
down vote

favorite












I was wondering what differences are between



sleep 1 2 3


and



sleep 6


?



They seem the same. Thanks.







share|improve this question



















  • It is not recommended to use vondor specific feaures like this.
    – schily
    Jul 29 at 9:44












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I was wondering what differences are between



sleep 1 2 3


and



sleep 6


?



They seem the same. Thanks.







share|improve this question











I was wondering what differences are between



sleep 1 2 3


and



sleep 6


?



They seem the same. Thanks.









share|improve this question










share|improve this question




share|improve this question









asked Jul 29 at 1:26









Tim

22.5k61222398




22.5k61222398











  • It is not recommended to use vondor specific feaures like this.
    – schily
    Jul 29 at 9:44
















  • It is not recommended to use vondor specific feaures like this.
    – schily
    Jul 29 at 9:44















It is not recommended to use vondor specific feaures like this.
– schily
Jul 29 at 9:44




It is not recommended to use vondor specific feaures like this.
– schily
Jul 29 at 9:44










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










it's like this so that you can use different time units together



sleep 183965


same effect as



sleep 2d 3h 6m 5s


But this second one is easier for humans to understand as two days, three hours, six minutes, and five seconds.






share|improve this answer





















    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: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f459116%2fwhat-does-sleep-with-multiple-arguments-mean%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    it's like this so that you can use different time units together



    sleep 183965


    same effect as



    sleep 2d 3h 6m 5s


    But this second one is easier for humans to understand as two days, three hours, six minutes, and five seconds.






    share|improve this answer

























      up vote
      4
      down vote



      accepted










      it's like this so that you can use different time units together



      sleep 183965


      same effect as



      sleep 2d 3h 6m 5s


      But this second one is easier for humans to understand as two days, three hours, six minutes, and five seconds.






      share|improve this answer























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        it's like this so that you can use different time units together



        sleep 183965


        same effect as



        sleep 2d 3h 6m 5s


        But this second one is easier for humans to understand as two days, three hours, six minutes, and five seconds.






        share|improve this answer













        it's like this so that you can use different time units together



        sleep 183965


        same effect as



        sleep 2d 3h 6m 5s


        But this second one is easier for humans to understand as two days, three hours, six minutes, and five seconds.







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Jul 29 at 2:59









        Jasen

        1,925713




        1,925713






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f459116%2fwhat-does-sleep-with-multiple-arguments-mean%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay