Re: How to remove a non-empty directory

2004-03-02 Thread Stephen Liu
Hi Jerry and other folks,

Lot of thanks for your advice on the captioned question and time spent.  I 
learn an alternative in removing a non-empty directory.

mc/midnight commander is a small program.  It moves and removes/deletes 
directory including sub-directories and files at the same.  It also has 
editing capability.  It is a small and handy tool.  I have it installed from 
'PORT'.

B.R.
Stephen

On Tuesday 02 March 2004 22:28, Jerry McAllister wrote:
> > Hi all folks,
> >
> > Kindly advise where can I find the small program 'midnight commander' for
> > FreeBSD.  OR what command line shall be applied on FBSD to remove a
> > non-empty directory together with its content
>
> I have never tried anything called midnight commander, but you might
> check in the ports collection.   If you installed the skeleton like
> you should have, go to /usr/ports and start looking around.
>
> As for removing a non-empty directory:
>
>  rm -r dirname
>
> I normally cd to the dir's parent (just above it) and do a couple
> of checks of where I am and what I am rm-ing before actually doing
> it, because once you hit enter it is gone.
>
> If you happen to have any files in that directory tree with flags
> set, especially schg, then it will not remove those, but will all
> the others.   Then you would have to go in and run chflags noschg on
> those files and then go back out and run the rm -r again.
> It will ask you if it is OK to remove those files and act like it
> did, but it won't.kernel is one of those files that normally
> have schg set on it.   see man chflags
>
> jerry
>
> > TIA
> >
> > B.R.
> > satimis
> >
> > ___
> > [EMAIL PROTECTED] mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a non-empty directory

2004-03-02 Thread Jerry McAllister
> 
> Hi all folks,
> 
> Kindly advise where can I find the small program 'midnight commander' for 
> FreeBSD.  OR what command line shall be applied on FBSD to remove a non-empty 
> directory together with its content

I have never tried anything called midnight commander, but you might 
check in the ports collection.   If you installed the skeleton like
you should have, go to /usr/ports and start looking around.   

As for removing a non-empty directory:

 rm -r dirname

I normally cd to the dir's parent (just above it) and do a couple
of checks of where I am and what I am rm-ing before actually doing
it, because once you hit enter it is gone.

If you happen to have any files in that directory tree with flags
set, especially schg, then it will not remove those, but will all
the others.   Then you would have to go in and run chflags noschg on
those files and then go back out and run the rm -r again.
It will ask you if it is OK to remove those files and act like it
did, but it won't.kernel is one of those files that normally
have schg set on it.   see man chflags

jerry

> 
> TIA
> 
> B.R.
> satimis
> 
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a non-empty directory

2004-03-02 Thread rfa
> Hi all folks,
>
> Kindly advise where can I find the small program 'midnight commander' for
> FreeBSD.  OR what command line shall be applied on FBSD to remove a
> non-empty
> directory together with its content
>
> TIA
>
> B.R.
> satimis
>
try this:
#cd /usr/ports
#make search name = mc | more
[you will find all the ports with mc in them]
then you will know that mc is in
#cd /usr/ports/misc/mc && make all install clean

rm -r for your previous question.  thats dangerous though be sure to type
carefully when doing this command.








___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a non-empty directory

2004-03-01 Thread Quintin Riis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
You have the ports tree installed, yes?  It contains makefiles for over
ten thousand applications.  Try
# cd /usr/ports/
# make search key=midnight
Also, read the manual pages and the handbook before asking questions,
please.  `man rm' should help you.
Stephen Liu wrote:

| Hi all folks,
|
| Kindly advise where can I find the small program 'midnight commander' for
| FreeBSD.  OR what command line shall be applied on FBSD to remove a
non-empty
| directory together with its content
|
| TIA
|
| B.R.
| satimis
|
| ___
| [EMAIL PROTECTED] mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
|
|
|
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFARDRNkt6kXuDr+LcRAuZZAJ49JP8C0b1LxCgZyaS3WWAINkvj1gCePglf
qT5/GyI4N+Bygc4nMnB6yy4=
=J3vy
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: How to remove a non-empty directory

2004-03-01 Thread fbsd_user
  rm -RF  /directory name

Be very careful you get the path correct, people have wiped their
whole slice using this command. You are warned.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stephen Liu
Sent: Tuesday, March 02, 2004 9:21 AM
To: [EMAIL PROTECTED]
Subject: How to remove a non-empty directory

Hi all folks,

Kindly advise where can I find the small program 'midnight
commander' for
FreeBSD.  OR what command line shall be applied on FBSD to remove a
non-empty
directory together with its content

TIA

B.R.
satimis

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a non-empty directory

2004-03-01 Thread Chris Pressey
On Tue, 2 Mar 2004 22:21:24 +0800
Stephen Liu <[EMAIL PROTECTED]> wrote:

> Hi all folks,
> 
> Kindly advise where can I find the small program 'midnight commander'
> for FreeBSD.

/usr/ports/misc/mc

> OR what command line shall be applied on FBSD to remove a non-empty 
> directory together with its content

rm -rf dirname

-Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to remove a non-empty directory

2004-03-01 Thread Dan Peck
Midnight Commander is available in the ports tree under the subdirectory 
misc/mc (probably /usr/ports/misc/mc)

Or you can add the -r (think recursive) option to rm and it will attempt to 
remove the heirarchy, prompting for your ok at each direcotry.  Adding -f 
(think forced) makes rm do this without asking, which could be dangerous.

-Dan Peck
[EMAIL PROTECTED]

On Tuesday 02 March 2004 09:21 am, Stephen Liu wrote:
> Hi all folks,
>
> Kindly advise where can I find the small program 'midnight commander' for
> FreeBSD.  OR what command line shall be applied on FBSD to remove a
> non-empty directory together with its content
>
> TIA
>
> B.R.
> satimis
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"