Notes by voodoo

Displaying keyword search results 1 - 10
Created by voodoo on May 22, 2012 12:26:41    Last update: May 22, 2012 12:26:41
My program core dumped but there was no core file. The problem was that the core file size was 0: $ ulimit -a core file size (blocks, -c... Use ulimit to enable it: $ sudo bash # ulimit -c unlimited
Created by voodoo on February 18, 2012 13:20:50    Last update: February 18, 2012 13:20:50
A detailed tutorial on iptables: Linux Packet Filtering and iptables " This document was simply written to give everyone a good and simple primer at how to get started with iptables, but at the same time it was created to be as complete as possible. It does not contain any targets or matches that are in patch-o-matic for the simple reason that it would require too much effort to keep such a list updated. If you need information about the patch-o-matic updates, you should read the info that comes with it in patch-o-matic as well as the other documentations available on the Netfilter main page. "
Created by voodoo on December 08, 2011 14:32:06    Last update: December 08, 2011 14:32:06
Use the read command to pause a shell script and give the user a chance to stop it: #!/bin/sh echo "Press CTRL-C to stop this scrip...
Created by voodoo on December 08, 2011 08:52:40    Last update: December 08, 2011 08:52:40
I don't know if there's a fool proof way to find out which Linux distro you are running on, but here are some ways you can try: cat /proc/version cat /etc/issue cat /etc/*release lsb_release -a Results on Ubuntu 11.10 oneiric: $ cat /proc/version Linux version 3.0.0-13-gene... Results on Red Hat Enterprise Server: $ cat /proc/version Linux version 2.6.18-128.1....
Created by voodoo on November 22, 2011 12:27:12    Last update: November 22, 2011 12:31:50
Unix hidden files are named starting with a dot ".". To find hidden files in the current directory: $ find . -type f -name '.*' or $ find . -type f | grep \\/\\. To find hidden files in the marketing directory: $ find marketing -type f -name '.*' or $ find marketing -type f | grep \\/\\.
Created by voodoo on August 12, 2011 12:47:50    Last update: August 12, 2011 13:03:00
Use fstream and seekg : #include <iostream> #include <fstream> i... With stat : #include <iostream> #include <sys/stat.h> ...
Created by voodoo on August 11, 2011 12:49:55    Last update: August 11, 2011 12:49:55
To diff two directories: diff dir1 dir2 To diff two directories recursively: diff -r dir1 dir2 Version of diff : $ diff -v diff (GNU diffutils) 2.8.1 Copyrig...
Created by voodoo on June 21, 2011 08:19:33    Last update: June 21, 2011 08:34:28
Got "base64: invalid input" error: $ base64 -d base64_encoded.txt >original.bin ba... which can be easily dismissed as "input is invalid base64 encoded" or "partial input". But I know it's valid base64 encoded input! The problem was, the input was base64 encoded on Windows! The error goes away after converting to Unix format with dos2unix . dos2unix < base64_encoded.txt | base64 -d >origina... Version of base64 used: $ base64 --version base64 (GNU coreutils) 8.5 ...
Created by voodoo on June 16, 2011 11:34:39    Last update: June 16, 2011 11:34:59
Some ways to refresh DHCP on Linux: To release IP address lease: $ sudo dhclient -r then, to get fresh IP: $ sudo dhclient Use ifdown and ifup : $ sudo ifdown eth0 $ sudo ifup eth0 Restart network: $ sudo /etc/init.d/network restart or, $ sudo /etc/init.d/networking restart
Created by voodoo on June 14, 2011 08:15:57    Last update: June 14, 2011 08:17:25
In below examples, the default gateway is 105.52.84.1 . Use " netstat -rn ": $ netstat -rn Kernel IP routing table Destin... Use " route -n ": $ route -n Kernel IP routing table Destinati... Use " ip route show ": $ ip route show 105.52.84.0/24 dev eth0 proto ...
Previous  1 2 3 Next