added multifile document for linux things

This commit is contained in:
scbj
2024-11-05 11:49:15 +01:00
parent 2b3a9bc873
commit 3df5fdc430
3 changed files with 20 additions and 3 deletions

View File

@@ -2,8 +2,7 @@
This file documents potentially handy commands and tools to look at or simply remember their existence. This file documents potentially handy commands and tools to look at or simply remember their existence.
## Take a look at ## Take a look at
* [ ] fzf * fzf
* [x] tmux --> very good
## Remember ## Remember
* [ ] envsubst * envsubst

5
docs/linux.md Normal file
View File

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

13
docs/linux/commands.md Normal file
View File

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