cat shows nothing












6















My team is working on a CI environment.



A ko file, named x.ko, is always generated from the CI environment at a regular time everyday and its type is ELF 64-bit LSB relocatable.



Today, I found that the type of this ko file became data.



I'm trying to figure out the reason.



I try to cat this ko file but the output is nothing. Then, I try to cat -et x.ko, and it gives me lots of ^@^@^@^@^@^@^@^@^@^@^@^@^@^@...



Do you know what ^@^@^@^@^@^@^@^@^@ means?










share|improve this question


















  • 1





    ^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

    – jsotola
    14 hours ago








  • 1





    It is corrupted. Has it crashed?

    – Rui F Ribeiro
    13 hours ago








  • 1





    You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

    – ctrl-alt-delor
    10 hours ago
















6















My team is working on a CI environment.



A ko file, named x.ko, is always generated from the CI environment at a regular time everyday and its type is ELF 64-bit LSB relocatable.



Today, I found that the type of this ko file became data.



I'm trying to figure out the reason.



I try to cat this ko file but the output is nothing. Then, I try to cat -et x.ko, and it gives me lots of ^@^@^@^@^@^@^@^@^@^@^@^@^@^@...



Do you know what ^@^@^@^@^@^@^@^@^@ means?










share|improve this question


















  • 1





    ^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

    – jsotola
    14 hours ago








  • 1





    It is corrupted. Has it crashed?

    – Rui F Ribeiro
    13 hours ago








  • 1





    You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

    – ctrl-alt-delor
    10 hours ago














6












6








6


2






My team is working on a CI environment.



A ko file, named x.ko, is always generated from the CI environment at a regular time everyday and its type is ELF 64-bit LSB relocatable.



Today, I found that the type of this ko file became data.



I'm trying to figure out the reason.



I try to cat this ko file but the output is nothing. Then, I try to cat -et x.ko, and it gives me lots of ^@^@^@^@^@^@^@^@^@^@^@^@^@^@...



Do you know what ^@^@^@^@^@^@^@^@^@ means?










share|improve this question














My team is working on a CI environment.



A ko file, named x.ko, is always generated from the CI environment at a regular time everyday and its type is ELF 64-bit LSB relocatable.



Today, I found that the type of this ko file became data.



I'm trying to figure out the reason.



I try to cat this ko file but the output is nothing. Then, I try to cat -et x.ko, and it gives me lots of ^@^@^@^@^@^@^@^@^@^@^@^@^@^@...



Do you know what ^@^@^@^@^@^@^@^@^@ means?







files cat file-types






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 14 hours ago









YvesYves

917722




917722








  • 1





    ^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

    – jsotola
    14 hours ago








  • 1





    It is corrupted. Has it crashed?

    – Rui F Ribeiro
    13 hours ago








  • 1





    You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

    – ctrl-alt-delor
    10 hours ago














  • 1





    ^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

    – jsotola
    14 hours ago








  • 1





    It is corrupted. Has it crashed?

    – Rui F Ribeiro
    13 hours ago








  • 1





    You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

    – ctrl-alt-delor
    10 hours ago








1




1





^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

– jsotola
14 hours ago







^@ .... that is a CTRL-@ ..... hold ctrl key and press @ ..... it is a NULL .... 0 byte

– jsotola
14 hours ago






1




1





It is corrupted. Has it crashed?

– Rui F Ribeiro
13 hours ago







It is corrupted. Has it crashed?

– Rui F Ribeiro
13 hours ago






1




1





You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

– ctrl-alt-delor
10 hours ago





You can use od to analyse binary data. However in this case, all the evidence suggests it is a lot of zero bytes (nulls).

– ctrl-alt-delor
10 hours ago










2 Answers
2






active

oldest

votes


















11














Your file is full of nulls, rather than empty. A regular cat will print the nulls to standard output, but your terminal will generally display them each as nothing, while cat -v represents them as ^@. ^@ represents a null byte because the byte value of "@" (0x40, or 64) xor 64 (flip bit 7) is zero.



