john2

copy
2
0
git mergetool -t opendiffuse opendiff to merge

6 years, 10 months ago john2 0 | details |

copy
1
0
git mergetool -t diffmergeUse diffmerge to merge

6 years, 10 months ago john2 0 | details |

copy
3
0
echo hello | awk -F\e '{print $1 $2}'split hello on 'e' print first element on split followed by second

6 years, 10 months ago john2 0 | details |

copy
10
0
ssh root@google.com ssh as root into google.com

6 years, 10 months ago john2 0 | details |

copy
0
0
ssh frontrow@192.168.1.1 -p 7777ssh as user frontrow into 192.168.1.1 port 7777

6 years, 10 months ago john2 0 | details |

copy
4
0
ssh root@10.0.0.1 cat /etc/issuecat /etc/issue on the remote server 10.0.0.1

6 years, 10 months ago john2 0 | details |

copy
5
0
sed -i 's/test/NewSTR/g' myfilereplace the string test with NewSTR in myfile

6 years, 10 months ago john2 0 | details |

copy
1
0
tcpdump -ennqti eth0 \( arp or icmp \)

6 years, 10 months ago john2 0 | details |

copy
7
0
arp 192.168.20.1 0090.1a00.0170

6 years, 10 months ago john2 0 | details |

copy
3
0
arp timeout 8000specify how long an entry remains in the ARP cache.

6 years, 10 months ago john2 0 | details |

copy
4
0
find . -maxdepth 1 -type d -print | xargs echo Directories:List all directories in current directory

6 years, 10 months ago john2 0 | details |

copy
2
0
cat /etc/issuedisplay the content of issue

6 years, 10 months ago john2 0 | details |

copy
1
0
cat -n example.txtcat the contents of example.txt and show line numbers

6 years, 10 months ago john2 0 | details |

copy
4
0
find /path -type f -print0 | xargs -0 rmpipe the output of find into xargs and remove the file with rm

6 years, 10 months ago john2 0 | details |

copy
9
0
find . -name "*.foo" -print0 | xargs -0 grep barfind files matching *.foo and grep the contents to find bar

6 years, 10 months ago john2 0 | details |

copy
33
0
xargs -I '{}' mv dir1/'{}' dir2/'{}'

6 years, 10 months ago john2 0 | details |

copy
10
0
echo 1 2 3 4 | xargs echo

6 years, 10 months ago john2 0 | details |

copy
5
0
find /etc -name "*.conf" | xargs ls –llist all the conf files with -l

6 years, 10 months ago john2 0 | details |

copy
1
0
awk '{print;}' employee.txtPrint every line in file employee.txt

6 years, 10 months ago john2 0 | details |

copy
2
0
awk '/sam/' employee.txtPrint lies in employee.txt that match the keyword sam

6 years, 10 months ago john2 0 | details |

copy
4
0
awk '$1 >100' employee.txtFind employee's that have an id > 100

6 years, 10 months ago john2 0 | details |

copy
4
0
cat urls.txt | xargs wget –cDownload all the urls in urls.txt

6 years, 10 months ago john2 0 | details |

copy
23
0
ls -l | grep '^d' | awk '{print "rm -r "$9}' | shRemove only the directories

6 years, 10 months ago john2 0 | details |

copy
0
0
cat example.txt example.txt > double.txtcat the contents of example.txt into double.txt twice

6 years, 10 months ago john2 0 | details |

copy
0
0
cat my-long-file.txt | moreDisplay the file my-long-file.txt using more

6 years, 10 months ago john2 0 | details |

copy
3
0
cat -v file.txtShow control characters in file

6 years, 10 months ago john2 0 | details |

copy
0
0
cat file1 file2 file3 > file4Join all the files into file4

6 years, 10 months ago john2 0 | details |

copy
0
0
cat -T myfile.txtDisplay the tab characters

6 years, 10 months ago john2 0 | details |

copy
1
0
awk '{print "display each word:",$1,"other word:",$2}' mywords.dataDisplay all the words in mywords.data

6 years, 10 months ago john2 0 | details |

copy
3
0
cp file.doc file.doc.bakMake a backup copy of file.doc

6 years, 10 months ago john2 0 | details |

copy
2
0
cp *.txt newdirCopy all txt files to newdir

6 years, 10 months ago john2 0 | details |

copy
0
0
cp -r /files/* /backupCopy all files and sub directories in /files to backup

6 years, 10 months ago john2 0 | details |

copy
4
0
dh_generate_key(DHParams) -> {PublicKey,PrivateKey}Generates a Diffie-Hellman PublicKey and PrivateKey (if not given).

6 years, 10 months ago john2 0 | details |

copy
21
0
dh_generate_key(PrivateKey, DHParams) -> {PublicKey,PrivateKey} Types: DHParameters = [P, G] P, G = Mpint Where P is the shared prime number and G is the shared generator. PublicKey, PrivateKey = Mpint()

6 years, 10 months ago john2 0 | details |

copy
2
0
crypto:dh_generate_parameters(512,2)

6 years, 10 months ago john2 0 | details |

copy
4
0
crypto:dh_generate_key(2, 137)

6 years, 10 months ago john2 0 | details |

copy
1
0
rm -rf *Remove all files and directories recursively

6 years, 10 months ago john2 0 | details |

copy
3
0
mv file1.txt file2.txtMove the file 'file1.txt' to 'file2.txt'

6 years, 10 months ago john2 0 | details |

copy
3
0
mkdir fooCreate a new directory foo in the current directory

6 years, 10 months ago john2 0 | details |

copy
2
0
mkdir -p /foo/bar/Create the the directory/subdirectories /foo/bar/ in one command

6 years, 10 months ago john2 0 | details |

copy
4
0
ln -s /Users/john/iTunes/music /Volumes/Files/music/itunesCreate a symbolic link in /Users/john/iTunes/music that points to /Volumes/Files/music/itunes

6 years, 10 months ago john2 0 | details |

copy
0
0
git clone git://git.kernel.org/pub/scm/linux-2.6 my2.6Clone the git repo linux-2.6 on server git.kernel.org in /pub/scm/ to my2.6

6 years, 10 months ago john2 0 | details |