Page 1 of 3 123 LastLast
Results 1 to 10 of 29

Thread: For the sake of learning (Terminal)

  1. #1
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    For the sake of learning (Terminal)

    I have used the CD command to move to my music folder. Now the question is, how do I start an MP3 in this folder using only the terminal?

    Thanks
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  2. #2
    Join Date
    Mar 2008
    Location
    127.0.0.1
    Beans
    193
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: For the sake of learning (Terminal)

    You could get mplayer with
    Code:
    sudo apt-get install mplayer
    and then:
    Code:
    mplayer filename.mp3
    I am currently unable to come up with a witty statement to put in my signature. Please check back later.

  3. #3
    Join Date
    Dec 2008
    Location
    Northwest Ohio
    Beans
    1,581
    Distro
    Lubuntu 13.10 Saucy Salamander

    Re: For the sake of learning (Terminal)

    Hi,
    Are you wanting to play music without a GUI (inside the terminal)?

    If so, try this
    canberra-gtk-play -f <path-to-file>

    I believe this is the command line audio player that plays the Ubuntu theme sounds.
    hope this helps.

  4. #4
    Join Date
    Feb 2008
    Location
    Lancashire, UK
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: For the sake of learning (Terminal)

    Quote Originally Posted by psam3 View Post
    I have used the CD command to move to my music folder
    No you didn't. Commands are case-sensitive and I'll bet you actually used one called "cd".

    Well, you did say "for the sake of learning"

  5. #5
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: For the sake of learning (Terminal)

    Quote Originally Posted by baddog144 View Post
    You could get mplayer with
    Code:
    sudo apt-get install mplayer
    and then:
    Code:
    mplayer filename.mp3
    Thanks, I had to give my files simpler names but it worked after that.

    Quote Originally Posted by John Bean View Post
    No you didn't. Commands are case-sensitive and I'll bet you actually used one called "cd".

    Well, you did say "for the sake of learning"
    haha, yeah you are right, I did use the "cd" command
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  6. #6
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: For the sake of learning (Terminal)

    Quote Originally Posted by ankspo71 View Post
    Hi,
    Are you wanting to play music without a GUI (inside the terminal)?

    If so, try this
    canberra-gtk-play -f <path-to-file>

    I believe this is the command line audio player that plays the Ubuntu theme sounds.
    hope this helps.
    I tried this too but it simply refuses to find my files
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  7. #7
    Join Date
    Mar 2008
    Location
    127.0.0.1
    Beans
    193
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: For the sake of learning (Terminal)

    ou can always type just part of the filename and then press TAB to complete the filename. E.g if you have reallylong_complexFIlename.mp3, you could type reallylo<tab> and it would complete it for you
    I am currently unable to come up with a witty statement to put in my signature. Please check back later.

  8. #8
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: For the sake of learning (Terminal)

    Quote Originally Posted by psam3 View Post
    Thanks, I had to give my files simpler names but it worked after that.
    Not necessary. If spaces are the issue:

    mplayer "a filename with spaces.mp3"

    If it's something else, there's another way around it. Any file can be specified on the command line.

  9. #9
    Join Date
    Jan 2008
    Beans
    115
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: For the sake of learning (Terminal)

    Quote Originally Posted by baddog144 View Post
    ou can always type just part of the filename and then press TAB to complete the filename. E.g if you have reallylong_complexFIlename.mp3, you could type reallylo<tab> and it would complete it for you
    Thanks that is helpful. If I could ask one more question, is their a way to simply tell it to play all files in a folder with a certain extension, like mp3?
    AMD Athlon 64 X2 6000 3.1 ghz
    8 gb DDR2 800 PC2 6400 RAM
    640 gb Western Digital Caviar
    650 Watt power supply, ATI Radeon HD 4850 X2

  10. #10
    Join Date
    Mar 2008
    Location
    127.0.0.1
    Beans
    193
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: For the sake of learning (Terminal)

    Sure, just do
    Code:
    mplayer *.mp3
    the '*' means "anything", so *.mp3 is "any file that ends in .mp3"
    I am currently unable to come up with a witty statement to put in my signature. Please check back later.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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