Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 12-18-2010, 12:29 PM   #1
LQ Newbie
Registered: Nov 2010
Posts: 3

Rep: Reputation: 0
Post Deleting a file from root

Hi I had copied oracle setup in the root. Now want to delete it.
I tried the following commands, but couldn't succeed:

rm -R oracle-xe-univ-
rm: cannot remove `oracle-xe-univ-': No such file or directory

while this file there only in file system.
Please help.
Old 12-18-2010, 12:29 PM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to be in the same directory as the file, or give the full path to it. Also make sure you're typing the name correctly (be aware that case sensitivity is important) - really, use tab completion to help avoid such problems.

Edit: also, -R is only going to be useful when used to remove directories.

Last edited by Nylex; 12-18-2010 at 12:31 PM.
Old 12-18-2010, 02:34 PM   #3
LQ 5k Club
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Originally Posted by Nylex View Post
use tab completion
Tab completion is when you type the first few characters of a filename, and bash automatically figures out which one you want when you press tab.

For example, you're in a directory with two files, "fileone" and "anotherfilewithalongname". You and just type "a", hit Tab, and bash will complete the rest of the name.


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
script for deleting matched line of a file from another file $Arsh Linux - Newbie 2 09-03-2009 08:38 AM
Prevent root from deleting files on network mounts bobwall Linux - Server 9 08-28-2008 08:31 PM
Accidentally deleting crontab for root yuchai Slackware 3 08-08-2008 02:28 PM
Deleting a file created by root statman Linux - Security 2 06-17-2005 11:22 AM
deleting root users lxandrthegr8 Linux - General 3 09-06-2003 01:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

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