Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Resume

Samenvatting belangrijke commando's CN2

Note
-
Vendu
-
Pages
5
Publié le
17-01-2023
Écrit en
2020/2021

Samenvatting belangrijke commando's CN2










Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

Infos sur le Document

Publié le
17 janvier 2023
Nombre de pages
5
Écrit en
2020/2021
Type
Resume

Aperçu du contenu

dict -d fd-eng-nld "how are you" vertalen

~ knop-option + N

| output als input volgende gebruiken

; meerdere commando’s samenvoegen

echo ‘some text’ > file1 maak bestand file1 → bevat ‘some text’

echo ‘some extra text’ >> file1 lijn bijvoegen in file1

pwgen > file random password genereren in file

ssh -p 22345 inloggen op leia zonder key
ww: Peutie64

scp -P 22345 :t.txt . file van leia → naar lokale machine kopiëren

scp -P 22345 bes.txt :test file van lokale machine → naar leia kopiëren

scp -P 22345 hallo.txt bestand van lokale pc naar leia kopieren
:/home/LDAP/r0697468/h
allo.txt

chmod [u,g,o] [+,-,=] [r,w,x] filenames permissions wijzigen
chmod u=rwx,g=rw,o=r file1.txt | chmod u=rwx,g=rwx,o=rwx file3.txt

grep [options] ‘pattern’ [file] zoekt patroon in bestand
print lijnen met patroon
-v → toont niet matchende lines for pattern

touch $(date +"%Y.%m.%d").test2 bestand aanmaken met datum in naam

cut -d “ “ -f3,4,4 cut → selecteert columns van file
-d → specificeert scheidingsteken
date | cut -d " " -f3,4,5 > date.txt -f → column nummer

awk ‘{print $kolomnummer}’ [file] awk → print $n kolom van file
ls -l | awk ‘{print $kolomnummer}’

tr -s ' ' vervang teken dat meermaals voorkomt door 1X
tr -s ' teken' (vervang meerdere spaties door 1)

ls /map | xargs command loop → voor elke lijn van input → commando
cat todelete.txt | xargs rm uitvoeren

for foo in $(ls /home/ldapusers); do touch $foo; done andere manier loop → als xargs niet beschikbaar

ls | while read foo; do echo $foo; done while loop

find [path] [expression] zoeken in file hiërarchie

sort -r [file] sorteer file
- r → reverse alfabetisch

, 2>/dev/null foutboodschappen weglaten

ssh-keygen key genereren (id_rsa.pub)
in ~/.ssh op pc lokaal
kopieer deze key naar destination
~/.ssh/authorized_keys op leia

ssh -p 22345 -i met id_rsa.pub bestand inloggen
"/path/to/your grandmothers identity_file"

ssh leia Host leia
HostName leia.uclllabs.be
Port 22345
User r1234567
In config op eigen pc zetten

who Kijken op leia wie ingelogd

inloggen op leia Chatten via netcat
nc -l 12000 = poort naar keuze
!venster laten open staan

!tweede venster openen
nc leia.uclllabs.be 12000


tshark -D lijst van all netwerk interfaces die je kan capteren

tshark -P -i en0 -w catture.pcap -F pcaap -c 2 saving capture
-i → capture interface
-w → output file
-F → file format
-c → max aantal pakketten om te lezen
-P → schrijft gegevens naar bestand & toont
pakketoverzicht in terminal

tshark -r [input file] eerder opgeslagen bestand lezen

tshark -r [file] -V -Y ‘frame.number == $number’ toont een enkel pakket
-V → om details weer te geven van pakket

tshark -r [file] -O ‘dns’ -Y ‘frame.number == $number’ -O → details van specifiek protocol

tshark -r [file] -Y ‘filter’ Filtering captures
tshark -r [file] -Y ‘http.response.code == 404’

tshark -i en0 -Y http.request -T fields -e http.host -e extracting van frame data
http.user_agent -T → specieferen dat we velden willen bekijken
-e → specifieren we welke velden

tshark -G fields | grep ‘[\t]zoek\..*’ geeft lijst mogelijke velden
tshark -G fields | grep ‘[\t]ftp\..*’

tshark -G | grep “zoek\.” geeft lijst van mogelijke filters
tshark -G | grep “http\.”
€5,49
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur
Seller avatar
marlenebraem
4,0
(1)

Faites connaissance avec le vendeur

Seller avatar
marlenebraem UC Leuven-Limburg
Voir profil
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
1
Membre depuis
2 année
Nombre de followers
1
Documents
23
Dernière vente
1 année de cela

4,0

1 revues

5
0
4
1
3
0
2
0
1
0

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions