Commands for playing music under the Linux terminal command line

Source: Internet
Author: User
Tags administrator password

Now the Linux desktop has developed very well, playing music in the desktop operation is very simple. So we remember how we played the music when the desktop wasn't so good? Hey, I can't remember, it's too hard.

But now we can install a small software, and then through the command line to use the software to play music, it feels good to drop.

This software is called: SOX, supports many formats of audio files, such as Wav,mp3,mpg,ogg,flac and so on. It's enough to meet our daily use.

Well, first of all, we need to install it into our system in the first step.

1. Open a terminal (ctrl+alt+t) and enter the following command:

sudo Install Sox

2. The administrator password is required to install the software to the system. Enter the password and return.


3, in the installation when asked if you continue to enter Y to confirm the continuation of the installation.


4, OK, just wait for it to complete the installation. Once the installation is complete, we can use the following command to enable SOX to play the audio format files it supports:

sudo install sox libsox-FMT-all

5. OK, now you can use SOX to play the audio files on our computer.

6, for example, to play all the audio files in the system, we can use this command:

Play *mp3

7. If you want to play a particular file, then use this command:

file-name.extension

Like what:

Play Aqua_barbie_girl.mp3

You can only play Aqua_barbie_girl.mp3 this MP3.

8, when playing, we can press CTRL + C to the end of the current audio playback to go to the next audio.

9. For more SOX operation commands we can use the man command to see a detailed description. I hope we can find something.

 Man Sox

Commands for playing music under the Linux terminal command line

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.