Useful Linux Commands - Part XVXVI
Useful Linux Commands - Part XVXVI
# Network Monitor
netstat
***** netcat:
# Listen for input from network on recieving_port, dump it to a file (insecure, but
handy):
netcat -l recieving_port > file_copied
# Pipe the output of a command to a target ip and port over the network:
command | netcat -w number_of_seconds_before_timeout target_ip target_port
# Use tar to compress and output a file as a stream, pipe it to a target ip and
port over the network:
sudo tar -czf - filename | netcat -w number_of_seconds_before_timeout target_ip
target_port
# Change privileges over file or directory (see man page for details.)
chmod