Search This Blog

Tuesday, February 14, 2012

how to remove a file in ubuntu, linux, command to remove a file, romove a file, remove a folder

To remove a file from a folder in Ubuntu use 'rm' command in the terminal. In terminal type 'rm' and after that file name, which you want to delete.

For Example:

If you want to remove 'file_1' use the following command to remove the file.

rm file_1 ( press 'enter' )

To remove a folder from terminal use 'rm -rf ' in the terminal.

For example :

If you want to remove a folder of name "folder_1" use the following command.

rm -rf folder_1 ( press 'enter')

No comments:

Post a Comment