Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2007 12:15:56 -0800 (PST)
From:      youshi10@u.washington.edu
To:        freebsd-questions@freebsd.org
Subject:   Re: SCP & Delete
Message-ID:  <Pine.LNX.4.43.0702061215560.1228@hymn05.u.washington.edu>
In-Reply-To: <005401c74a2b$30361b90$0300020a@mickey>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 Feb 2007, Don O'Neil wrote:

> How do I delete a file after I've copied it with SCP? Is there some sort of
> secure 'rm' command?

ssh allows you to execute many commands, one being rm. Example:

ssh username@host "rm /full/path/to/file";

There's also gftp which can use ssh / sftp if you like GUI.

-Garrett




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.43.0702061215560.1228>