/var/spool/mail and /var/mail/root same inode but just one link count [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
i found something on my linux systems i don't understand.
The files /var/spool/mail/root and /var/mail/root point to the same inode but the link count is 1. This is the same on a ubuntu and a centos server.
When i create hardlinks to a file the hardlink count increases with every new file.
Why is the link count just one?

That is because /var/mail is a symbolic link to /var/spool/mail.

Related

What is the "1" in this column "drwxr-xr-x 1 bash bash 4.0K Dec ..." [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I read that "1" is the number of hard links to the specific file, but what exactly are hard links?
In computing, a hard link is a directory entry that associates a name
with a file on a file system. All directory-based file systems must
have at least one hard link giving the original name for each file.
The term “hard link” is usually only used in file systems that allow
more than one hard link for the same file.

Hardlinks in linux command line input [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Hard links cannot span physical devices. Exactly this statement I read while understanding the concept of hard link in Linux. Can anyone help me to understand this ?
A filename, is a pointer to an inode.
So if you're not on the same drive, it's impossible to link a file, because the inodes belongs to a specific disk

Can I view a linux directory in binary mod? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've learned that linux directory is a file. So can I view it in binary mod like viewing other files with hexdump?
You can dump raw portions of a drive using the dd command and that is about as low level as you can get. You can also use debugfs to do maintenance on the filesystem.

/tmp usage in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
How I can find out how much /tmp space is required by an application. Generally sometime I see /tmp is full and get error saying not able to write to /tmp. So is there any way to find out how much /tmp space is required by an application ?
There is no way. Programs use /tmp on an ad-hoc basis.

Ubuntu symbolic link going to source location when up folder [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
The problem is the following - I`ve created a symbolic link to a folder /home/user1/folder1 in /home/user2/. When user2 follows this link, he comes to the /home/user1/folder1, but when he goes up folder he comes to /home/user1/ not /home/user2/. Is it possible to change this behavior?
Thanks. Solved by mount --bind

Resources