nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Open file in linux

This is a discussion on Open file in linux within the Linux software forums, part of the Linux Getting Started category; what is open file in linux does it create problems for the OS can anyone please explain . Thanks in ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Linux answers from nixCraft.


Linux software General questions and discussion about Redhat/Fedora Core/Cent OS, Debian and Ubuntu Linux related to softwares should go here.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2008, 07:06 PM
Junior Member
User
 
Join Date: Sep 2007
Location: Mumbai
OS: Redhat/Solaris
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
amsreeku is on a distinguished road
Default Open file in linux

what is open file in linux does it create problems for the OS can anyone please explain .

Thanks in advance
__________________
Shrikumar
Reply With Quote
  #2 (permalink)  
Old 24-03-2008, 06:41 PM
Member
User
 
Join Date: Mar 2008
OS: Debian, Slackware, LFS
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 2
Tux-Idiot is on a distinguished road
Talking to be or not to be (question/post)

"open file" let me guess you are trying to ask this, am i right?
"what is an open file?"
and
"what does open files do?"
and
"are open files good/bad/ugly?"

so i am also trying to answer these questions based on what i know and learnt, which is obviously less and minute, but here i go with the try.
open file can be either a thread or a process or just simply a file which you are editing now. viz. if you are running apache? then httpd.conf is a file which is triggered by sockets and process and forks and threads and io and stacks and et al many more. (please refer to kernel docs, this is IMHO kernel specific question, linux standardbase and linux filesystems docs are ideal wrt this post).
thus apache which is triggered of via httpd.conf spins and forks up other process.
and if they are process or threads they will open files which run the files or process and subprocess or threads of the parent. pid 1 forks into N number of subprocess and threads. pid 1 is the system init process and is same with all *nix and linux OS even M$ windows, infact any and every OS including the asm based OS. i think thats a very short microscopic rather atomic level answer to the first requestioned question. there are books on filesystem.
BSD - design and implementation of 4.4 BSD (not just the freebsd specific edition) please read those for more info.


2nd question: whats their role. simple they run and monitor and execute process and processess and sub sub sub blah blah they in short run the entire PC or mainframe or anything else. viz /dev/mem will list all the minute details of how RAM is allocating how much memory to what process and also other statistics. this is also a micro atomic level answer to this question. read the books for more info.

3 rd question: is it good/bad/ugly. this is like a mirror on the wall statement. some files are good rather essential, like init which is spanned off ram upon start and when BIOS hands off the memory from RAM to linux or *nix or BSD or windows et al OS. bad? when things screw up, it can have minimal to disaster effects. and ugly? hehe rootkits and other IDS attack and sshmitm and mitm attacks. compromising everything. security is a myth, and its always broken and is breakable.


did i answer your question properly? if i did? order me a pizza. food! mmmmmmmm!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to rename a file in Linux raj Linux software 0 22-04-2008 02:00 AM
how to open an pdf file(.pdf) in terminal chandrasekar Getting started tutorials 1 27-03-2008 12:41 AM
AIX /etc/security/user like file for Linux ftengcheng Getting started tutorials 4 25-03-2008 01:28 AM
Open outlook 2003 .pst file on linux sweta Linux software 0 11-07-2007 05:35 AM
Howto verify linux open port nixcraft Getting started tutorials 0 18-05-2007 01:49 AM


All times are GMT +5.5. The time now is 05:31 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38