LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 01-21-2006, 06:34 AM   #1
sahel
LQ Newbie
 
Registered: Dec 2005
Posts: 21

Rep: Reputation: 15
removing file


How can i remove a file??
 
Old 01-21-2006, 07:15 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,154

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
Use the rm command from the command line. Enter man rm or info rm for details.

Note that the command man -k search_for or info --apropos search_for will usually list all entries for commands (and subroutines) with "search_for" (where, of course, "search_for" is what you're interested in finding) in their keyword list.

If you're using the KDE windowing system, start the Konqueror command, set the "view" option to "File Management," highlight the file and type <shift>-<delete> to delete the file, or right-click on it and then on the option to send it to the "trash" can. If you're using GNOME, there is a similar option in Nautilus.

If your problem is that these commands don't work for the file, perhaps you don't have permission to delete it. In order to delete a file, you most either own the file or have write permission to it. Look at the chmod or chown commands for information about changing ownership, or the "permissions" of the file in either konqueror or nautilus.

Edit: I just noticed that your question was in the "Programming" forum. If you're asking about removing a file from within a program, it, of course, depends on the specific programming language you're using. So, if this is the case, tell us which language you're using (or read the language manual) for specific help.

Last edited by PTrenholme; 01-21-2006 at 07:23 AM.
 
  


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
k3b Converts fila names zirtik Linux - Software 1 12-08-2005 08:57 PM
Help removing Pr0metheus Slackware 11 03-19-2005 06:19 PM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 09:16 AM
Removing Kernel Rv5 Linux - General 4 02-07-2004 10:21 AM
removing apache disinformation Slackware 8 01-28-2004 10:22 AM


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