From 3df5fdc4306cdbaffb53b83c5632b3c47aabc30c Mon Sep 17 00:00:00 2001 From: scbj Date: Tue, 5 Nov 2024 11:49:15 +0100 Subject: [PATCH] added multifile document for linux things --- docs/interesting_commands.md | 5 ++--- docs/linux.md | 5 +++++ docs/linux/commands.md | 13 +++++++++++++ 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 docs/linux.md create mode 100644 docs/linux/commands.md diff --git a/docs/interesting_commands.md b/docs/interesting_commands.md index 982250d..fbd6fbe 100644 --- a/docs/interesting_commands.md +++ b/docs/interesting_commands.md @@ -2,8 +2,7 @@ This file documents potentially handy commands and tools to look at or simply remember their existence. ## Take a look at -* [ ] fzf -* [x] tmux --> very good +* fzf ## Remember -* [ ] envsubst +* envsubst diff --git a/docs/linux.md b/docs/linux.md new file mode 100644 index 0000000..ef91065 --- /dev/null +++ b/docs/linux.md @@ -0,0 +1,5 @@ +# Linux + +This document collects knowledge, tips and tricks on all things Linux, that don't get their own document. + +- [Linux commands](linux/commands.md) diff --git a/docs/linux/commands.md b/docs/linux/commands.md new file mode 100644 index 0000000..3439f5e --- /dev/null +++ b/docs/linux/commands.md @@ -0,0 +1,13 @@ +# Linux commands + +- [Linux commands](#linux-commands) + - [combine commands with *xargs*](#combine-commands-with-xargs) + +## combine commands with *xargs* + +Some commands (e.g. `chmod`) can't handle input via pipe and require the input as arguments. `xargs` takes the standard input as list of arguments seperated by spaces or newlines and executes the given command with the input parsed to a list of arguments. + +Usage: +```bash +find . -type f | xargs chmod 644 +```