LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ha ha i forgot command how to delete file (https://www.linuxquestions.org/questions/linux-general-1/ha-ha-i-forgot-command-how-to-delete-file-21076/)

tarak4u 05-15-2002 11:32 PM

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

neo77777 05-15-2002 11:36 PM

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

trickykid 05-16-2002 01:14 AM

also to add to this, rmdir will remove a directory.

man rmdir
man rm
for all available options.


All times are GMT -5. The time now is 05:54 PM.