All Questions
7 questions
0
votes
0
answers
25
views
ls long listing column "number of hard links": What does that mean? [duplicate]
Please shed some light on that erratic, second column of ls -l, that numeric column between the 1st one - the permission string - and the third one - the user ownership.
I just can't pin it down, what ...
-1
votes
1
answer
70
views
creating hard links Linux question [duplicate]
From the book The Linux Command Line by William Shotts, page 33:
So now we have four instances of the file fun. Let's take a look at
our playground directory.
[me@linuxbox playground]$ ls -1
total 16
...
3
votes
1
answer
476
views
How does `ls` find hard links?
Setup
The following sequence of commands is setup for my question.
root@cd330f76096d:/# cd
root@cd330f76096d:~# ls
root@cd330f76096d:~# mkdir -p my_dir/my_subdir
root@cd330f76096d:~# ls -...
7
votes
1
answer
2k
views
Why does this new directory have a link count of 3?
$ sudo su
# dd if=/dev/zero of=./myext.img bs=1024 count=100
.
.
.
# modprobe loop
# losetup --find --show myext.img
/dev/loop0
# mkfs -t myext /dev/loop0
.
.
.
# mkdir mnt
# mount /dev/loop0 ./mnt
# ...
0
votes
1
answer
265
views
How to find evey softlink to a directory?
Take /etc dir as example. On my system it has 144 links. And as dir's can't have hardlinks (this is my understanding), the number 144 should refer to softlinks (1 original + 143 softlinks).
$ ll -i
...
6
votes
1
answer
436
views
The number of links for a folder doesn't reflect the real status?
A question for ls command.
root@cqcloud script]# ls /var/www/html -la
total 36
drwxr-xr-x 9 root root 4096 Aug 31 01:12 .
drwxr-xr-x 7 root root 4096 Aug 31 01:10 ..
drwxr-xr-x 2 root root 4096 ...
0
votes
2
answers
987
views
ls hard link question
I run ls -la on the Volumes directory. It shows the MM dir to have 9 hard links and the Media dir to have 12. If I then cd to the MM directory and run ls -la, it shows only 7 items whereas if I cd to ...