-1

I've been checking out source codes of some Linux software. For instance, if I were to run cd /usr/bin and type sudo nano libreoffice, I would see the LibreOffice source code.

However most programs are different. For instance sudo nano cmatrix shows a lot of junk with few recognizable strings of text. It does state at the bottom of nano "Converted from Mac format". I'm not sure what that means, and I don't see it every time I see junk like this.

How can I see the source code of a program like this, or can't I?

Note I'm looking in /usr/bin based on this diagram. Also, note that this isn't restricted to nano. I've also tried vi, but I prefer nano.

NerdOfCode
  • 2,498
wolf_math
  • 129

1 Answers1

3

That is not the "source code" for libreoffice, it's just a shell script that sets up the environment and starts the real libreoffice.

If you install the apt-src package, you can use it to download the actual source of ubuntu packages. Read man apt-src.

waltinator
  • 36,399