rm command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjay123456
    New Member
    • Sep 2006
    • 125

    rm command

    Dear friend

    plz Tell me that how i deleate all file and subdir and their file by rm command

    in to single ENTER

    when i using rm -r sanjay
    shell ask confrmation that weather it deleate or not

    sanjay
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by sanjay123456
    Dear friend

    plz Tell me that how i deleate all file and subdir and their file by rm command

    in to single ENTER

    when i using rm -r sanjay
    shell ask confrmation that weather it deleate or not

    sanjay
    If you don't want the shell to ask for confirmation, you would use:
    Code:
    % rm -rf sanjay
    and it will quietly delete the entire thing.

    Comment

    • sanjay123456
      New Member
      • Sep 2006
      • 125

      #3
      Dear Motoma

      thx for quick reply thats gr8

      sanjay

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by sanjay123456
        Dear Motoma

        thx for quick reply thats gr8

        sanjay
        No problem, glad I could help.

        Comment

        Working...