Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 05-16-2002, 12:32 AM   #1
Registered: Feb 2002
Location: ahmedabad, india
Distribution: can't get in
Posts: 61

Rep: Reputation: 15
Talking ha ha i forgot command how to delete file

It's look like funny i had installed Redhat on my pc and i forgot the command to delete a file.and another thing is that how to create a new file and i like to write some chracter and like to save with a particular name please ....... help me for this
Old 05-16-2002, 12:36 AM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
to delete a file use
rm -f filename
to create an empty file issue
touch filename
then you can open it and write whatever you want
also you can create an empty file and start editing it right away with any text editor, for instance vi
vi filename
Old 05-16-2002, 02:14 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 260Reputation: 260Reputation: 260
also to add to this, rmdir will remove a directory.

man rmdir
man rm
for all available options.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
forgot the wireless config command... ronsha Linux - Wireless Networking 5 11-18-2005 06:49 PM
What is the command to delete a file in linux terminal anindyanuri Linux - Software 10 02-17-2005 08:33 PM
forgot an innit command syntax, used instead of rebooting mipia Linux - Newbie 3 05-02-2004 12:46 PM
Tried to delete file as root but it says I don't have permission to delete it! beejayzed Mandriva 23 03-12-2004 03:46 AM
I forgot how to ungzip a .tar.gz file..... bripage Linux - Newbie 2 09-22-2002 07:53 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:17 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
Open Source Consulting | Domain Registration