Knew not that it was Jesus - Probably it was yet twilight, and in the distance they could not distinctly recognize him.
Related Commentaries of John 21:4
John 21:4
4 But when the morning was now come, Jesus stood on the shore: but the disciples knew not that it was Jesus.