I'm looking how to affect the value 2 in directories column inside the ls command for a file.

Actually the value is 1.

I tried to creat a symbolic link but its still 1

有帮助吗?

解决方案

I tried to creat a symbolic link but its still 1

You need a hardlink instead (i.e. ln without -s). That number is the count of references to the inode and a symbolic link doesn't increase it.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top