Linux, UNIX command line examples, tutorials, and sample documentation. Learn how to use programs like mysql, ssh, tar, rsync, dd by example

copy
0
0
Show the ssl certsopenssl s_client -showcerts -connect 127.0.0.1:443Show the ssl certs for 127.0.0.1

7 hours ago MikeJudge 0 |

copy
0
0
Show debug ssl info on local serveropenssl s_client -msg -debug -connect 127.0.0.1:443dump debug ssl info

7 hours ago MikeJudge 0 |

copy
1
1
Find and replace strings in OSXsed -i "" 's/find/replace/g' views.py

5 days, 1 hour ago george 2 |

copy
7
0
Check if your computer is 32 or 64bitgrep --color=always -iw lm /proc/cpuinfoif you see "lm" in the out put your computer is 64bit

2 weeks ago gitweb 0 |

copy
27
0
mount a cd image as a directorymount -o loop ubuntu-12.04-desktop-amd64.iso /mnt/cdmounts the iso file as a loopback device on /mnt/cd

2 weeks ago gitweb 0 |

copy
2
0
git rebase your current branchgit rebase originremove each of your commits from your branch, saving them as patches (in a directory named ".git/rebase"), update your branch to point at the latest version of origin, then apply each of the saved patches to the new branch

2 weeks, 2 days ago george 2 |

copy
0
1
cherry pick changes from full hashgit cherry-pick 5b4254f045afc31349a3502c9a2d4f693498889apull changes from 5b4254f045afc31349a3502c9a2d4f693498889a

2 weeks, 2 days ago george 2 |

copy
1
0
cherry-pick very carefully git cherry-pick -Xpatience topic^Try to apply the change introduced by topic^ again, spending extra time to avoid mistakes based on incorrectly matching context lines

2 weeks, 2 days ago george 2 |

copy
0
0
apply only the changes from topic^git cherry-pick topic^apply the change that would be shown by git show topic^. In this example, the patch does not apply cleanly, so information about the conflict is written to the index and working tree and no new commit results.

2 weeks, 2 days ago george 2 |

copy
0
0
cherry pick changes from specific hashgit cherry-pick 6a3ed15cherry pick changes from specific hash, 6a3ed15

2 weeks, 2 days ago george 2 |

copy
0
0
create a git archive in tar formatgit archive --format=tar --prefix=git-1.4.0/ v1.4.0 | gzip >git-1.4.0.tar.gzCreate a compressed tarball for v1.4.0 release.

2 weeks, 2 days ago george 2 |

copy
0
0
add remote git repositorygit remote add linux-nfs git://linux-nfs.org/pub/linux/nfs-2.6.gitAdd the remote repo git://linux-nfs.org/pub/linux/nfs-2.6.git and tag as linux-nfs

2 weeks, 2 days ago george 2 |

copy
0
0
delete the remote-tracking branches git branch -d -r origin/todo origin/html origin/manDelete the remote-tracking branches "todo", "html" and "man". The next fetch or pull will create them again unless you configure them not to

2 weeks, 2 days ago george 2 |

copy
0
0
create a new branchgit branch my2.6.14 v2.6.14Create a new branch

2 weeks, 2 days ago george 2 |

copy
0
1
clone a local repogit clone /home/me/tmp/file.bundle R2clone the local repo /home/me/tmp/file.bundle to R2

2 weeks, 2 days ago george 2 |

copy
2
0
replace all core.gitproxy with a new onegit config --replace-all core.gitproxy sshIf you like to live dangerously, you can replace all core.gitproxy by a new one

2 weeks, 2 days ago george 2 |

copy
0
0
get all config values form a multivar git config --get-all core.gitproxyIf you want to know all the values for a multivar

2 weeks, 2 days ago george 2 |

copy
0
0
get a value from the git configgit config --get core.filemodeTo query the value for a given key

2 weeks, 2 days ago george 2 |

copy
0
0
delete an entry in the git configgit config --unset diff.renamesTo delete the entry for renames If you want to delete an entry for a multivar (like core.gitproxy above), you have to provide a regex matching the value of exactly one line.

2 weeks, 2 days ago george 2 |

copy
1
0
change an entry in the configgit config core.gitproxy '"ssh" for kernel.org' 'for kernel.org$'The hypothetical proxy command entries actually have a postfix to discern what URL they apply to. Here is how to change the entry for kernel.org to "ssh". This makes sure that only the key/value pair for kernel.org is replaced.

2 weeks, 2 days ago george 2 |

0
WPA-EAP config that uses peaplabelWPA-RADIUS/EAP-PEAP/MSCHAPv2 with RADIUS servers that use old peaplabel (e.g., Funk Odyssey and SBR, Meetinghouse Aegis, Interlink RAD-Series)

gitweb 1 week, 5 days ago

0
WPA PSK with WPA-Enterprise basic configWPA-Personal (PSK) as home network and WPA-Enterprise with EAP-TLS as work network.

gitweb 1 week, 5 days ago

5
How do i generate ssh keys
What is the easiest way to generate ssh keys?

ssh
3 weeks, 3 days ago spids82 0