Editing Programs

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-1
down vote

favorite












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.










share|improve this question



















  • 1




    The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
    – dsstorefile1
    Mar 22 at 2:29











  • also /usr/bin/libreoffice is not the source code for libre office.
    – ravery
    Mar 22 at 2:32






  • 3




    Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
    – muru
    Mar 22 at 2:36










  • It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
    – NerdOfCode
    Mar 22 at 2:56










  • If you do file cmatrix you'll probably see that this file is a binary (ELF).
    – muclux
    Mar 22 at 6:42














up vote
-1
down vote

favorite












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.










share|improve this question



















  • 1




    The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
    – dsstorefile1
    Mar 22 at 2:29











  • also /usr/bin/libreoffice is not the source code for libre office.
    – ravery
    Mar 22 at 2:32






  • 3




    Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
    – muru
    Mar 22 at 2:36










  • It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
    – NerdOfCode
    Mar 22 at 2:56










  • If you do file cmatrix you'll probably see that this file is a binary (ELF).
    – muclux
    Mar 22 at 6:42












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











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.










share|improve this question















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.







installed-programs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 8:39









NerdOfCode

1,032223




1,032223










asked Mar 22 at 2:23









wolf_math

192




192







  • 1




    The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
    – dsstorefile1
    Mar 22 at 2:29











  • also /usr/bin/libreoffice is not the source code for libre office.
    – ravery
    Mar 22 at 2:32






  • 3




    Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
    – muru
    Mar 22 at 2:36










  • It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
    – NerdOfCode
    Mar 22 at 2:56










  • If you do file cmatrix you'll probably see that this file is a binary (ELF).
    – muclux
    Mar 22 at 6:42












  • 1




    The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
    – dsstorefile1
    Mar 22 at 2:29











  • also /usr/bin/libreoffice is not the source code for libre office.
    – ravery
    Mar 22 at 2:32






  • 3




    Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
    – muru
    Mar 22 at 2:36










  • It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
    – NerdOfCode
    Mar 22 at 2:56










  • If you do file cmatrix you'll probably see that this file is a binary (ELF).
    – muclux
    Mar 22 at 6:42







1




1




The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
– dsstorefile1
Mar 22 at 2:29





The libreoffice file you're looking at happens to be a shell script. On the other hand, the majority of the files in /usr/bin are binaries and can't be viewed by a text editor. To get source code, you'll have to download the source; e.g., apt-get source cmatrix.
– dsstorefile1
Mar 22 at 2:29













also /usr/bin/libreoffice is not the source code for libre office.
– ravery
Mar 22 at 2:32




also /usr/bin/libreoffice is not the source code for libre office.
– ravery
Mar 22 at 2:32




3




3




Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
– muru
Mar 22 at 2:36




Possible duplicate of How do I get and modify the source code of packages installed through apt-get?
– muru
Mar 22 at 2:36












It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
– NerdOfCode
Mar 22 at 2:56




It is most likely compiled...However, you can find the source code for LibreOffice... there --> github.com/LibreOffice
– NerdOfCode
Mar 22 at 2:56












If you do file cmatrix you'll probably see that this file is a binary (ELF).
– muclux
Mar 22 at 6:42




If you do file cmatrix you'll probably see that this file is a binary (ELF).
– muclux
Mar 22 at 6:42










1 Answer
1






active

oldest

votes

















up vote
4
down vote













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.






share|improve this answer




















  • Or use apt-get source directly.
    – muru
    Mar 22 at 2:36










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018125%2fediting-programs%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













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.






share|improve this answer




















  • Or use apt-get source directly.
    – muru
    Mar 22 at 2:36














up vote
4
down vote













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.






share|improve this answer




















  • Or use apt-get source directly.
    – muru
    Mar 22 at 2:36












up vote
4
down vote










up vote
4
down vote









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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 22 at 2:31









waltinator

20.6k74068




20.6k74068











  • Or use apt-get source directly.
    – muru
    Mar 22 at 2:36
















  • Or use apt-get source directly.
    – muru
    Mar 22 at 2:36















Or use apt-get source directly.
– muru
Mar 22 at 2:36




Or use apt-get source directly.
– muru
Mar 22 at 2:36

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1018125%2fediting-programs%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

pylint3 and pip3 broken

Missing snmpget and snmpwalk

How to enroll fingerprints to Ubuntu 17.10 with VFS491