Betty: Siri or Google Now-style assistant in the Linux terminal

What is Betty?

Betty is Crab o Google Now from the command line. Well, something like that. The tool translates simple English phrases into the commands that actually need to be executed to carry out the requested action.

At the moment, it is not possible to control Betty using voice commands, but yes through instructions written in the terminal. Betty it will show not only the final result but also the command that is being executed behind the scenes.

Betty Characteristics

As clarified on the page of GitHub of the project, Betty seeks "to provide a way to use the computer through natural language":

Specifically, the benefit lies in doing things with your computer without leaving the command line or searching the Internet for the appropriate command. Betty just works.


The typical example is the compression / decompression of files, which is usually a bit complicated from the terminal if one does not remember exactly the commands and parameters appropriate to each type of file (zip, tar, rar, etc.). With BettyInstead, you can unzip a file without complications:

betty uncompress file.tar.gz

Betty includes support for a variety of commands, including:

  • count (counts the number of characters in a file, the number of words in a directory, etc.);
  • config (change your username);
  • datetime (current date and time, etc.);
  • Find (search for files);
  • Internet / web queries (download a file, show the weather forecast, etc.);
  • file / directory operations (compress / decompress files, show the size of a file, change the permissions of a file, etc.);
  • processes;
  • user commands (shows username, real name, IP number, who else is logged in, etc.);
  • controls iTunes and Spotify;
  • much more.

How to install Betty

1.- Install Ruby (required to use Betty) And the curl (required by Betty to run some commands). In Ubuntu, just run the following command:

sudo apt-get install ruby ​​curl

2.- Install Go and download the latest version of Betty:

sudo apt-get install git cd && git clone

3.- And finally, you have to assign the file path betty / main.rb alias betty in your file ~ / bashrc. Assuming you have downloaded Betty to your user folder, just run:

echo "alias betty = \" ~ / betty / main.rb \ "" >> ~ / .bashrc source ~ / .bashrc

The content of the article adheres to our principles of editorial ethics. To report an error click here!.

10 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   ivanbarram said

    So we could say that Betty is deaf?

    Very good, greetings.

    1.    robert said

      LOL! I thought the same ... 😉
      very good post I try it !!!

    2.    let's use linux said

      Haha! Something like that….
      Luckily, it's not ugly betty. 🙂
      Hug! Paul.

  2.   victorhck said

    I made her learn a little Spanish, if someone dares to teach her more, she can do it on GitHub !!

  3.   Azureus said

    It's kind of funny, nickname for my laptop Betty, coincidence. Where?

  4.   johnfgs said

    tar jxvf fubar.tar.bz2 🙂

  5.   desikoder said

    I don't know how many seconds I've been thinking about the command, but the shortest command I can think of with tar is:

    root @ bomb: >> tar c /

    that will display a bunch of weird symbols on the screen which are the tarball data from the root directory


    1.    desikoder said

      Even better. Instead of thinking of a command with tar, we execute poweroff on the pump, it may work or if it is a trap that we explode because it was an alias to tar –invalid-command xD.

  6.   Jonathan Delgao said

    The only bad thing with betty for now is that she has compatibility issues with some systems.

  7.   MARCOS MENDEZ said

    hello, I have a problem, I tried to install betty, but it was not possible, and every time I open the terminal, the following appears:
    bash: /home/cancervero85/.bashrc: line 171: syntax error near unexpected token betty="~/betty/main.rb"'
    bash: /home/cancervero85/.bashrc: line 171:
    esacalias betty = »~ / betty / main.rb» '

    I tried in elementary os loki