asd
This commit is contained in:
commit
6106ebb7c1
44
20241022/szabomarton_DevOps_Dolgozat_24_10.txt
Normal file
44
20241022/szabomarton_DevOps_Dolgozat_24_10.txt
Normal file
|
@ -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
|
BIN
24_09_10 - DevOps.pptx
Normal file
BIN
24_09_10 - DevOps.pptx
Normal file
Binary file not shown.
BIN
24_11_05/24_11_05.pptx
Normal file
BIN
24_11_05/24_11_05.pptx
Normal file
Binary file not shown.
1
24_11_05/szoveges_fajl.txt
Normal file
1
24_11_05/szoveges_fajl.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Ez a szöveges fájl tartalma!
|
BIN
24_11_12/24_11_12.pptx
Normal file
BIN
24_11_12/24_11_12.pptx
Normal file
Binary file not shown.
BIN
24_11_12/Feladatok.docx
Normal file
BIN
24_11_12/Feladatok.docx
Normal file
Binary file not shown.
38
24_11_12/megoldasok.txt
Normal file
38
24_11_12/megoldasok.txt
Normal file
|
@ -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
|
BIN
24_11_19/Feladat.docx
Normal file
BIN
24_11_19/Feladat.docx
Normal file
Binary file not shown.
BIN
24_11_19/indulagorogaludni_huffman.png
Normal file
BIN
24_11_19/indulagorogaludni_huffman.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
34
24_11_19/oraifeladat.txt
Normal file
34
24_11_19/oraifeladat.txt
Normal file
|
@ -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
|
||||||
|
|
||||||
|
//
|
BIN
24_11_19/sosincsvege_huffman.png
Normal file
BIN
24_11_19/sosincsvege_huffman.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
BIN
24_11_26/DevOps Dolgozat - November.pdf
Normal file
BIN
24_11_26/DevOps Dolgozat - November.pdf
Normal file
Binary file not shown.
0
24_11_26/doga.txt
Normal file
0
24_11_26/doga.txt
Normal file
BIN
24_11_26/szabomarton_24_11_26_doga.docx
Normal file
BIN
24_11_26/szabomarton_24_11_26_doga.docx
Normal file
Binary file not shown.
BIN
25_01_28/feladat.zip
Normal file
BIN
25_01_28/feladat.zip
Normal file
Binary file not shown.
BIN
25_01_28/feladat/Feladat.docx
Normal file
BIN
25_01_28/feladat/Feladat.docx
Normal file
Binary file not shown.
BIN
25_01_28/feladat/Feladatok.docx
Normal file
BIN
25_01_28/feladat/Feladatok.docx
Normal file
Binary file not shown.
56
25_01_28/megoldas_feladat.txt
Normal file
56
25_01_28/megoldas_feladat.txt
Normal file
|
@ -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
|
38
25_02_18/orai
Normal file
38
25_02_18/orai
Normal file
|
@ -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"]}"
|
BIN
DevOps_24_09_17.pptx
Normal file
BIN
DevOps_24_09_17.pptx
Normal file
Binary file not shown.
BIN
ISO/ubuntu-24.04.1-desktop-amd64.iso
Normal file
BIN
ISO/ubuntu-24.04.1-desktop-amd64.iso
Normal file
Binary file not shown.
17
charactercounter.py
Normal file
17
charactercounter.py
Normal file
|
@ -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}")
|
Loading…
Reference in New Issue
Block a user