LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2002, 07:27 PM   #1
canay
LQ Newbie
 
Registered: Jan 2002
Location: Sakarya/TURKEY
Distribution: Red Hat 7.2
Posts: 2

Rep: Reputation: 0
I can't remove file or dir


I can't remove file or dir unless -f parameter in redhat 7.2
for example
#mkdir abc
#rm -r abc
rm: descend into directory `abc'? y
#ls -la
drwxr-xr-x 2 root root 4096 Oca 20 20:24 abc
#

but "rm -rf abc" command (with force) delete it.
it's normal?
 
Old 01-19-2002, 07:32 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Re: I can't remove file or dir

Quote:
Originally posted by canay
I can't remove file or dir unless -f parameter in redhat 7.2
for example
#mkdir abc
#rm -r abc
rm: descend into directory `abc'? y
#ls -la
drwxr-xr-x 2 root root 4096 Oca 20 20:24 abc
#

but "rm -rf abc" command (with force) delete it.
it's normal?
Normally 'rm' should say "descent into directory" and if you enter 'y' (as you did) it should ask you "remove directory abc" (which it didn't).

Try unsetting the rm alias (rm does not ask you for confirmation by default, only if rm is invoked with the -i option. Eventhough you don't type the -i, your redhat may be configured to do that automatically for you).

Type "unalias rm" then try to remove a directory.
 
Old 01-19-2002, 07:44 PM   #3
canay
LQ Newbie
 
Registered: Jan 2002
Location: Sakarya/TURKEY
Distribution: Red Hat 7.2
Posts: 2

Original Poster
Rep: Reputation: 0
haha I'm understand now.
this is very interesting
my redhat language is Turkish
I'm reply for delete question to "y" (yes)
but it require "e"
yes = evet (in Turkish)

thanks to lfslinux for alias remind
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
file/dir structure xemous Linux - Newbie 3 10-04-2004 02:51 AM
restore file or dir from dump file brumela Linux - Newbie 3 09-08-2004 05:31 AM
Need to remove spaces from all file / dir names ?? Solution here! jsjohnst Linux - General 2 07-20-2004 10:39 PM
-bash no such file or dir slackwarefan Slackware 3 06-12-2004 08:49 AM
chown....no such file or dir. Dr.Swing Linux From Scratch 6 10-08-2002 05:42 PM


All times are GMT -5. The time now is 06:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration