How to delete a file or folders?

FiHow to delete a file or folders?rstly, log in as root. Then go to directory where you want to delete file or folder. 1.To delete file, type this rm 2. To delete folder, type this rm -Rvf Note : You can delete without go to its directory where contain the folder/ file. For example, now you are in /usr folders (type pwd, stands for present work directory– I think, because i forget it =) to make you know where are you know) root@user:/usr# pwd /usr Then, you want to delete file in Desktop, type this root@computername:/usr# rm /home/username/Desktop/ And if you want to delete folder, type this root@computername:/usr# rm /home/username/Desktop/ -Rvf Hope this will useful for you!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s