Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 04-22-2006, 02:27 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
values of bytes in regular files?

I am unsure of the wording of this question.
Could someone reword it so I could understand it better?
what values can the bytes within each regular file have?
(i reworded it to make more sense, but i know there are different types of regular files, eg. text files, binary files.)... but i am unsure of the "bytes" thing.
Old 04-22-2006, 02:39 AM   #2
Registered: Jul 2004
Location: Chennai, India
Distribution: UBUNTU 5.10 since Jul-18,2006 on Intel 820 DC
Posts: 877

Rep: Reputation: 208Reputation: 208Reputation: 208
In hex : 20 to 7F and "\n".

In numeric : 32 to 127 and "\n".

By regular file I expect that you mean POTF (plain old text files) with readable charactes.

Old 04-22-2006, 02:41 AM   #3
LQ Newbie
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
I am new to Linux,
what exactly does:
In numeric : 32 to 127 and "\n"

(sorry i am very very new)
Old 04-22-2006, 08:25 AM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
The question is still a bit unclear.

A byte is 8 bits, and can therefore have any value between 0 and 255 decimal (2^8-1)

In a text file, the byte values are assigned to characters. Here is a link to a table:

Note that some ascii values are control characters--ie they trigger some action on a terminal--as opposed to causing text to be printed.
Old 04-22-2006, 07:05 PM   #5
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 30
/n was an example of an escape character. It means new line. so if i were to tell a program to print "hello /n world" it would look like this:
other characters include // and /t


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding values of 2 files lluciano Programming 1 01-20-2006 02:57 PM
Can't create files bigger than 0 bytes GameboyHippo Linux - General 1 03-01-2005 08:04 PM
Samba truncating files to 0 bytes KimVette Linux - Networking 6 01-30-2005 06:42 PM
What are the right values for zone files. jolly Linux - General 0 05-06-2003 12:07 PM
bits and bytes and files basics question Bert Linux - Software 2 01-16-2003 08:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration