Unix Files - Quick Look
Computer files are so called because they bear a nodding relation to the old-fashioned manila files people once used to store bits of paper
. Such files had tab markers with headings such as Laundry Bills, 1908-1909, allowing a primitive form of random access. For the moment, you can think of a computer file simply as a place for storing data and programs on your disk. Disk files also have tab markers known as file-names. Groups of files are stored in directories, which also have names. Both you and Unix use these directory and file-names when locating a file and accessing its contents.
A major service offered by Unix and most other operating systems is handling files by name. You usually do not need to be concerned with the physical location or structure of a file-Unix keeps track of these boring details. Your accounts payable data may reside on cylinder 87 starting at sector 102, and it may even move about during processing. All you need to know is the directory name,/usr/payables or whatever, and the file-name, say, ac. payable.
You or your application program may want to access a data file to examine or update its contents. Data or text files normally contain visible, printable characters encoded in ASCII format. You will meet commands that will display or print the contents of a text file by reading a sequence of characters from the disk. There are yet more commands that allow you to write to the disk in order to create and modify text files. You can also copy and rename files, or append one file to another. You can, dare I mention it, all too easily erase (or kill) files.
Multiuser systems need to offer safeguards to prevent users from reading and/or erasing other users files without due authority. Unix has an elaborate scheme of file ownerships and permissions whereby users and groups of users can protect their files. Each file in the system carries read, write and execute permissions those dictate who can do what with a file.
Binary files, unlike text files, which are easily readable by most humans, contain program code in a form understood only by your CPU. Although some groups of characters in binary code may coincide with ASCII characters, printing or displaying a binary file will give you gibberish and may even lock up your printer or terminal.
If you want to run a program, Unix needs to locate it by name. When you enter the command date, for example, Unix looks for a program file called date.Most of the cases, every Unix flavors and Linux flavors has same kind of file type and pattern.
by: Gitesh Trivedi
Physical Therapist Pt Schools- Helping You Become A Great Physical Therapist Gold's Safe-haven Status Is Restored The Advantage Texas Allied Petroleum Has Pure Protein For Athletes Steps To Getting A Great Nights Sleep All About Freight Companies In Australia Who Famed From Chaotic Market How To Live Beneath Your Means (debt Free) Four Forces Making Work Increasingly Dynamic Why Tradesmen Works? Les Astres Influencent Mais Lindividu Dcide Why Must You Spend Money On Pc Cleaning? Every Childs Dream Come True Working Australia Visa For Funding Your Gap Year
www.yloan.com
guest:
register
|
login
|
search
IP(216.73.216.180) California / Anaheim
Processed in 0.016521 second(s), 7 queries
,
Gzip enabled
, discuz 5.5 through PHP 8.3.9 ,
debug code: 12 , 2626, 85,