Ask Your Question
0

What is the use of LF in a Unix file?

asked 2017-06-09 06:40:38 -0600

Aclan87 gravatar image

I have frequently heard about LF in the context of *nix files. Can somebody please explain to me why it is used?

edit retag flag offensive close merge delete

Comments

Check this article, see if it clears up the reasoning for LF. https://www.redhat.com/archives/redha...

SteveEbey73701 gravatar imageSteveEbey73701 ( 2017-06-09 07:49:59 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-20 03:59:31 -0600

Mike Aldin gravatar image

LF(Line Feed) allows the cursor move to next line without returning to begin on the line. This character is used as a new line char in Unix based system.

Char: (0x0A, \n)

Line Feed (Linux, MAC OSX)

LF = \n = ASCII code 10

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-09 06:40:38 -0600

Seen: 59 times

Last updated: Jun 09 '17