# How to Install Betty for Styling and Formatting C Programming Files

Go to the Betty repository: [`https://github.com/alx-tools/Betty/`](https://github.com/alx-tools/Betty/)

Click the green code button and copy the https url for the repository.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769699925306/217c729a-a4e9-4818-b6ee-0c3d26b48619.png align="center")

Proceed to clone the repository unto your own machine or the terminal you are using.

```bash
git clone https://github.com/alx-tools/Betty.git
```

After cloning, you run the `ls` command to see the list of directories in your current location where Betty would have been cloned to. You should find the directory **Betty** amongst them.

Open that directory with the change directory command `cd`

```bash
cd Betty
ls
```

You can also list out the files within the directory to have an idea of all the files in there. You are expected to see all the following files:

`bettty-doc.pl` `betty-style.pl` `betty.sh` `install.sh` `LICENSE` `man` `README.md` `test.sh` `tests`

The file of interest to you now is the `install.sh`

To install betty on your computer, run the command below:

```bash
sudo ./install.sh
```

This may require you to enter your password. Once you enter your password and hit `ENTER`, Betty will be installed on your computer.

After installing, you can now have access to the two commands: `betty-style` and `betty-doc`

When it comes to using these commands, you can use it with a single file or multiple files at the same time.

Examples:

```bash
betty-style file1 file2 file3 ...
betty-doc file1 file2 file3 ...
```

To understand and learn more about Betty Style for formatting your C programming files, check out this [post](https://blog.ehoneahobed.com/betty-styles-for-c-programming-explained) that I published earlier.
