/usr/share/fish/man/man1/cd.1 is in fish-common 2.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 | .TH "cd" 1 "Sun Dec 11 2016" "Version 2.4.0" "fish" \" -*- nroff -*-
.ad l
.nh
.SH NAME
\fBcd\fP -- change directory
.PP
.SS "Synopsis"
.PP
.nf
\fBcd\fP [DIRECTORY]
.fi
.PP
.SS "Description"
\fCcd\fP changes the current working directory\&.
.PP
If \fCDIRECTORY\fP is supplied, it will become the new directory\&. If no parameter is given, the contents of the \fCHOME\fP environment variable will be used\&.
.PP
If \fCDIRECTORY\fP is a relative path, the paths found in the \fCCDPATH\fP environment variable array will be tried as prefixes for the specified path\&.
.PP
Note that the shell will attempt to change directory without requiring \fCcd\fP if the name of a directory is provided (starting with \fC\&.\fP, \fC/\fP or \fC~\fP, or ending with \fC/\fP)\&.
.PP
Fish also ships a wrapper function around the builtin \fCcd\fP that understands \fCcd -\fP as changing to the previous directory\&. See also \fC\fCprevd\fP\fP\&. This wrapper function maintains a history of the 25 most recently visited directories in the \fC$dirprev\fP and \fC$dirnext\fP global variables\&.
.SS "Examples"
.PP
.nf
\fBcd\fP
changes the working directory to your home directory\&.
.fi
.PP
.PP
.PP
.nf
\fBcd\fP /usr/src/fish-shell
changes the working directory to /usr/src/fish-shell
.fi
.PP
|