How To Edit Conf File In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To edit a configuration file in Linux, you will need to use a text editor. The two most commonly used text editors are vi and nano. To open the file in either editor, you will need to open a terminal window and type the following command:
vi path/to/file.conf
or
nano path/to/file.conf
This will open the file in the chosen editor. You can then edit the file as necessary. When you are finished, use the appropriate command to save and exit. For vi this is :wq and for nano this is ctrl+x.