From 64ce6b98cc0ba98d5ab5d82776447256675b4f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <tothmiklostibor@gmail.com> Date: Sun, 21 Mar 2021 18:56:22 +0100 Subject: [PATCH] eloadas alpha 1 --- eloadas.md | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 eloadas.md diff --git a/eloadas.md b/eloadas.md new file mode 100644 index 0000000..26dcb37 --- /dev/null +++ b/eloadas.md @@ -0,0 +1,49 @@ +% Linux elĹadĂĄs +% TĂłth MiklĂłs +% March 21, 2021 + +# PĂĄr egyĂŠb hasznos parancs + +## `wc` + +- word counter +- szavak, sorok szĂĄmolĂĄsa + +```shell-session +[mike@thinkyboi ~]$ echo "egy kĂŠt hĂĄ" | wc -w +3 +[mike@thinkyboi ~]$ echo "egy kĂŠt hĂĄ" | wc -l +1 +[mike@thinkyboi ~]$ echo "egy +kĂŠt +hĂĄ" | wc -l +3 +``` + +## `tr` + +- karaktereket cserĂŠl ki vagy tĂśrĂśl + +```shell-session +[mike@thinkyboi ~]$ echo "almafa" | tr "a" "e" +elmefe +[mike@thinkyboi ~]$ echo "almafa kĂśrtefa eperfa" | tr " " "\n" +almafa +kĂśrtefa +eperfa +[mike@thinkyboi ~]$ echo "almafa" | tr -d "a" +lmf +``` + +## `curl` + +- http shellbĹl +- + +# `>>` operĂĄtor + +- `>` tesĂłja +- filehoz appendĂĄl +```shell +curl https://git.sch.bme.hu/mikewashere.keys >> .ssh/authorized_keys +``` -- GitLab