Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 15
removing file

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

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
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 06:23 AM.


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 07:57 PM
Help removing Pr0metheus Slackware 11 03-19-2005 05:19 PM
Removing files wihtout removing containing Direcotry caps_phisto Linux - General 2 10-07-2004 08:16 AM
Removing Kernel Rv5 Linux - General 4 02-07-2004 09:21 AM
removing apache disinformation Slackware 8 01-28-2004 09:22 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:52 PM.

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