Why it's suddenly full of nulls, we can't tell from here.



This related question may be informative about the caret representation: Are ASCII escape sequences and control characters pairings part of a standard?






share|improve this answer
























  • M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

    – JdeBP
    3 hours ago



















11














be careful , cat is not the perfect tool to display data than can be binary .



A simple unix tool is od ( octal dump ) .



A example of od -c -tx1



root@server:~# od -c -tx1 /etc/passwd | head
0000000 r o o t : x : 0 : 0 : r o o t :
72 6f 6f 74 3a 78 3a 30 3a 30 3a 72 6f 6f 74 3a
0000020 / r o o t : / b i n / b a s h n
2f 72 6f 6f 74 3a 2f 62 69 6e 2f 62 61 73 68 0a
0000040 d a e m o n : x : 1 : 1 : d a e
64 61 65 6d 6f 6e 3a 78 3a 31 3a 31 3a 64 61 65
0000060 m o n : / u s r / s b i n : / u
6d 6f 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75
0000100 s r / s b i n / n o l o g i n n
73 72 2f 73 62 69 6e 2f 6e 6f 6c 6f 67 69 6e 0a


so you can see that the carriage return n






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',
    autoActivateHeartbeat: false,
    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%2f505558%2fcat-shows-nothing%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    11














    Your file is full of nulls, rather than empty. A regular cat will print the nulls to standard output, but your terminal will generally display them each as nothing, while cat -v represents them as ^@. ^@ represents a null byte because the byte value of "@" (0x40, or 64) xor 64 (flip bit 7) is zero.



    Why it's suddenly full of nulls, we can't tell from here.



    This related question may be informative about the caret representation: Are ASCII escape sequences and control characters pairings part of a standard?






    share|improve this answer
























    • M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

      – JdeBP
      3 hours ago
















    11














    Your file is full of nulls, rather than empty. A regular cat will print the nulls to standard output, but your terminal will generally display them each as nothing, while cat -v represents them as ^@. ^@ represents a null byte because the byte value of "@" (0x40, or 64) xor 64 (flip bit 7) is zero.



    Why it's suddenly full of nulls, we can't tell from here.



    This related question may be informative about the caret representation: Are ASCII escape sequences and control characters pairings part of a standard?






    share|improve this answer
























    • M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

      – JdeBP
      3 hours ago














    11












    11








    11







    Your file is full of nulls, rather than empty. A regular cat will print the nulls to standard output, but your terminal will generally display them each as nothing, while cat -v represents them as ^@. ^@ represents a null byte because the byte value of "@" (0x40, or 64) xor 64 (flip bit 7) is zero.



    Why it's suddenly full of nulls, we can't tell from here.



    This related question may be informative about the caret representation: Are ASCII escape sequences and control characters pairings part of a standard?






    share|improve this answer













    Your file is full of nulls, rather than empty. A regular cat will print the nulls to standard output, but your terminal will generally display them each as nothing, while cat -v represents them as ^@. ^@ represents a null byte because the byte value of "@" (0x40, or 64) xor 64 (flip bit 7) is zero.



    Why it's suddenly full of nulls, we can't tell from here.



    This related question may be informative about the caret representation: Are ASCII escape sequences and control characters pairings part of a standard?







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered 14 hours ago









    Michael HomerMichael Homer

    49.7k8134173




    49.7k8134173













    • M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

      – JdeBP
      3 hours ago



















    • M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

      – JdeBP
      3 hours ago

















    M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

    – JdeBP
    3 hours ago





    M. Ribeiro is clearly thinking of unix.stackexchange.com/questions/477537 .

    – JdeBP
    3 hours ago













    11














    be careful , cat is not the perfect tool to display data than can be binary .



    A simple unix tool is od ( octal dump ) .



    A example of od -c -tx1



    root@server:~# od -c -tx1 /etc/passwd | head
    0000000 r o o t : x : 0 : 0 : r o o t :
    72 6f 6f 74 3a 78 3a 30 3a 30 3a 72 6f 6f 74 3a
    0000020 / r o o t : / b i n / b a s h n
    2f 72 6f 6f 74 3a 2f 62 69 6e 2f 62 61 73 68 0a
    0000040 d a e m o n : x : 1 : 1 : d a e
    64 61 65 6d 6f 6e 3a 78 3a 31 3a 31 3a 64 61 65
    0000060 m o n : / u s r / s b i n : / u
    6d 6f 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75
    0000100 s r / s b i n / n o l o g i n n
    73 72 2f 73 62 69 6e 2f 6e 6f 6c 6f 67 69 6e 0a


    so you can see that the carriage return n






    share|improve this answer




























      11














      be careful , cat is not the perfect tool to display data than can be binary .



      A simple unix tool is od ( octal dump ) .



      A example of od -c -tx1



      root@server:~# od -c -tx1 /etc/passwd | head
      0000000 r o o t : x : 0 : 0 : r o o t :
      72 6f 6f 74 3a 78 3a 30 3a 30 3a 72 6f 6f 74 3a
      0000020 / r o o t : / b i n / b a s h n
      2f 72 6f 6f 74 3a 2f 62 69 6e 2f 62 61 73 68 0a
      0000040 d a e m o n : x : 1 : 1 : d a e
      64 61 65 6d 6f 6e 3a 78 3a 31 3a 31 3a 64 61 65
      0000060 m o n : / u s r / s b i n : / u
      6d 6f 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75
      0000100 s r / s b i n / n o l o g i n n
      73 72 2f 73 62 69 6e 2f 6e 6f 6c 6f 67 69 6e 0a


      so you can see that the carriage return n






      share|improve this answer


























        11












        11








        11







        be careful , cat is not the perfect tool to display data than can be binary .



        A simple unix tool is od ( octal dump ) .



        A example of od -c -tx1



        root@server:~# od -c -tx1 /etc/passwd | head
        0000000 r o o t : x : 0 : 0 : r o o t :
        72 6f 6f 74 3a 78 3a 30 3a 30 3a 72 6f 6f 74 3a
        0000020 / r o o t : / b i n / b a s h n
        2f 72 6f 6f 74 3a 2f 62 69 6e 2f 62 61 73 68 0a
        0000040 d a e m o n : x : 1 : 1 : d a e
        64 61 65 6d 6f 6e 3a 78 3a 31 3a 31 3a 64 61 65
        0000060 m o n : / u s r / s b i n : / u
        6d 6f 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75
        0000100 s r / s b i n / n o l o g i n n
        73 72 2f 73 62 69 6e 2f 6e 6f 6c 6f 67 69 6e 0a


        so you can see that the carriage return n






        share|improve this answer













        be careful , cat is not the perfect tool to display data than can be binary .



        A simple unix tool is od ( octal dump ) .



        A example of od -c -tx1



        root@server:~# od -c -tx1 /etc/passwd | head
        0000000 r o o t : x : 0 : 0 : r o o t :
        72 6f 6f 74 3a 78 3a 30 3a 30 3a 72 6f 6f 74 3a
        0000020 / r o o t : / b i n / b a s h n
        2f 72 6f 6f 74 3a 2f 62 69 6e 2f 62 61 73 68 0a
        0000040 d a e m o n : x : 1 : 1 : d a e
        64 61 65 6d 6f 6e 3a 78 3a 31 3a 31 3a 64 61 65
        0000060 m o n : / u s r / s b i n : / u
        6d 6f 6e 3a 2f 75 73 72 2f 73 62 69 6e 3a 2f 75
        0000100 s r / s b i n / n o l o g i n n
        73 72 2f 73 62 69 6e 2f 6e 6f 6c 6f 67 69 6e 0a


        so you can see that the carriage return n







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 14 hours ago









        EchoMike444EchoMike444

        7004




        7004






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f505558%2fcat-shows-nothing%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

            Callistus I

            Tabula Rosettana

            How to label and detect the document text images