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 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 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