How can I remove the banner while you perform scp to another server?
I've been tried the -q
option but it only remove the transfer bar, I've tried the same option using ssh
and it's working without any issues.
scp -q "file" ip_address:/directory/To/Copy
any idea?
In general you can suppress the standard output of a command, by redirecting it to /dev/null
:
scp -q "file" ip_address:/directory/To/Copy > /dev/null
If you also want to suppress messages printed to stderr
, you run
scp -q "file" ip_address:/directory/To/Copy > /dev/null 2>&1