Re: Cannot display /etc/fstab
From: Greg M Lee (greg_at_ncs.co.nz)
Date: 06/24/05
- Previous message: Moe Trin: "Re: Simple command line network monitor"
- In reply to: cody: "Re: Cannot display /etc/fstab"
- Next in thread: Gordon: "Re: Cannot display /etc/fstab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Jun 2005 12:59:10 +1200
cody wrote:
>>>The funny thing is that I now opened the file from texteditor by starting
>>>the texteditor and chose "file open" and it worked. Then I found a label
>>>name in fstab which contained lots of special chars which couldn't
>>>properly
>>
>>>displayed. Then I removed those special chars and replaced it with a valid
>>>identifier. After I saved the file it had a normal icon like most other
>>>files in /etc and I now could open it with the texteditor without
>>>problems.
>>>
>>>That means that a file which contains special chars/binary content is
>>>treatet differenct by the GUI. But how does that work? Does the GUI scan
>>
>>the
>>
>>>contents *all* files in a folder to determine which icon it shall display
>>>for each one?
>>
>>Something that took me a while to get is that RH does not depend on the
>>file
>>extension to tell it what sort of a file it is. I found this out with jpg
>>files ... RH had no problem working out what they were ... but when I
>>transferred them to a windows box, it spat the dummy :)
>>
>>.. so I think the answer to your question is probably ... yes, that's
>>exactly what it does :)
>
>
> And I always though only Windows would do such funny things.
> I will try and add a link to /mnt/floppy/somefile in a folder and see
> wheather the OS always tries to access the floppy when I open the folder..
> What if I have a 10GB file in a folder? Does the OS scan the whole file to
> determine wheather is is ascii or binary??
> Oh dear..
As far as know it doesn't
See: man file
-Greg
- Previous message: Moe Trin: "Re: Simple command line network monitor"
- In reply to: cody: "Re: Cannot display /etc/fstab"
- Next in thread: Gordon: "Re: Cannot display /etc/fstab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|