john

copy
0
0
rsync --partial --progress --rsh=ssh user@host:/path/remote_file local_fileresume a partially transfered scp file

7 years, 3 months ago john 0 | details |

copy
4
0
chmod +x script.shMake Script.sh executable

7 years, 3 months ago john 0 | details |

copy
14
0
chmod -R 700 ~/.sshMake the .ssh directory only accessible to $USER

7 years, 3 months ago john 0 | details |

copy
1
0
tcpdump -nSsee the basics without many options

7 years, 3 months ago john 0 | details |

copy
2
0
tcpdump -nnvvSgood amount of traffic, with verbosity and no name help

7 years, 3 months ago john 0 | details |

copy
0
0
tcpdump -nnvvXSsee a good amount of traffic, adds -X for payload but doesn't grab any more of the packet

7 years, 3 months ago john 0 | details |

copy
0
0
tcpdump -nnvvXSs 1514Capture size 1514

7 years, 3 months ago john 0 | details |

copy
2
0
tcpdump host 192.168.1.100Host based lookup, also works with hostname if you're not using -n

7 years, 3 months ago john 0 | details |

copy
2
0
tcpdump src 172.19.1.124Capture packes only from source

7 years, 3 months ago john 0 | details |

copy
1
0
tcpdump dest 192.169.1.1Capture packes from destination only

7 years, 3 months ago john 0 | details |

copy
0
0
tcpdump not port 22Filter out traffic on port 22

7 years, 3 months ago john 0 | details |

copy
6
0
tcpdump -i eth1 not port 23Listen on interface eth1 and exclude traffic from port 23

7 years, 3 months ago john 0 | details |

copy
1
0
tcpdump -ni eth1 -c 10 not port 22Only list for 10 packets on eth1, excluding traffic on port 22

7 years, 3 months ago john 0 | details |

copy
11
0
echo 1 2 3 4 | grep 4look for occurrences of 4 in 1 2 3 4

7 years, 3 months ago john 0 | details |

copy
8
0
cat /etc/passwd | grep rootlook for the root user in /etc/passwd

7 years, 3 months ago john 0 | details |

copy
3
0
sudo dd if=ubu.img.dmg of=/dev/rdisk1 bs=1mClone ubu.img.dmg onto disk /dev/rdisk1 using 1mb block size

7 years, 3 months ago john 0 | details |

copy
15
0
grep -R root *look for the keyword root in all files recursively form the current directory

7 years, 3 months ago john 0 | details |

copy
12
0
cat /var/log/apache/access_log | grep 404Look for 404 logs in apache

7 years, 3 months ago john 0 | details |

copy
5
0
cat /var/log/apache/access_log | grep -v googlefilter out hosts matching on the string google

7 years, 3 months ago john 0 | details |

copy
6
0
chown -R root:root /etc/make sure the /etc is owned by root for all files and directories

7 years, 3 months ago john 0 | details |

copy
0
0
chown john:john mydoc.docchange the ownerships on mydoc.doc to user john, group john

7 years, 3 months ago john 0 | details |

copy
2
0
chown john:john mydoc.docchange the ownerships on mydoc.doc to user john, group john

7 years, 3 months ago john 0 | details |

copy
7
0
smbclient -L myhost.comList the shares on myhost.com

7 years, 3 months ago john 0 | details |

copy
10
0
smbclient \\\\192.168.1.1\\Dlist the windows share only for the D:\

7 years, 3 months ago john 0 | details |

copy
7
0
/usr/bin/smbclient \\\\myhost.com\\public mypasswd

7 years, 3 months ago john 0 | details |

copy
36
0
smbclient \\\\192.168.1.1\\D -U myuser

7 years, 3 months ago john 0 | details |

copy
3
0
ls | tee file.txtls to screen and also file

7 years, 3 months ago john 0 | details |

copy
4
0
ls | tee file1.txt file2.txt file3.txtwrite ls to screen and 3 files

7 years, 3 months ago john 0 | details |

copy
1
0
crontab -l | tee backup.txt list your crontab, and create a backup

7 years, 3 months ago john 0 | details |

copy
1
0
lint myprogram.c | tee -a myprogram.lintdisplay and append to myprogram.lint

7 years, 3 months ago john 0 | details |

copy
1
0
ifconfig | tee OutputFile.txtlist and store ifconfig in OutputFile.txt

7 years, 3 months ago john 0 | details |

copy
3
0
sha1sum file.txtCreate a sha1 of file.txt

7 years, 3 months ago john 0 | details |