Tuesday, March 31, 2009

Affluenza

I heard word 'Affluenza' before. Today, I decided to read actual definition.
Affluenza - a painful, contagios, socially transimeeted condition of overload, debt, anxiety... An usustainable addiction to economic growth. Pursuit of the American Dream and etc.
More Information can be found in Wikipedia (http://en.wikipedia.org/wiki/Affluenza)

Monday, March 30, 2009

Paste (Unix command)

I'm using list for some time now. Accidentally found new command that is useful.
paste is a Unix command line utility that join files horizontally (parallel merging).
paste who where when > www

ntbstat

ntbstat - Display protocol statistics and current TCP/IP connections using (NETBIOS over TCP/IP) resolves NetBIOS names to IP addresses. NetBIOS name resolution , including local cache lookup, WINS server query, broadcast, LMHOSTS lookup, Hosts lookup and DNS server query. Nbstat is designed to help troubleshoot NetBIOS name resolution problems.

nbtstat help
nbtstat -A IP_Address (to get MAC from any computer on the subnet). Works only on Windows.

Sunday, March 29, 2009

File System Type (Linux)

To determine File System Type enter the command df -T

Regression Testing

Regression testing is any type of software testing which seeks to uncover software regressions. Such regressions occur whenever software functionality that was previously working correctly, stops working as intended. Typically regressions occur as an unintended consequence of program changes. Common methods of regression testing include re-running previously run tests and checking whether previously fixed faults have re-emerged.

Revision Control (RC)

Revision Control (aka version control , source control or (source) code management (SCM) is the management of changes to documents, programs, and other information stored as computer files.

Linux FileSystem Hierarchy

/bin - binary
/dev - devices (virtual directory, devices add to the directory at boot)
/etc - configuration settings
/home - home directory
/lib - shared library
/mnt - mount directory
/proc - virtual directory (current state of the system)
/root - root home directory (security user)
/sbin - security bin (Require Secure Access)
/tmp - temporary directory
/usr - unix system resources
/var - variable data (logs, crons, spool, db files)

Saturday, March 28, 2009

VI(m) commands

dw - delete word in VI (foreward)
D - Delete remainer of line

Friday, March 27, 2009

Man Pages Navigation

space - page down
b - page up
q - quit/exit
down arrow OR j - quit/exit
up arrow OR k - line up
g - top of the document
G - end of the document
/search_pattern - top of the document
?search_pattern - end of the document
n - repeat search
N - repeat search in opposite direction
h - help

Input and Output Redirection in Linux

Standard Input - 0
Standard Output - 1
Standard Error - 2

> - Output Redirection
< - Input Redirection

# Send an error when file doesn't exist
ls -l myfile.txt 2> test.txt (/bin/ls: adad: No such file or directory)

2>&1 (redirect input and error) into normal file
ls -l xxx.txt 2>&1 another_file