Factor (Unix)

factorOriginal author(s)| Robert Morris,
Ken Thompson
(AT&T Bell Laboratories)

|

Developer(s)| Various open-source and commercial developers
Initial release| 1974; 52 years ago (1974)
Operating system| Unix, Unix-like, Plan 9
Platform| Cross-platform
Type| Command

On Unix, Plan 9, and Unix-like computer systems, factor is a utility for factoring an integer into its prime factors.[1]

## Contents

* 1 History
* 2 Syntax
* 3 References
* 4 External links

## History

factor first appeared on 5th edition Research Unix in 1974, as a "user maintained" utility (section 6 of the manual).[2] In the 7th edition in 1979, it was moved into the main "commands" section of the manual (section 1). From there, the factor utility was copied to all other variants of Unix, including commercial Unixes and BSD. In some variants of Unix, it is classified as a "game" more than a serious utility, and therefore documented in section 6.[3]

A free software version of the factor utility was written for the GNU project by Paul Rubin, in 1986. It is now available on all Linux distributions as part of the GNU Core Utilities. In 2008, GNU factor started to use the GNU MP library for arbitrary-precision arithmetic, allowing it to factor integers of any size, not limited by the machine's native datatypes.

The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.[4]

## Syntax

factor [number]

The command can be used by supplying an integer value. Various projects, including simple ones such as printing prime numbers, are facilitated by using this command.

## References

1. ↑ `factor(1)` – Plan 9 Programmer's Manual, Volume 1
2. ↑ manual page from Fifth Edition Unix (section 6: "user maintained programs")
3. ↑ factor manual page from Sixth Edition Unix (section 6: "user contributed")
4. ↑ "Native Win32 ports of some GNU utilities". http://unxutils.sourceforge.net/.

## External links

* GNU's factor manual page
* FreeBSD's factor man page

* v
* t
* e

Unix command-line interface programs and shell builtins

File system|

* cat
* chmod
* chown
* chgrp
* cksum
* cmp
* cp
* dd
* du
* df
* file
* fuser
* ln
* ls
* mkdir
* mv
* pax
* pwd
* rm
* rmdir
* split
* tee
* touch
* type
* umask

Processes|

* at
* bg
* crontab
* fg
* kill
* nice
* ps
* time

User environment|

* env
* exit
* logname
* mesg
* talk
* tput
* uname
* who
* write

Text processing|

* awk
* basename
* comm
* csplit
* cut
* diff
* dirname
* ed
* ex
* fold
* head
* iconv
* join
* m4
* more
* nl
* paste
* patch
* printf
* sed
* sort
* strings
* tail
* tr
* uniq
* vi
* wc
* xargs

Shell builtins|

* alias
* cd
* echo
* test
* unset
* wait

Searching|

* find
* grep

Documentation|

* man

Software development|

* ar
* ctags
* lex
* make
* nm
* strip
* yacc

Miscellaneous|

* bc
* cal
* expr
* lp
* od
* sleep
* true and false

* Categories
* Standard Unix programs
* Unix SUS2008 utilities
* List

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Factor (Unix). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Software:Factor_(Unix)&oldid=768649"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template