Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is an example I saw in a webpage which uses IO redirection to make the audio device make sound.

less sound.wav > /dev/audio

But I cannot do it in Fedora. It outputs the input data format is wrong.

Any hint?

share|improve this question

less is a pager, typically used like less file to provide a scrollable view of the file's content, that is, a console user interface. Thus redirecting the output of less doesn't make much sense. The error you get, however, is because less is not good at displaying binary data, e.g. a .wav file.

If you want the file's content input into the device, cat audio.wav > /dev/audio is more promising, since cat does just that, print the file's content to stdout. (I'm not sure if it works that way, though.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.