Skip to content

Commit

Permalink
Subject: added 'wget' usage and '-r' flag to scp command
Browse files Browse the repository at this point in the history
Description:
  • Loading branch information
psachin committed Mar 11, 2013
1 parent 0fc94d7 commit f79d616
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions cheat_sheet.org.sh
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ ssh username@ip_address
# Forward X from target to current machine (Get a remote desktop. Somewhat obscure, but very useful):
ssh -X username@ip_address

# Copy files over the network from one machine to another:
scp source_filename:username@ip_address target_filename:target_username@target_ip_address
# Copy files/directory over the network from one machine to another recursively:
scp -r source_filename:username@ip_address target_filename:target_username@target_ip_address

# Copy only changes between files or directories (super efficient way to sync directories, works either locally or with remote servers using username@ip_address:optionalport, just like ssh):
rsync source target
Expand All @@ -281,6 +281,10 @@ iptables -L
# Scan this machine(localhost) to check for open ports:
nmap localhost

# Download file using 'wget' with `debug` option ON. '-c' will
# continue downloading the partially downloaded file
wget -dc http://www.tldp.org/LDP/abs/abs-guide.pdf

***** netcat:

# Listen for input from network on recieving_port, dump it to a file (insecure, but handy):
Expand Down
1 change: 0 additions & 1 deletion to_do.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ anacron
more detail about filesystems
/etc
daemons
wget
curl

0 comments on commit f79d616

Please sign in to comment.