Aboout "with very long lines",how long is very long?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Aboout "with very long lines",how long is very long?
E.X:
file somefile.x
output is [...ASCII text, with very long lines]
I want to know how many bytes per line is very long line.
Is the number depend on the different computer or system setting ?
or all the linux have a same define to "very long line".
ps:sorry about my english. I hope you can understand it.
I want to know how many bytes per line is very long line.
Is the number depend on the different computer or system setting ?
or all the linux have a same define to "very long line".
ps:sorry about my english. I hope you can understand it.
A long line is defined by the number of characters on the display device. If you have a monitor that can display 80 characters per line, then a line longer than 80 characters will scroll to the next line below. Very long lines can be difficult to read.
Imagine how it would look if viewed on a phone or other smaller resolution display device.
There is no limit to the number of charcaters in an ASCII file, the file can be as large as you want, limited by the
space on your hard drive.
The number of bytes per line depends on the length of your line, so a single ASCII character like "A" is one byte,
however when stored as a file may occupy slightly more space depending on the filesystem and number of inodes, hope that helps.
If you have on mind exactly command "file" than you can look into source of this program, and for example in Ubuntu, you see in file "ascmagic.c" that this is defined as 300 bytes. But it depends who compiled that file as everybody / organization can change it.
If you see that "very long lines" bit you might suspect that the file is not really ascii text, or is but in a special format.
I run into data files daily that are reported that way. (ISAM, DBC txt files)
Take that report with a grain of salt. It is sometimes exactly correct.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.