Archive for the ‘bash’ Category
How to install and load module ipt_set
Download and install the following packages aptitude install xtables-addons-source xtables-addons-common then do this m-a -v -t auto-install xtables-addons and then ipset –create trustedip nethash ipset –add trustedip 100.100.100.100 ipset –add trustedip 100.100.100.0/24 iptables -A input -m set –match-set trustedip src -j ACCEPT
Read the rest of this entry »How to tar a list of files
If you want to tar a multiple files you must write a file containing a list of file to backup and the use this command: cat listoffiles.txt | xargs tar czvf yourbackupname.tgz – or tar zcvf yourbackupname.tgz $(cat listoffiles.txt)
Read the rest of this entry »