DCHECK(1M)DCHECK(1M)NAME
dcheck - file system directory consistency check
SYNOPSIS
dcheck [ -i numbers ] [ filesystem ]
DESCRIPTION
Dcheck reads the directories in a file system and compares the link-count in each i-node with the number of directory entries by which it
is referenced. If the file system is not specified, a set of default file systems is checked.
The -i flag is followed by a list of i-numbers; when one of those i-numbers turns up in a directory, the number, the i-number of the direc-
tory, and the name of the entry are reported.
The program is fastest if the raw version of the special file is used, since the i-list is read in large chunks.
FILES
Default file systems vary with installation.
SEE ALSO icheck(1), filsys(5), clri(1), ncheck(1)DIAGNOSTICS
When a file turns up for which the link-count and the number of directory entries disagree, the relevant facts are reported. Allocated
files which have 0 link-count and no entries are also listed. The only dangerous situation occurs when there are more entries than links;
if entries are removed, so the link-count drops to 0, the remaining entries point to thin air. They should be removed. When there are
more links than entries, or there is an allocated file with neither links nor entries, some disk space may be lost but the situation will
not degenerate.
BUGS
Since dcheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems.
DCHECK(1M)
Check Out this Related Man Page
DCHECK(8) System Manager's Manual DCHECK(8)NAME
dcheck - file system directory consistency check
SYNOPSIS
dcheck [ -i numbers ] [ filesystem ]
DESCRIPTION
Dcheck reads the directories in a file system and compares the link-count in each i-node with the number of directory entries by which it
is referenced. If the file system is not specified, a set of default file systems is checked.
The -i flag is followed by a list of i-numbers; when one of those i-numbers turns up in a directory, the number, the i-number of the direc-
tory, and the name of the entry are reported.
The program is fastest if the raw version of the special file is used, since the i-list is read in large chunks.
SEE ALSO filsys(5), clri(8), fsck(8), icheck(8), ncheck(8)DIAGNOSTICS
When a file turns up for which the link-count and the number of directory entries disagree, the relevant facts are reported. Allocated
files which have 0 link-count and no entries are also listed. The only dangerous situation occurs when there are more entries than links;
if entries are removed, so the link-count drops to 0, the remaining entries point to thin air. They should be removed. When there are
more links than entries, or there is an allocated file with neither links nor entries, some disk space may be lost but the situation will
not degenerate.
BUGS
Since dcheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems. Default file sys-
tems vary with installation so dcheck should use fstab(5).
3rd Berkeley DistributionDCHECK(8)
How would one find and list all links in a file system? My situation is
that I built several servers for disaster recovery, mirror images of
several servers in our main location. Instead of doing a "ls -l" on every
file system down the /usr structor to verify that I have all the necessary
links... (3 Replies)
Hi,
I have a file containing a list of entries.
Want to do ls on them.
for a in `cat <list.txt>`; do ls $a; done;
Now some entries contain spaces.
How do i incorporate space in $a.
Quoting $a in "" doesn't help.
Thanks (6 Replies)
I am new to shell programming. Can anyone help me out with anyone of these?
Display a count of the number of regular files, the number of symbolic links, the number of sub-directories, the number of block-special files, and the number of character-special files in the directory.
I don't... (4 Replies)
I have a text file that contains numbers (listed from the smallest to the largest).
For ex.
34
817
1145
1645
1759
1761
3368
3529
4311
4681
5187
5193
5199
5417
5682
.
. (5 Replies)
Guys I am having a problem with being able to do a count of entries in a file. What I am trying to get a count of the total number of members that are listed in the files. So I need to pull the number of the lines after members. I tried using sed but it only seems to count the first... (7 Replies)
Legends,
Please help me out to come out of below situation.
I have a file ABC.txt with the following entries. (example below. actual entries are more than 200 lines)
PM3_fun
PM4_fun
FIMr_mrg ... (5 Replies)
Hi, what happened is we want to count all the files in a directory and inside this directory got many folders and so take long time to count it. Already run for about few minutes but still not done. The command we use to count is find . -type f | wc -l
Just wondering if there is any other... (9 Replies)
I have to compare 2 files which means 2 files with common entries in same column and separate those common entries in a diferent file as well right before those entries common so that I can separat common and Uncommon entries in rows in 2 different files. Is it possible
For eg.
one file
... (3 Replies)
Hi
I have a file with numerous entries some entries are
1 mani
2 kavya
3 N/A
4 Praveeen
5 N/A
and so on
How to remove entries with N/A so the result will be
1 mani
2 kavya
3 Praveeen (6 Replies)
I have two files that contain overlapping positions. i want to put them together each overlapping entries in both files in to a new file (the entries of first file first and the entries of second file next) followed by blank line then next overlapping entries and so on.
input1
chr1 22 ... (10 Replies)