problem with editing or reading file

General support questions
Post Reply
HUsam
Posts: 5
Joined: 2019/01/11 15:47:20
Location: Turkey

problem with editing or reading file

Post by HUsam » 2019/01/11 16:05:03

when i trying to editing the http.conf with vi it show me an empty file , what i missing :?:

Code: Select all

[h@husam ~]$ cat /etc/httpd/conf/http.conf
cat: /etc/httpd/conf/http.conf: No such file or directory
[h@husam ~]$ sudo cat /etc/httpd/conf/http.conf
cat: /etc/httpd/conf/http.conf: No such file or directory
[h@husam ~]$ sudo ls -lhZ /etc/httpd/conf/
-rw-r--r--. root root unconfined_u:object_r:httpd_config_t:s0 http.conf-
-rw-r--r--. root root system_u:object_r:httpd_config_t:s0 httpd.conf
-rw-r--r--. root root system_u:object_r:httpd_config_t:s0 magic
[h@husam ~]$ 

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: problem with editing or reading file

Post by avij » 2019/01/11 17:21:06

It's httpd.conf, not http.conf

HUsam
Posts: 5
Joined: 2019/01/11 15:47:20
Location: Turkey

Re: problem with editing or reading file

Post by HUsam » 2019/01/11 17:50:57

I didn't notice that :lol: , thanks for answer

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: problem with editing or reading file

Post by lightman47 » 2019/01/11 20:01:43

- been there SO many times!

HUsam
Posts: 5
Joined: 2019/01/11 15:47:20
Location: Turkey

Re: problem with editing or reading file

Post by HUsam » 2019/01/11 21:07:07

lightman47 wrote:
2019/01/11 20:01:43
- been there SO many times!
maybe if i toke one cup of coffee before making this thread maybe i will notice that :lol: its good to be new member of centos community with a funny started. :mrgreen: , sorry for my language

Post Reply