Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Help with deleting a file from scp shell

Discussion in 'Data Protection' started by shanit, Dec 20, 2005.

  1. shanit

    shanit Well-Known Member

    Joined:
    Dec 18, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    I need to get a file deleted from scp in shell, I started a back up file and it failed, well it was over a gig and only about 700 mb got transferred, and the back up wont let me delete it when i attempt to delete it refreshes and then its still there

    i am using penguinet for my ssh client
    when i go to quick connect i hit scp and it loads a ftp looking client and well i go to the home directory and where all the users files are, and the backup is in there.

    I'm at a loss on this

    is there a way to delete a file from ssh

    Thanks
    Shannon
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,051
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Earth
    To delete files and directories from shell :-
    Login to the server :-
    To delete a file :- rm -f /path/to/the/file
    To delete a dir :- rm -rf /path/to/a/directory
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    166
    Hello,

    Please inform us how you are trying to delete the directory or file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice