Find the answer to your Linux question:
Results 1 to 5 of 5
What is the "foo" and "bar" mentioned in the "makefile"s?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2004
    Posts
    139

    "foo" and "bar" question


    What is the "foo" and "bar" mentioned in the "makefile"s?

  2. #2
    Linux Guru
    Join Date
    May 2004
    Location
    forums.gentoo.org
    Posts
    1,817
    Those are fake names used for the purpose of demonstrating how something is done. If I wanted to explain how to use the grep command, I might demonstrate by grepping the word "foo" in the file "bar" so the command line would be
    Code:
    $ grep foo bar
    If you replace the fake "foo" with "/dev/sda6" and the fake "bar" with "/etc/fstab", that would be equivalent to
    Code:
    $ grep /dev/sda6 /etc/fstab
    and if you run that on my system, you will get:
    Code:
    $ grep /dev/sda6 /etc/fstab
    /dev/sda6               swap                    swap    defaults        0 0
    For the historical perspective, foo and bar come from a single word foobar, which is a corruption of the word fubar, which is an aconym for "f*d up beyond all recognition" which apparently was a common state for computers in earlier times.
    /IMHO
    //got nothin'
    ///this use to look better

  3. #3
    Linux Enthusiast
    Join Date
    Jun 2004
    Location
    Windsor, CO
    Posts
    656
    A fake name for something used in examples:
    i.e. foo/foobar/bar etc.
    I have no idea where it came from though.
    Emotions are the key to the soul.
    Registered Linux User #375050

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    "For the historical perspective, foo and bar come from a single word foobar, which is a corruption of the word fubar, which is an aconym for "f*d up beyond all recognition" which apparently was a common state for computers in earlier times."

    Yes, computers are NEVER fubar'ed in this day and age
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  6. #5
    Linux User
    Join Date
    Feb 2005
    Posts
    290
    "For the historical perspective, foo and bar come from a single word foobar, which is a corruption of the word fubar, which is an aconym for "f*d up beyond all recognition" which apparently was a common state for computers in earlier times."

    Yes, computers are NEVER fubar'ed in this day and age
    lol !! i tot it was just as simple as "/blablabla/blablabla" din know it actually has a story!! ahahahahahaa LMAO

Posting Permissions

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