F
F
Follenlast2016-11-05 17:45:16
linux
Follenlast, 2016-11-05 17:45:16

How to edit configuration files in Linux?

Friends. And what is the actual syntax of configs in linux? Is it BASH or something else? For example, to add sudo rights to your user, you need to edit the /etc/sudoers file and add the line username ALL=(ALL) ALL. Well, as an example. how to edit these files in general?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim Moseychuk, 2016-11-05
@follenlast

I think that all the same configs are Bashevsky skips... Is the guess right?
No.
Not all the time to search on Google
It's to search. There is no standard configuration file. Each application uses its own format.

A
Alexander, 2016-11-05
@NeiroNx

I think you need to use man for this
man sudoers

C
CityCat4, 2016-11-05
@CityCat4

No.
There is no single standard for configuration files.
Yes, in most cases, it's just var = value with # as a comment. But as a comment, it can also be ; and // and even /* */, and as variables, pieces of code in C, PHP, Perl, or even Windows ini-files (with sections in square brackets). In addition, these may not even necessarily be text files, but may well turn out to be db- or sqlite-databases (as in sendmail, for example)

A
abcd0x00, 2016-11-07
@abcd0x00

Each program defines its own file format. These can be both general formats like xml, json, yaml, as well as self-made formats that have their own concepts of variables (they may or may not be similar to bash's).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question