'rm' command in linux

 

      rm – removes a file or directory

      Format: rm [options] filename
 
      Eg: rm –i file1

      Here it removes the file file1.Here it prompts whether we are sure to delete the said file  
   
      Eg2:rm –rf /data1

      Here it removes the directory /data1 recursively and forcefully.

  • 31 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...