Skip to content

How to remove a file or folder in Linux Server

Hey there thank you for visiting here so mainly you need to login to your terminal for taking any kind of action.

Secondly suppose you have a file/folder called test.png or /test (Directory) simply type rm -rf test.png to delete that file same thing should be for folders as well.

Suppose in your home folder there is a file called test.png then

  1. We should type cd /home to go to that home directory
  2. We need to type ls to see the lists of files and folders then if you see test.png is there
  3. rm -rf test.png

This is StarLicense official blog page

Star License (SLS)

Share this post on social