commit 6106ebb7c16d35fc88c3083a4f42560bdd8689b1 Author: szabomarton Date: Tue Feb 18 10:48:41 2025 +0100 asd diff --git a/20241022/szabomarton_DevOps_Dolgozat_24_10.txt b/20241022/szabomarton_DevOps_Dolgozat_24_10.txt new file mode 100644 index 0000000..fe7448a --- /dev/null +++ b/20241022/szabomarton_DevOps_Dolgozat_24_10.txt @@ -0,0 +1,44 @@ +// 1. feladat +pwd + +// 2. feladat +mkdir projekt_konyvtar + +// 3. feladat +cd projekt_konyvtar + +// 4. feladat +touch jegyzet.txt + +// 5. feladat +cp jegyzet.txt ../ + +// 6. feladat +ls -al +vagy ha nem akarjuk látni a rejtett fájlokat akkor: +ls -l + + + +// 7. feladat +touch osszefoglalo.txt +mv osszefoglalo.txt vegleges_osszefoglalo.txt + +// 8. feladat +rm vegleges_osszefoglalo.txt + + +// 9. feladat +ls -a + + +// 10. feladat +echo "Hello világ" > uzenet.txt + + +// 11. feladat +less uzenet.txt +more uzenet.txt + +// 12. feladat +rm -i uzenet.txt diff --git a/24_09_10 - DevOps.pptx b/24_09_10 - DevOps.pptx new file mode 100644 index 0000000..5a77221 Binary files /dev/null and b/24_09_10 - DevOps.pptx differ diff --git a/24_11_05/24_11_05.pptx b/24_11_05/24_11_05.pptx new file mode 100644 index 0000000..ea3ffde Binary files /dev/null and b/24_11_05/24_11_05.pptx differ diff --git a/24_11_05/szoveges_fajl.txt b/24_11_05/szoveges_fajl.txt new file mode 100644 index 0000000..8b72dbe --- /dev/null +++ b/24_11_05/szoveges_fajl.txt @@ -0,0 +1 @@ +Ez a szöveges fájl tartalma! \ No newline at end of file diff --git a/24_11_12/24_11_12.pptx b/24_11_12/24_11_12.pptx new file mode 100644 index 0000000..e8f9d0d Binary files /dev/null and b/24_11_12/24_11_12.pptx differ diff --git a/24_11_12/Feladatok.docx b/24_11_12/Feladatok.docx new file mode 100644 index 0000000..231dc87 Binary files /dev/null and b/24_11_12/Feladatok.docx differ diff --git a/24_11_12/megoldasok.txt b/24_11_12/megoldasok.txt new file mode 100644 index 0000000..ace5687 --- /dev/null +++ b/24_11_12/megoldasok.txt @@ -0,0 +1,38 @@ +sudo useradd -ms /bin/bash tanulo1 +sudo passwd tanulo1 +sudo groupadd tanulocsoport +sudo groupadd tesztcsoport +sudo usermod -a -G tanulocsoport tanulo1 +sudo usermod -a -G tesztcsoport tanulo1 + + +//2.feladat +touch dokumentum.txt +sudo chmod 764 dokumentum.txt +ls -al dokumentum.txt +sudo chmod 744 dokumentum.txt + +//3.feladat + +mkdir projektek +sudo chmod 750 projektek +ls -al projektek + +//4.feladat +touch teszt.txt +sudo chmod 640 teszt.txt +ls -al teszt.txt +sudo chmod 760 teszt.txt +ls -al teszt.txt + +//5.feladat +sudo useradd -ms /bin/bash tanulo2 +sudo groupadd gyakorlat +touch projekt.txt +sudo chown tanulo2 projekt.txt +sudo chown :gyakorlat projekt.txt +ls -al projekt.txt + +//6. +mkdir munkadokumentum +sudo chmod 760 munkadokumentum diff --git a/24_11_19/Feladat.docx b/24_11_19/Feladat.docx new file mode 100644 index 0000000..0dc2ed7 Binary files /dev/null and b/24_11_19/Feladat.docx differ diff --git a/24_11_19/indulagorogaludni_huffman.png b/24_11_19/indulagorogaludni_huffman.png new file mode 100644 index 0000000..0150564 Binary files /dev/null and b/24_11_19/indulagorogaludni_huffman.png differ diff --git a/24_11_19/megszentségteleníthetetlenségeskedéseitekért_huffman.png b/24_11_19/megszentségteleníthetetlenségeskedéseitekért_huffman.png new file mode 100644 index 0000000..9b8aa56 Binary files /dev/null and b/24_11_19/megszentségteleníthetetlenségeskedéseitekért_huffman.png differ diff --git a/24_11_19/oraifeladat.txt b/24_11_19/oraifeladat.txt new file mode 100644 index 0000000..21b122d --- /dev/null +++ b/24_11_19/oraifeladat.txt @@ -0,0 +1,34 @@ +//1. feladat + +mkdir ~/projektek +chmod 750 ~/projektek +ls -al ~/projektek + +//2.feladat +touch ~/teszt.txt +chmod 640 ~/teszt.txt +chmod 760 ~/teszt.txt + +//3.feladat +cd ~/ +touch adatok.txt +chmod u+r adatok.txt +chmod g-w adatok.txt +chmod +x adatok.txt +ls -al adatok.txt + + +//4. feladat +mdkir munkadokumentum +chmod u+rwx munkadokumentum/ + +sudo chown tanulo1 munkadokumentum/ +chmod o-rwx munkadokumentum/ + +//5.feladat +touch dokumentum.txt +chmod 764 dokumentum.txt +ls -al dokumentum.txt +chmod 744 dokumentum.txt + +// \ No newline at end of file diff --git a/24_11_19/sosincsvege_huffman.png b/24_11_19/sosincsvege_huffman.png new file mode 100644 index 0000000..e6a8945 Binary files /dev/null and b/24_11_19/sosincsvege_huffman.png differ diff --git a/24_11_26/DevOps Dolgozat - November.pdf b/24_11_26/DevOps Dolgozat - November.pdf new file mode 100644 index 0000000..23f1e5f Binary files /dev/null and b/24_11_26/DevOps Dolgozat - November.pdf differ diff --git a/24_11_26/doga.txt b/24_11_26/doga.txt new file mode 100644 index 0000000..e69de29 diff --git a/24_11_26/szabomarton_24_11_26_doga.docx b/24_11_26/szabomarton_24_11_26_doga.docx new file mode 100644 index 0000000..b6e0f43 Binary files /dev/null and b/24_11_26/szabomarton_24_11_26_doga.docx differ diff --git a/25_01_28/feladat.zip b/25_01_28/feladat.zip new file mode 100644 index 0000000..ff54b96 Binary files /dev/null and b/25_01_28/feladat.zip differ diff --git a/25_01_28/feladat/Feladat.docx b/25_01_28/feladat/Feladat.docx new file mode 100644 index 0000000..9afb6a9 Binary files /dev/null and b/25_01_28/feladat/Feladat.docx differ diff --git a/25_01_28/feladat/Feladatok.docx b/25_01_28/feladat/Feladatok.docx new file mode 100644 index 0000000..f19c0a7 Binary files /dev/null and b/25_01_28/feladat/Feladatok.docx differ diff --git a/25_01_28/megoldas_feladat.txt b/25_01_28/megoldas_feladat.txt new file mode 100644 index 0000000..f18d616 --- /dev/null +++ b/25_01_28/megoldas_feladat.txt @@ -0,0 +1,56 @@ +//1. +mkdir potlas_konyvtar + +//2 +cd potlas_konyvtar +touch fajlletrehozas +//3 +echo "touch fajlletrehozas" > fajlletrehozas +//4 +mkdir alkonyvtar +cd alkonyvtar +//5 +cp ../fajlletrehozas masoltfajl +//6 +echo "cp ../fajlletrehozas masoltfajl" > masoltfajl +//7 +mkdir athelyezendokonyvtar +cd ath* +//8 +touch athelyezendofajl +//9 +cd .. +//10 +mv athelyezendokonyvtar/ ../ +//11 +echo "mv athelyezendokonyvtar/ ../" > ../athelyezendokonyvtar/athelyezendofajl +//12 +mkdir torlendokonyvtar +//13 +touch valaszok +//a +rm -i torlendokonyvtar +//b +locate -c filename +//c +ls f*.txt + +echo "rm - i torlendokonyvtar\nlocate -c filename\nls f*.txt" > valaszok + +//14 +a 7 + 6 +k 5 +p 5 +e 4 +t 4 +i 3 +o 2 +F 1 +b 1 +g 1 +ö 1 +v 1 +é 1 +n 1 +! 1 diff --git a/25_02_18/orai b/25_02_18/orai new file mode 100644 index 0000000..a29a4e3 --- /dev/null +++ b/25_02_18/orai @@ -0,0 +1,38 @@ +# fájl létrehozás + +cd +nvim orai_25_02_18.sh + +#A shabang ne maradjon le +#!/bin/bash + +#hogy a továbbiakban futtatható legyen +chmod +x orai_25_02_18.sh + +# egysoros megjegyzés a '#'-jel használatával valósítható meg + +: ' ez +egy több +soros komment' + +echo -e "Sortörés: \n Tabulátor: \t Stb ... \\ \' \"" + +#változók +#dinamikusan típusos +#adattípusok String, Int, Array, Asszociatív tömb + +declare SZOVEG +SZOVEG="Pelda" + +declare -i SZAM +SZAM=10 +echo "Egész váltózó: $SZAM" + +declare -a TOMB +TOMB=("szoveg" 60 "szoveg2") +echo "Tömb első eleme: ${TOMB[0]}" + +declare -A ASSZOC_TOMB +ASSZOC_TOMB["kulcs"]="ÉRTÉK" +ASSZOC_TOMB["kulcs2"]="ÉRTÉK2" +echo "Asszociatív tömb eleme ${ASSZOC_TOMB["kulcs"]}" \ No newline at end of file diff --git a/DevOps_24_09_17.pptx b/DevOps_24_09_17.pptx new file mode 100644 index 0000000..de1eb03 Binary files /dev/null and b/DevOps_24_09_17.pptx differ diff --git a/ISO/ubuntu-24.04.1-desktop-amd64.iso b/ISO/ubuntu-24.04.1-desktop-amd64.iso new file mode 100644 index 0000000..b264ab3 Binary files /dev/null and b/ISO/ubuntu-24.04.1-desktop-amd64.iso differ diff --git a/charactercounter.py b/charactercounter.py new file mode 100644 index 0000000..81e5154 --- /dev/null +++ b/charactercounter.py @@ -0,0 +1,17 @@ +phrase = input("Add meg a mondatot:\t") +characters = {} + +for character in phrase: + if character not in characters: + characters[character] = 1 + else: + characters[character] = characters[character] + 1 + +sortedcharacters = sorted(characters, key=characters.get, reverse=True) + +summa = 0 +for i in sortedcharacters: + print(i, characters[i]) + summa += characters[i] + +print(f"Az összes karakter száma: {summa}") \ No newline at end of file