Im new with linux i can't go to etc/resolv.conf every time i type resolv.conf i got this message bash: resolv.conf: command not found....addition to this im a root user but i can't run this command...thanks for the help
/etc/resolv.conf is not an executable/binary file, it is a config file. One of the first things you need to learn is when you su to root, you need to use the - or you do not get root's profiles to load. ie: su -
If you want to see what is in that file, you can use several commands, cat /etc/resolv.conf being one, you could replace cat with many other viewing utilities such as more, less, etc.
A usefull way to find out what type of file you are looking at is with the command file, you could: file /etc/resolv.conf and it would return and let you know it was a config file.
/etc/resolv.conf is not a binary executable.use cat to see the contents file.Normally it contents the domain name to search and ip of your name server.You can use vi-editor to edit it.Thankyou
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.