diff --git a/docs/bash.md b/docs/bash.md new file mode 100644 index 0000000..a784354 --- /dev/null +++ b/docs/bash.md @@ -0,0 +1,19 @@ +# Bash Commands + +## Find +### Find and delete +Find and delete command +```bash +find / -name .DS_Store -delete +``` + +Alternative find and delete command +```bash +find / -name ".DS_Store" -exec rm {} \; +``` +the previous command is due that not all `find` have a delete funcion but with overhead of new process `-exec`. + +Find and delete with no overhead +```bash +find / -name .DS_Store -print0 | xargs -0 rm +``` \ No newline at end of file diff --git a/docs/cd.md b/docs/cd.md new file mode 100644 index 0000000..7137154 --- /dev/null +++ b/docs/cd.md @@ -0,0 +1 @@ +# Continuous delivery \ No newline at end of file diff --git a/docs/ci.md b/docs/ci.md new file mode 100644 index 0000000..9ab5bf8 --- /dev/null +++ b/docs/ci.md @@ -0,0 +1 @@ +# Continuous integration \ No newline at end of file diff --git a/docs/cicd.md b/docs/cicd.md deleted file mode 100644 index 318a768..0000000 --- a/docs/cicd.md +++ /dev/null @@ -1,5 +0,0 @@ -# CI / CD - -## Continuous integration - -## Continuous delivery \ No newline at end of file diff --git a/docs/csharp.md b/docs/csharp.md new file mode 100644 index 0000000..d03b881 --- /dev/null +++ b/docs/csharp.md @@ -0,0 +1 @@ +# C# \ No newline at end of file diff --git a/docs/linux.md b/docs/linux.md index 461a8e6..5cc4b51 100644 --- a/docs/linux.md +++ b/docs/linux.md @@ -1,3 +1,2 @@ # Linux -## Arch Linux and X220 \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index e28f3c2..030d7f3 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -2,4 +2,19 @@ site_name: F-Docs theme: name: 'material' repo_url: https://git.r4o.ch/francesco/mkdocs/ -docs_dir: 'docs' \ No newline at end of file +docs_dir: 'docs' + +# Page tree +nav: + - Home: index.md + - Programming: + - Python: python.md + - C#: csharp.md + - + - CI / CD: + - CI: ci.md + - CD: cd.md + - Docker: docker.md + - Linux: linux.md + - Network: + - \ No newline at end of file