update ln, ls, stat man pages for original commands. add link man page.

This commit is contained in:
phil
2019-10-30 01:57:08 -04:00
parent c5c29ec771
commit 1619f46122
4 changed files with 77 additions and 54 deletions
+36
View File
@@ -0,0 +1,36 @@
.oh '11/3/70''LINK(I)'
.ta 18 30
NAME link -- link to a file
.sp
.in 0
SYNOPSIS
.in 8
.ul
link
file
.sp
.ul
link
srcdir file
.sp
.ul
link
srcdir file name
.sp
.in 0
DESCRIPTION
.in 8
With one argument makes a link to file in system directory.
.sp
With two arguments, makes a link to file in srcdir.
.sp
With three arguments, make name a link to file in srcdir.
.sp
.in 0
FILES --
.sp
SEE ALSO ln
.sp
BUGS --
.sp
OWNER ken, dmr
+4 -4
View File
@@ -5,17 +5,17 @@ NAME ln -- link to a file
SYNOPSIS SYNOPSIS
.ul .ul
ln ln
name1 name2 srcdir file ..
.sp .sp
DESCRIPTION ln adds another filename to the first filename DESCRIPTION make links in current dir to named files in srcdir
.sp .sp
FILES -- FILES --
.sp .sp
SEE ALSO -- SEE ALSO link
.sp .sp
DIAGNOSTICS "twofiles" - please provide two filenames DIAGNOSTICS "twofiles" - please provide two filenames
"? file" - unable to make the link "? file" - unable to make the link
.sp .sp
BUGS -- BUGS --
.sp .sp
OWNER wkt OWNER ken, dmr
+10 -15
View File
@@ -2,21 +2,19 @@
.ta 18 21 24 .ta 18 21 24
NAME ls -- list contents of directory NAME ls -- list contents of directory
.sp .sp
SYNOPSIS ls [ -l ] directory SYNOPSIS ls [directory]
.sp .sp
DESCRIPTION DESCRIPTION
.ul .ul
ls ls
lists the contents of the named directory lists the contents of the current,
under control of one option: or named directory.
.sp .sp
l list in long format, giving i-number, .ul
mode, owner, size in words, and name of list
each file. (see lists details in the format of
.ul .ul
stat stat
for format of the
mode). Numeric values are in octal.
.sp .sp
FILES -- FILES --
.sp .sp
@@ -29,16 +27,13 @@ BUGS In a simulated environment, a filename larger
than eight characters will cause than eight characters will cause
.ul .ul
ls ls
to exit to exit prematurely.
prematurely.
.sp .sp
.ul .ul
ls ls
will try to open up a directory named "." if will try to open up a directory named ".." if
no directory is named. If the user desires this no directory is named.
functionality, they need to link "." to the
directory in question.
.sp .sp
OWNER wkt OWNER ken, dmr
+27 -35
View File
@@ -10,52 +10,44 @@ name
DESCRIPTION DESCRIPTION
.ul .ul
stat stat
gives several kinds of information about gives several kinds of information about one file.
one file:
.sp .sp
access mode .nf
number of links i-number
owner flags
size in words owner
name links
size
.sp .sp
All information is self-explanatory except the flag bits are:
mode. The mode is a five-character string whose .nf
characters mean the following: .in 8
40 special file
20 directory
10 read, owner
04 write, owner
02 read, non-owner
01 write, non-owner
.in 8
.sp .sp
1 s: file is small (smaller than 448 words) All values are printed in octal.
l: file is large .in 0
d: file is a directory
.sp
2 r: owner can read
-: owner cannot read
.sp
3 w: owner can write
-: owner cannot write
.sp
4 r: non-owner can read
-: non-owner cannot read
.sp
5 w: non-owner can write
-: non-owner cannot write
.sp
All numeric values are printed in octal.
.sp .sp
FILES -- FILES --
.sp .sp
SEE ALSO SEE ALSO
.in 8
.ul .ul
ls list
with the -l option gives the same information shows all files in a directory in the same format as
as
.ul .ul
stat, stat.
except that it also shows the i-node .in 0
number for each file.
.sp .sp
DIAGNOSTICS "name ?" for any error. "nofiles" if no file DIAGNOSTICS "name ?" for any error. "nofiles" if no file
name is given. name is given.
.sp .sp
BUGS none BUGS none
.sp .sp
OWNER wkt OWNER ken, dmr