diff --git a/tldr/binwalk b/tldr/binwalk index 277f75a3..1bdb46e7 100644 --- a/tldr/binwalk +++ b/tldr/binwalk @@ -14,20 +14,20 @@ source: https://github.com/tldr-pages/tldr.git - Extract files from a binary, specifying the output directory: -`binwalk --extract --directory {{output_directory}} {{path/to/binary}}` +`binwalk {{[-e|--extract]}} {{[-C|--directory]}} {{output_directory}} {{path/to/binary}}` - Recursively extract files from a binary limiting the recursion depth to 2: -`binwalk --extract --matryoshka --depth {{2}} {{path/to/binary}}` +`binwalk {{[-e|--extract]}} {{[-M|--matryoshka]}} {{[-d|--depth]}} {{2}} {{path/to/binary}}` - Extract files from a binary with the specified file signature: -`binwalk --dd '{{png image:png}}' {{path/to/binary}}` +`binwalk {{[-D|--dd]}} '{{png image:png}}' {{path/to/binary}}` - Analyze the entropy of a binary, saving the plot with the same name as the binary and `.png` extension appended: -`binwalk --entropy --save {{path/to/binary}}` +`binwalk {{[-E|--entropy]}} {{[-J|--save]}} {{path/to/binary}}` - Combine entropy, signature and opcodes analysis in a single command: -`binwalk --entropy --signature --opcodes {{path/to/binary}}` +`binwalk {{[-E|--entropy]}} {{[-B|--signature]}} {{[-A|--opcodes]}} {{path/to/binary}}` diff --git a/tldr/git-show b/tldr/git-show index 14a6a669..29cef525 100644 --- a/tldr/git-show +++ b/tldr/git-show @@ -12,13 +12,9 @@ source: https://github.com/tldr-pages/tldr.git `git show` -- Show information about a given commit: +- Show information about a specific commit, tag, or branch (such as `HEAD` for the latest commit): -`git show {{commit}}` - -- Show information about the commit associated with a given tag: - -`git show {{tag}}` +`git show {{commit|tag|branch}}` - Show information about the 3rd commit from the HEAD of a branch: @@ -32,6 +28,10 @@ source: https://github.com/tldr-pages/tldr.git `git show --stat {{commit}}` +- Show a simplified list of all files changed in a commit (modified, added, and deleted): + +`git show --name-only {{commit}}` + - Show only the list of added, renamed or deleted files: `git show --summary {{commit}}` diff --git a/tldr/linux/usermod b/tldr/linux/usermod index 8fd71a83..c79e0193 100644 --- a/tldr/linux/usermod +++ b/tldr/linux/usermod @@ -25,6 +25,10 @@ source: https://github.com/tldr-pages/tldr.git `sudo usermod {{[-aG|--append --groups]}} {{group1,group2,...}} {{username}}` +- Remove a user from specific groups: + +`sudo usermod {{[-rG|--remove --groups]}} {{group1,group2,...}} {{username}}` + - Change a user home directory: `sudo usermod {{[-m|--move-home]}} {{[-d|--home]}} {{path/to/new_home}} {{username}}`