Confused on Config File












1















Is there a standard editor to view config files in linux. I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets. Can anyone tell me how to view any config file in linux. Whats i m doing wrong.
Thanks










share|improve this question




















  • 2





    Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

    – Thomas Ward
    Jan 5 at 18:37











  • Didnt find any suitable tag.

    – Vinit Bhardwaj
    Jan 5 at 18:37











  • @ThomasWard thanks. On it

    – Vinit Bhardwaj
    Jan 5 at 18:38











  • See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

    – oldfred
    Jan 5 at 20:48
















1















Is there a standard editor to view config files in linux. I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets. Can anyone tell me how to view any config file in linux. Whats i m doing wrong.
Thanks










share|improve this question




















  • 2





    Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

    – Thomas Ward
    Jan 5 at 18:37











  • Didnt find any suitable tag.

    – Vinit Bhardwaj
    Jan 5 at 18:37











  • @ThomasWard thanks. On it

    – Vinit Bhardwaj
    Jan 5 at 18:38











  • See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

    – oldfred
    Jan 5 at 20:48














1












1








1








Is there a standard editor to view config files in linux. I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets. Can anyone tell me how to view any config file in linux. Whats i m doing wrong.
Thanks










share|improve this question
















Is there a standard editor to view config files in linux. I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets. Can anyone tell me how to view any config file in linux. Whats i m doing wrong.
Thanks







configuration vim






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 5 at 18:39









Rinzwind

205k28391526




205k28391526










asked Jan 5 at 18:34









Vinit BhardwajVinit Bhardwaj

84




84








  • 2





    Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

    – Thomas Ward
    Jan 5 at 18:37











  • Didnt find any suitable tag.

    – Vinit Bhardwaj
    Jan 5 at 18:37











  • @ThomasWard thanks. On it

    – Vinit Bhardwaj
    Jan 5 at 18:38











  • See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

    – oldfred
    Jan 5 at 20:48














  • 2





    Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

    – Thomas Ward
    Jan 5 at 18:37











  • Didnt find any suitable tag.

    – Vinit Bhardwaj
    Jan 5 at 18:37











  • @ThomasWard thanks. On it

    – Vinit Bhardwaj
    Jan 5 at 18:38











  • See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

    – oldfred
    Jan 5 at 20:48








2




2





Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

– Thomas Ward
Jan 5 at 18:37





Not everything is a configuration file. The ls command is a compiled binary and is not able to be read by any text or configuration editor. You need to know the difference between binaries and editable files.

– Thomas Ward
Jan 5 at 18:37













Didnt find any suitable tag.

– Vinit Bhardwaj
Jan 5 at 18:37





Didnt find any suitable tag.

– Vinit Bhardwaj
Jan 5 at 18:37













@ThomasWard thanks. On it

– Vinit Bhardwaj
Jan 5 at 18:38





@ThomasWard thanks. On it

– Vinit Bhardwaj
Jan 5 at 18:38













See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

– oldfred
Jan 5 at 20:48





See this thread. Use sudoedit ubuntuforums.org/… Also how to change default editor

– oldfred
Jan 5 at 20:48










1 Answer
1






active

oldest

votes


















4















Is there a standard editor to view config files in linux.




vim




I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets.




Then those are NOT config files. Inside /bin there are (or should be) only binaries. Config files are in /etc/ and likely (or often have) have an extension ".conf" or ".cnf" or are inside a "conf" directory inside the projects base directory though that is up to the creator of software to decide.





locate .conf
locate .cnf


is going to yield lots of config files and directories that include config files.






share|improve this answer
























  • How to view a binary file. And how identify a binary and config file.

    – Vinit Bhardwaj
    Jan 5 at 18:45











  • binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

    – Rinzwind
    Jan 5 at 21:39











  • Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

    – Sergiy Kolodyazhnyy
    Jan 6 at 10:37











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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
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%2f1107235%2fconfused-on-config-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4















Is there a standard editor to view config files in linux.




vim




I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets.




Then those are NOT config files. Inside /bin there are (or should be) only binaries. Config files are in /etc/ and likely (or often have) have an extension ".conf" or ".cnf" or are inside a "conf" directory inside the projects base directory though that is up to the creator of software to decide.





locate .conf
locate .cnf


is going to yield lots of config files and directories that include config files.






share|improve this answer
























  • How to view a binary file. And how identify a binary and config file.

    – Vinit Bhardwaj
    Jan 5 at 18:45











  • binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

    – Rinzwind
    Jan 5 at 21:39











  • Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

    – Sergiy Kolodyazhnyy
    Jan 6 at 10:37
















4















Is there a standard editor to view config files in linux.




vim




I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets.




Then those are NOT config files. Inside /bin there are (or should be) only binaries. Config files are in /etc/ and likely (or often have) have an extension ".conf" or ".cnf" or are inside a "conf" directory inside the projects base directory though that is up to the creator of software to decide.





locate .conf
locate .cnf


is going to yield lots of config files and directories that include config files.






share|improve this answer
























  • How to view a binary file. And how identify a binary and config file.

    – Vinit Bhardwaj
    Jan 5 at 18:45











  • binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

    – Rinzwind
    Jan 5 at 21:39











  • Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

    – Sergiy Kolodyazhnyy
    Jan 6 at 10:37














4












4








4








Is there a standard editor to view config files in linux.




vim




I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets.




Then those are NOT config files. Inside /bin there are (or should be) only binaries. Config files are in /etc/ and likely (or often have) have an extension ".conf" or ".cnf" or are inside a "conf" directory inside the projects base directory though that is up to the creator of software to decide.





locate .conf
locate .cnf


is going to yield lots of config files and directories that include config files.






share|improve this answer














Is there a standard editor to view config files in linux.




vim




I m just viewing the ls command (/bin) config file in vim editor but it shows my a lot of @ and alphabets.




Then those are NOT config files. Inside /bin there are (or should be) only binaries. Config files are in /etc/ and likely (or often have) have an extension ".conf" or ".cnf" or are inside a "conf" directory inside the projects base directory though that is up to the creator of software to decide.





locate .conf
locate .cnf


is going to yield lots of config files and directories that include config files.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 5 at 18:38









RinzwindRinzwind

205k28391526




205k28391526













  • How to view a binary file. And how identify a binary and config file.

    – Vinit Bhardwaj
    Jan 5 at 18:45











  • binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

    – Rinzwind
    Jan 5 at 21:39











  • Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

    – Sergiy Kolodyazhnyy
    Jan 6 at 10:37



















  • How to view a binary file. And how identify a binary and config file.

    – Vinit Bhardwaj
    Jan 5 at 18:45











  • binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

    – Rinzwind
    Jan 5 at 21:39











  • Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

    – Sergiy Kolodyazhnyy
    Jan 6 at 10:37

















How to view a binary file. And how identify a binary and config file.

– Vinit Bhardwaj
Jan 5 at 18:45





How to view a binary file. And how identify a binary and config file.

– Vinit Bhardwaj
Jan 5 at 18:45













binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

– Rinzwind
Jan 5 at 21:39





binary file: with a hex editor. result will be hex code so you need to learn that too ;) and use the file command to see if a file is binary or text or something else. config files are text files (mosttimes)

– Rinzwind
Jan 5 at 21:39













Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

– Sergiy Kolodyazhnyy
Jan 6 at 10:37





Note that config files don't have to be plain text or binary only. The format is up to the developers to choose.

– Sergiy Kolodyazhnyy
Jan 6 at 10:37


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107235%2fconfused-on-config-file%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