LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2004, 03:15 PM   #1
meeh
LQ Newbie
 
Registered: Jan 2003
Distribution: Red Hat 8
Posts: 13

Rep: Reputation: 0
couple of quick questions, please help!


Hi, just had a couple of linux questions.

1. How do i set a directory so that when others create files/directories under it gets the same rights. Do i use chmod +s or something? Like if a file gets deleted from that directory, when it gets recreated it would have the same permissions.

2. Is there a command I can run to tell if a file is open/inuse?

Thanks!!!
 
Old 03-16-2004, 03:19 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
2. 'lsof'. Use grep with it because it's pretty long.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Couple quick questions th3_tr00p3r Linux - Newbie 4 08-10-2005 11:06 PM
couple quick slack questions.... Basslord1124 Slackware 6 03-16-2005 11:49 AM
A couple of quick questions. Billy|B-A Slackware 5 01-29-2005 08:59 PM
Couple of quick questions Danno13 Red Hat 8 09-24-2004 05:43 PM
couple quick questions Marcos Van Linux - Newbie 3 05-07-2003 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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