23 August 2011

Creating the Universe with Unix Commands

# In the beginning God created the heaven and the earth
> su
Password: jehovah
> mkdir heaven earth

# And God said, Let there be light, and there was light.
> mkdir light

# And God divided the light from the darkness. And God called the light Day, and the darkness he called Night.
> cp light Day
> mv light Night

# A
nd God said, Let there be a firmament in the midst of the waters, and let it divide the waters from the waters.
> mkdir waters firmament waters
mkdir: cannot create directory 'waters': File exists

# And God made the firmament, and divided the waters which were under the firmament from the waters which were above the firmament: and it was so. And God called the firmament Heaven. And the evening and the morning were the second day.
> mv firmament heaven

#
And God said, Let the waters under the heaven be gathered together unto one place, and let the dry land appear: and it was so. And God called the dry land Earth...
> mkdir earth

#
.. and the gathering together of the waters called he Seas: and God saw that it was good
> mv waters seas

#
And God said, Let the earth bring forth grass, the herb yielding seed, and the fruit tree yielding fruit after his kind, whose seed is in itself, upon the earth: and it was so.
> cd earth
> mkdir grass seed fruit_tree

#
And God said, Let there be lights in the firmament of the heaven to divide the day from the night; and let them be for signs, and for seasons, and for days, and years
> cd ../firmament
gsh: cd: ../firmament: No such file or directory
> cd ../heaven
> mkdir lights

#
And God made two great lights; the greater light to rule the day, and the lesser light to rule the night: he made the stars also
> cd lights
> mkdir sun moon stars

#
And God said, Let the waters bring forth abundantly the moving creature that hath life, and fowl that may fly above the earth in the open firmament of heaven
> cd ../waters
> mkdir creatures
> cd ../heaven
> mkdir fowl

#
And God created great whales, and every living creature that moveth, which the waters brought forth abundantly, after their kind, and every winged fowl after his kind: and God saw that it was good
> cd ../waters/creatures
> mkdir whales

# And God blessed them, saying, Be fruitful, and multiply, and fill the waters in the seas, and let fowl multiply in the earth
> nice whales
nice: whales: Permission denied

# And God said, Let the earth bring forth the living creature after his kind, cattle, and creeping thing, and beast of the earth after his kind: and it was so
> cd ../../earth
> mkdir creatures
> cd creatures
> mkdir cattle

#
And God said, Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth
> mkdir man
> groupadd mankind
> useradd man -G mankind -m /earth
> cd /earth
> chown -rf man:mankind *
> chmod -r 777 man
:mankind *
> cd /heaven
> chown -rf man:mankind *
> chmod -r 777 man:mankind *
> cd /waters
> chown -rf man:mankind *
> chmod -r 777 man:mankind *

#
So God created man in his own image, in the image of God created he him; male and female created he them
> useradd woman -G mankind -m /earth

#
And God blessed them, and God said unto them, Be fruitful, and multiply, and replenish the earth, and subdue it: and have dominion over the fish of the sea, and over the fowl of the air, and over every living thing that moveth upon the earth
> nice man
What manual page do you want?
> nice woman
nice: woman: Permission denied

No comments:

Post a Comment