A
A
Abc Edc2015-01-16 21:10:01
Server equipment
Abc Edc, 2015-01-16 21:10:01

What is the command to open a file located in etc in ubuntu 14/10?

I have never worked with servers, I need to edit a file in mongodb at /etc/mongodb.conf
and a regular
CD etc gives an error I am now in /home/azureuser
how to go down to etc and then what command to open the file inside the console for editing

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-01-16
@gleber1

Run Midnight Commander:
mcedit /etc/mongodb.conf
Or nano:
nano /etc/mongodb.conf
Or vi:
vi /etc/mongodb.conf
Here's a book for you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question