Question On .RM Files
Execute permission is needed on a directory to be able to cd into it (that is, to make some directory your current working directory). I've corrected my answer. –Gilles Aug 18 '16 at 21:53 add a comment| up vote 10 down vote Either change the dotglob option of your shell and use *, or use What is the difference between a hard link and a file Can a wizard cast Shield using a higher level spell slot? Any attempt to execute a file (a program or a script) requires execute permission... http://robotadv.com/question-on/question-on-ram-mhz.html
Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... lemondrop, Aug 11, 2004 #2 hegu Thread Starter Joined: Aug 11, 2004 Messages: 2 Thank you lemondrop! I am writing shell script and use rm function, but it asks "remove regular file?" and I really don't need this. It is a .RM file.
I usually just prefix the entire command I want to run with echo to see what arguments will bash give to the command (how it expands the wildcards and which files How do we evaluate a candidate who would not speak to any women during the interview process? Can we build a world in 1,000 years? How can you answer yes to all questions?
Log in or Sign up Tech Support Guy Home Forums > Software & Hardware > Multimedia > Computer problem? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the While I use yes n | rm file.txt, it actually removes the file even though the file is right protected. –iammilind Dec 8 '15 at 6:07 add a comment| up vote The time now is 13:15.
Notice that this won't list contents of recursively found files with -r but you will see the directory it wants to destroy. Why would Patent Terms be extended to centuries? Yes, my password is: Forgot your password? linux shell share|improve this question asked Oct 12 '11 at 19:28 hey 50341121 migrated from stackoverflow.com Oct 12 '11 at 20:18 This question came from our site for professional and enthusiast
Oddba11 replied Feb 22, 2017 at 12:59 PM 4 Word Story continued (#6) Gr3iz replied Feb 22, 2017 at 12:57 PM Loading... No, create an account now. Loading... Lifespan puzzle How did I end up with this FizzBuzz?
Here's a reference which explains the permissions model more clearly than I ever could: Any attempt to access a file's data requires read permission. My animals have gone missing Famous phrase for something which is forbidden or impossible, but can be done if desired enough Learn Mathematica (Wolfram) Language in one day If a matrix It won't have permissions to delete anything so it will simply complain about it. Simple, and verifiable.
Validate input that maps int to enum Knights and knaves in Landilandia Is it true that a certain book of the Tanach was rewritten because it was lost? "Shipping address is his comment is here plus, I have no idea what the retarded bash scripts I write may or may not do –Magnus Sep 19 '12 at 16:27 | show 8 more comments up vote 46 Statistics 634 visitors over the past 5 minutes Newest guides How to get started with youtube-dl from the co... more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed
Please start a New Thread if you're having a similar issue.View our Welcome Guide to learn how to use this site. share|improve this answer edited Feb 25 '15 at 16:07 answered Feb 25 '15 at 12:18 daw 1011 That may have solved your problem but it does not answer the Thanks! –Jake Wilson May 28 '13 at 4:13 2 But what if I only want to delete the hidden files? –CMCDragonkai Jun 1 '14 at 13:52 @CMCDragonkai that http://robotadv.com/question-on/question-on-sli.html If you're not already familiar with forums, watch our Welcome Guide to get started.
How can I build a door to repel a horde of zombies? How can I help a player who is horribly afraid of character death? error up vote 39 down vote favorite 18 rm -rf /some/path/* deletes all non-hidden files in that dir (and subdirs).
Our website is made possible by displaying online advertisements to our visitors.
All rights reserved. Can we build a world in 1,000 years? Use -- for protection from runaway flags. Not the answer you're looking for?
The half-assed solution is to distribute your own version of rm, with a known implementation, along with a known-good wrapper for that version. Help! thankx in advance Quote + Reply to Thread Quick Navigation Video Conversion Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Video Latest Video News http://robotadv.com/question-on/question-on-hub.html For example: e.g. $ cd /tmp $ touch immutable-file $ sudo chattr +i immutable-file $ rm -f immutable-file rm: remove write-protected regular empty file `immutable-file'?
How can I transition a square duct to round of the same outer size? This of course means that for the -r flag to work, you need to put it before --. If the others permissions of your files don't include write permission (they usually don't unless you specifically want that), you can just login as the other user (su dummy) and do Moraru 2,77811619 1 I found this to be the more comprehensive and helpful answer, over and above the answer that was marked as Accepted. –inspirednz Aug 20 '16 at 1:58
PS - I added a comment to the selected answer about a function & unset –Xen2050 Feb 25 '15 at 14:12 Yes, /bin/rm works. Not the answer you're looking for? Hot Network Questions Would introducing a healing wand break the game? Two people have suggested rm -i, which I don't think does what you want. –Faheem Mitha Mar 18 '14 at 22:35 The answers suggesting the -i flag are the
If using the -r option, call find to traverse the directories recursively: find