Linked Questions
10 questions linked to/from why inode value changes when we edit in "vi" editor?
2
votes
0answers
87 views
VI editor changes and does not change inodes of files when editing files under /tmp [duplicate]
I noticed that my vi editor changes inodes when editing files, except when that file is under /tmp. Why is this?
31
votes
4answers
7k views
How do I prevent sed -i from destroying symlinks?
Why does sed -i executed on symlink destroys that link and replaces it with destination file? How to avoid this?
eg.
$ ls -l pet*
-rw-rw-r-- 1 madneon madneon 4 mar 23 16:46 pet
lrwxrwxrwx 1 madneon ...
6
votes
1answer
9k views
single bind mounted file gets out of sync in linux
I am bind mounting a single file on top of another one and after making changes with an editor, I don't see the modifications in both files. However, if I make the changes with the shell using ...
5
votes
1answer
5k views
Editing a file with several hard links
Let's say I have two hard links pointing at the same picture.
/photography/picture_1.jpg
/best_pictures/picture_1.jpg
What happens if I edit /photography/picture_1.jpg? Is the hard link broken and ...
10
votes
1answer
875 views
Should `sudo less …` change the ownership of `~/.lesshst`?
Having performed a
sudo less ...
... in order to view a restricted log-file and doing some searches with it, I found the ownership and group of my ~/.lesshst file changed to root:root (where ~ ...
4
votes
2answers
2k views
File permissions and saving
Let's say you open a file on which you have write permission.
Meanwhile you change permissions and remove write permission while you still have the file open in some editor.
What will happen if you ...
2
votes
2answers
1k views
How do inode numbers from ls -i relate to inodes on disk
I'm trying to understand how inode numbers (as displayed by ls -i) work with ext4 partitions.
I'm trying to understand whether they are a construct of the linux kernel and mapped to inodes on disk, ...
3
votes
3answers
245 views
Why didn't inode change anymore with a hard link
I use Vim 8.2 to edit my files in my Ubuntu 18.04. When I open a file, do some changes and quit with Vim, the inode number of this file will be changed.
As my understanding, it's because the backup ...
0
votes
1answer
137 views
Vi editor message - input encoding conversion not supported
I'm currently using FreeBSD10, when i open a file using vi then a message displays at the end of file- "Input encoding conversion not supported".
Is this to warning or error ?
Note:- However the file ...
0
votes
2answers
48 views
Sed: what is the difference between -i and > file?
I know that > file is not sed specific, and that it writes stdout to the file, but how does this compare to sed's -i option? I read the man page, and I do not understand what in-place means. Are ...