What is the "1" in this column "drwxr-xr-x 1 bash bash 4.0K Dec ..." [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 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.

Related

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

Is there a special user and group for a shared file which anyone can read/write 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
I am making a folder where there are some shared files which can be read and written by anyone (but not executable) in a server. But I don't know what kind of owner and group are used for the files. Are there any special or well known owner or group for the purpose? Thank you very much.
The best approach to do this would be to use:
chmod 110
This will change file permission to read & write, no execute
linuxcommand.org/lts0070

/var/spool/mail and /var/mail/root same inode but just one link count [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
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.

How to rename a file name named "." [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 8 years ago.
Improve this question
I have downloaded a large file about 2gigs from remote server but by mistake I gave it name . (dot).
How can I rename it using linux commands ?
I don't think you really have named it .. Or at least, you cannot have done so successfully.
The name . is reserved for the current directory. So either it has been given another name implicitly, or it has been removed/discarded.
Try
find -size +1536M -ls
to find if there is any file with this size, and if so, verify if it can be the file you look for.

Can't copy file as root 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 9 years ago.
Improve this question
I am using Cent-OS and I am trying to copy a file. I su to root first, then I execute:
cp test.txt /usr/java/jdk1.7.0_45/jre/lib/management
But I get an input/output error. Why can't I copy this file as root? Is there something that can lock a folder in Linux so root can't change it?
root is a concept to get around the system's permissions.
IO error is a more physical problem that could be of a much more varied nature. Common examples included faulty media, unreadable CDs, lost connection, and so on.

Resources