~sircmpwn/ctools

ref: 0e9f63c42367ef836a3dbe9369cb987558b0d9e3 ctools/doc/unlink.1.scd -rw-r--r-- 946 bytes
0e9f63c4 — Christopher Vittal Add dirname 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
unlink(1) "ctools"

# NAME

unlink - unlink a file

# SYNOPSIS

*unlink* _file1_

# DESCRIPTION

*unlink* will unlink a file. This removes the directory entry and decrements
the reference count on the inode, reclaiming the disk space if the reference
count is zero (the reference count will be nonzero if a hard link has been made
with *link*(1) or by some other means).

# UNSPECIFIED BEHAVIOR

The POSIX standard does not unambiguously specify the behavior of this command
under certain conditions. Under such conditions, the ctools implementation of
*unlink* behaves as follows:

- If _file1_ is a symbolic link, *unlink* will exit with an error without
  unlinking the file.

# DISCLAIMER

This command is part of ctools and is compatible with POSIX-1.2017, and may
optionally support XSI extensions. This man page is not intended to be a
complete reference, and where it disagrees with the specification, the
specification takes precedence.