Posts

Showing posts from August, 2010

Basic Linux Commands II - linux redirection and pipe

###### linux redirection and pipe ###### features : ability to control IO/Output input redirection " a. cat output redirect ">" a. cat 123.txt > abc.txt populate from info of input append redirection ">>" a. cat 123.txt >> aaa.txt append if exist if not create new aaa.txt ## pipes '|' ## Features : connect the output stream of one command to input of subsequent command a. cat 123.txt | sort b. cat 456.txt 123.txt | sort c. cat 456.txt 123.txt | sort | grep 4
Port mirroring is a technique of monitoring network traffic. By mirroring it forwards a copy of each incoming and outgoing packet from one port of a network switch (manageable) to another port where the packet can be studied. A network administrator uses port mirroring as a diagnostic tool or debugging feature (majorly focused on attacks) such as in IDS (Intrusion Detection Systems). The Port mirroring is able to manage locally or remotely as the administrator wish. In traditional Hub environment its all ports are permanently mirrored. But in Manageable switches we have to configure mirror ports as we wish. This port mirroring is very important in the VOIP environment to accomplish recording the calls.

Basic Linux Commands

1. tty - Reveal the current terminal 2. whoami - shows the current loged in user 3. echo - print in STDOUT 4. set - print and optionaly set variables 5. clear - clear the terminal window 6. history - get the command history of the terminal 7. pwd - present working directory 8. ls - List the content in directory 9. cat - catanate files a. cat 123.txt 456.txt dumps both into STDOUT b. cat 123.txt 456.txt > 123456.txt catanate files and create new file called 123456.txt 10 mkdir - cfreate new directory a. mkdir testRH - create testRH directory 11. cp - copies files a. cp 123.txt testRH/ *** by default it does not give the original created time *** b. cp -v 123.txt testRH/ copy to testRH n show its in STDOUT 12. mv - moves files a. mv 123.txt testRH/ *** give original time stamp of creates **** 13 rm - removes files or directories a. rm 123.txt b. rm -rf 123.txt remove recursively and forcingly 14. touch - create 0byte file a. t...