Find the answer to your Linux question:
Results 1 to 7 of 7
I am trying to register on the Chakra forum and the human question What is the output of: echo $(date -u +%W)$(uname) | sha256sum | sed 's/\W//g' ? Not sure ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Location
    Huntington Beach
    Posts
    14

    Question What's up?


    I am trying to register on the Chakra forum and the human question What is the output of: echo $(date -u +%W)$(uname) | sha256sum | sed 's/\W//g' ? Not sure what the answer is. What are they looking for?

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Basie View Post
    What is the output of: echo $(date -u +%W)$(uname) | sha256sum | sed 's/\W//g' ? Not sure what the answer is. What are they looking for?
    They are looking for the output of that command when run in a terminal or console.
    oz

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Huntington Beach
    Posts
    14
    Quote Originally Posted by ozar View Post
    They are looking for the output of that command when run in a terminal or console.
    Okay, I copied and pasted it in a terminal and got a long string of letters and numbers. So I copied and pasted it into the Human Question Field and still no help.
    They still claim it's an incorrect response. Any other suggestions? Thanks.

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    I just registered and it works ok for me. Maybe you copied an extra space or something in there?

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Huntington Beach
    Posts
    14

    Smile Checksum

    From another forum a post gave me a string of numbers and letters and said it was a
    check sum which I hadn't thought of. So, I copied and pasted that and it worked fine.
    It was totally different from the string I created from a terminal on my system.
    I did it a few times so I know I copied and pasted that string without any glitches. Oh, well another binary mystery.

  6. #6
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    It is a checksum, that's the sha256sum part.

    The fist part generates a number based on the week of the year
    Code:
    # date -u +%W
    18
    Then adds the output of uname
    Code:
    # echo $(date -u +%W)$(uname)
    18Linux
    Then gets the sha256sum of that, a 256 bit checksum.

    Code:
    # echo $(date -u +%W)$(uname) | sha256sum
    9a93b71d5b2841e649195bc81f8e38600860a040bc368cdbd0cde346b73248a1  -
    Then gets rid of the extraneous character at the end with sed.
    Code:
    # echo $(date -u +%W)$(uname) | sha256sum | sed 's/\W//g'
    9a93b71d5b2841e649195bc81f8e38600860a040bc368cdbd0cde346b73248a1

  7. #7
    Just Joined!
    Join Date
    Aug 2005
    Location
    Huntington Beach
    Posts
    14
    Thanks for that reply. I traced my steps and tonight I got that exact same string the checksum that works. So, it must have been an error on my part when copying & pasting in the terminal yesterday.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •