0

Plesk unpack splitted backups

Posted by EvolutionCrazy on May 23, 2018 in bash, snippets
mkdir unpacked_data
find ./ -name "backup_1805230147.tar*" | sort -V | xargs cat | tar --overwrite -xvf - -i -C ./unpacked_data/

tested from 11.5 to 17.5

 
0

Show all the IP addresses available on a linux server

Posted by EvolutionCrazy on Apr 15, 2014 in bash

This command will show a list of all the IP v4 addresses available on a linux server

ip addr | grep inet | grep -v 127.0.0.1 | grep -v inet6 | awk '{ print $2; }' | awk -F'/' '{ print $1; }'

Copyright © 2018 evcz.tk All rights reserved. Theme by Laptop Geek.