Re: changes made to a file are also made in his copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/04/14 14:04, angelo.moreschini@xxxxxxxxxxxxxx wrote:
> I apologize for a trivial question but that's because I yet have not much experience with Linux.
>
> I made, some time ago, a copy of the smb.conf file, for security reasons, before making to it any changes:
> (cp smb.conf.original smb.conf.original.orig )
>
> Yesterday I wanted to give a look at the contents of the old file(smb.conf.original)that I had copied; butI found that both files have the same content.
>
> I made other changes, in order to do experiments, and I have always seen that the changes made to a file are always shown on the other file.
>
> The command "ls -l" shows the two files are colored blue which (I think) indicates that the files are a link to each other.
>
> Since I am convinced that I used the "cp" command;my question is:
> which mistake can I have made ​​to create a link of the fileinstead of a copy of it?

I don't rely on colors....

egreshko@meimei ~]$ ls -li nvidia*
8651522 -rw-rw-r--. 2 egreshko egreshko 135 Jan 30 07:29 nvidia
8651522 -rw-rw-r--. 2 egreshko egreshko 135 Jan 30 07:29 nvidia.orig

The i in the above shows the inode to be equal.  Meaning the files are hard linked.

[egreshko@meimei ~]$ ls -li nvidia*
8651522 -rw-rw-r--. 1 egreshko egreshko 135 Jan 30 07:29 nvidia
8652457 lrwxrwxrwx. 1 egreshko egreshko   6 Jul  4 15:34 nvidia.orig -> nvidia

Shows the inode to be different.  But noticed the way nvidia.org is presented.  This is a symbolic link.

-- 
If you can't laugh at yourself, others will gladly oblige.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux