ABOUT nc Netcat (often abbreviated to nc) is a computer networking utility for reading from and writing to network connections using TCP or UDP. Netcat is designed to be a dependable back-end that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging …
Monthly Archives: December 2009
nc – TCP/IP swiss army knife
A UNIX Command Window I Server $nc -l -p 3333 hello hello how are you ? fine Window II client $nc 127.0.0.1 3333 hello hello how are you ? fine UNIX Explanation netcat is a simple unix utility which reads and writes data across network connections, using TCP or UDP protocol. Related Source Code Exposition …
nc
netcat is a simple unix utility which reads and writes data across network connections, using TCP or UDP protocol. netcat examples
free – Display amount of free and used memory in the system
A UNIX Command $free total used free shared buffers cached Mem: 507008 432908 74100 0 14700 186816 -/+ buffers/cache: 231392 275616 Swap: 1485972 0 1485972 $free -m total used free shared buffers cached Mem: 495 422 72 0 14 182 -/+ buffers/cache: 225 269 Swap: 1451 0 1451 $ UNIX Explanation Display amount of free …
Continue reading “free – Display amount of free and used memory in the system”
free -m
Display amount of free and used memory in the system.
tee – read from standard input and write to standard output and files
A UNIX Command $tee name my name is nice. my name is nice. $cat name my name is nice. $ UNIX Explanation Copy standard input to each FILE, and also to standard output. A special variant of the tee for the shell is called script and permits duplicating all input commands submitted to a shell …
Continue reading “tee – read from standard input and write to standard output and files”
tee
Copy standard input to each FILE, and also to standard output. A special variant of the tee for the shell is called script and permits duplicating all input commands submitted to a shell into a file.
stat – display file or file system status
A UNIX Command stat -f / $stat -f / File: “/” ID: bc427fdafb7b0541 Namelen: 255 Type: ext2/ext3 Block size: 4096 Fundamental block size: 4096 Blocks: Total: 18864769 Free: 16209639 Available: 15251363 Inodes: Total: 4792320 Free: 4684854 $ UNIX Explanation Display file or file system status. Related Source Code Exposition static bool do_statfs (char const *filename, …
Continue reading “stat – display file or file system status”
stat
Display file or file system status.
vmstat – Report virtual memory statistics
A UNIX Command . vmstat -m Cache Num Total Size Pages fat_inode_cache 23 23 688 23 fat_cache 102 102 40 102 isofs_inode_cache 0 0 656 12 udf_inode_cache 23 23 712 23 fuse_request 0 0 632 25 fuse_inode 0 0 768 21 dm_crypt_io 0 0 152 26 kcopyd_job 0 0 368 22 dm_uevent 0 0 2608 …
Continue reading “vmstat – Report virtual memory statistics”