Usefull Linux Commands

Search for a string recursively grep -rnw './' -e "imsearchingyou" only specific files: grep -rnw './' --include=".php" -e "imsearchingyou" or a bit more clearly: grep -Hornw './' -e "imsearchingyou" Edit the default version of an alternatives software update-alternatives --set php /usr/bin/php5.6 Generate super secure passwords apt install pwgen pwgen -s -y 32 -N 1 Checking opened ports apt install nmap nmap -p 80 test.de for upd ports: nmap -sU -p 53 test....

January 18, 2017 · 1 min · Anton Bracke

Howto Git

neues repository erstellen erstelle ein neues Verzeichnis, öffne es und führe git init aus, um ein neues git-Repository anzulegen. ein repository auschecken erstelle eine Arbeitskopie, indem du folgenden Befehl ausführst: git clone /pfad/zum/repository Falls du ein entferntes Repository verwendest, benutze: git clone benutzername@host:/pfad/zum/repository add & commit Du kannst Änderungen vorschlagen (zum Index hinzufügen) mit git add <dateiname> git add . git add -u . (Lösche nicht gelöschte Dateien vom HEAD) Das ist der erste Schritt im git workflow, du bestätigst deine Änderungen mit: git commit -m "Commit-Nachricht" Jetzt befindet sich die Änderung im HEAD, aber noch nicht im entfernten Repository....

January 18, 2017 · 4 min · Anton Bracke

TFTP Server Install and Setup

TFTP Server Install and Setup Install following packages. sudo apt-get install xinetd tftpd tftp Create /etc/xinetd.d/tftp and put this entry service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no } Create a folder /tftpboot this should match whatever you gave in server_args. mostly it will be tftpboot sudo mkdir /tftpboot sudo chmod -R 777 /tftpboot sudo chown -R nobody /tftpboot Restart the xinetd service....

January 13, 2017 · 1 min · Anton Bracke