On Tuesday 02 December 2008 10:32:48 Adam Zaleski wrote:
Hello,
I have a problem setting up some permissions to file
and editing this file with vi.. I have two different
examples to show you what I mean... First one:
[EMAIL PROTECTED] ~]$ echo some text some_file.txt
[EMAIL PROTECTED] ~]$
Hello,
I have a problem setting up some permissions to file
and editing this file with vi.. I have two different
examples to show you what I mean... First one:
[EMAIL PROTECTED] ~]$ echo some text some_file.txt
[EMAIL PROTECTED] ~]$ chmod 000 some_file.txt
[EMAIL PROTECTED] ~]$ ls -l
Why I am able to put some text into some_file.txt with
chmod 000 using vi editor and why i can not do the same
using echo???
I'm not exactly vi master or guru here but I think it's because you write vi
with :wq! command. If you write tried to write some_file.txt with :w instead,
vi would