Thursday, November 14, 2019

Cyber check it out...news , among others, maybe usefull on the command..hack folder


Cyber check it out...news , among others, maybe usefull on the command
# extract xz file on the fly
wget -q https://www.example.com/file.tar.xz -O - | tar -C /tmp/ -Jx
for instance...# enable cron logging to dedicated file on ubuntu
sed -i 's|#cron|cron|g' /etc/rsyslog.d/50-default.conf
service rsyslog restart
like...# zip: max compress, move file, ignore directory structure
DUMP=$(hostname).${DB}.$(date -I).sql
zip -9qmj ${DUMP%.2*}.sql.zip /tmp/${DUMP}
tricky from years of newbie...keep the old file ..lol like...# parallel compress (keep the old file)
pbzip2 -k9 file1.in file2.in ...
also...# replace duplicates with hardlinks
rdfind -makehardlinks true
i like this too ...# get file look
sudo fuser -v /var/cache/debconf/config.dat
# get linked libraries
ldd -d -r $(which wget)
# remove string from string
echo "my foo bar" | sed -e s/foo//
here's a trick too...# print duplicate lines
cat FILE| uniq -d
finally the close tags...with ...# remount / force read only mount of root filesystem
umount -a
echo u > /proc/sysrq-trigger
mount -f -o remount,ro /dev/sda1
# change filesystem UUID
tune2fs -U 2efc22cb-98a4-448d-8fbe-a895462703c0 /dev/sdc1
http://www.panticz.de/HowTo
PANTICZ.DE
bash linux http://www.panticz.de/find http://www.panticz.de/rsync http://www.panticz.de/sed http://www.panticz.de/ssh http://www.panticz.de/ip http://www.panticz.de/apt # remove multiple blanks and tabs cat in.txt | sed "s/[ \t][ ]*/ /g" > out.txt # remove blanks from beginning cat in.txt | sed 's/^...

Man in the Rain