From d06e5bab6f96d70f4d5201f0241aea5d50b656a6 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Thu, 16 Feb 2017 00:04:18 -0200 Subject: [PATCH 1/3] Add cheatsheet for hg Mercurial is extensively used as a version control system, as an option to Git, so I'm adding its cheatsheet. --- cheat/cheatsheets/hg | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 cheat/cheatsheets/hg diff --git a/cheat/cheatsheets/hg b/cheat/cheatsheets/hg new file mode 100644 index 0000000..8cfbaf2 --- /dev/null +++ b/cheat/cheatsheets/hg @@ -0,0 +1,20 @@ +# Clone a directory +hg clone + +# Add files to hg tracker +hg add filename + +# Add all files in a folder to hg tracker +hg add folder/ + +# Create a commit with all tracked changes and a message +hg commit -m "message" + +# Push commits to source repository +hg push + +# Pull changes from source repository +hg pull + +# Rebase local commits to disambiguate with remote repository +hg pull --rebase From 10dd0e9a8b92dac792a7416ae1bc7196e7cf3cbb Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Thu, 16 Feb 2017 01:22:45 -0200 Subject: [PATCH 2/3] Add cheatsheet for shutdown Adding help for shutdown, useful for rebooting the system, --- cheat/cheatsheets/shutdown | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 cheat/cheatsheets/shutdown diff --git a/cheat/cheatsheets/shutdown b/cheat/cheatsheets/shutdown new file mode 100644 index 0000000..52e914e --- /dev/null +++ b/cheat/cheatsheets/shutdown @@ -0,0 +1,8 @@ +# Reboot the system immediately +shutdown -r now + +# Shut system down immediately +shutdown -h now + +# Reboot system after 5 minutes +shutdown -r +5 From f495a4dfd90d60504b395f3f687a68a706eefbf4 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Thu, 16 Feb 2017 01:25:24 -0200 Subject: [PATCH 3/3] Add cheatsheet for su Useful for running commands as another user. --- cheat/cheatsheets/su | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 cheat/cheatsheets/su diff --git a/cheat/cheatsheets/su b/cheat/cheatsheets/su new file mode 100644 index 0000000..dec7bcc --- /dev/null +++ b/cheat/cheatsheets/su @@ -0,0 +1,2 @@ +# Switch to another user account +su USERNAME