Archivo de la categoría: linux

Using lsof utility

lsof is one of the little known but very powerfull utility in Linux. Man pages basically says that lsof: list open files. But you can use it for managing and tracking network connections, you can list open ports, identify connections currently being made to your system, and determine what resources a process is using. Not… Leer más: Using lsof utility »

FIO Perf Tool Nutshell

FIO is an I/O tool meant to be used both for benchmark and stress/hardware verification. It has support for 13 different types of I/O engines (sync, mmap, libaio, posixaio, SG v3, splice, null, network, syslet, guasi, solarisaio, and more), I/O priorities (for newer Linux kernels), rate I/O, forked or threaded jobs, and much more. It… Leer más: FIO Perf Tool Nutshell »

Easter Eggs

$ aptitude moo There are no Easter Eggs in this program. $ aptitude -v moo There really are no Easter Eggs in this program. $ aptitude -vv moo Didn’t I already tell you that there are no Easter Eggs in this program? $ aptitude -vvv moo Stop it! $ aptitude -vvvv moo Okay, okay, if… Leer más: Easter Eggs »

Transmission 2.40 and above (RPC version: 14 and above)

https://code.google.com/p/transmission-control/ Introduction Transmission Web Control is a custom web UI, Support Transmission Version Transmission 2.40 and above (RPC version: 14 and above) Features Add torrent files or URLs Drag-and-drop to add torrent files Online modify the Transmission setting (Download folder,Speed ​​limit,Port,etc.) Pause / resume / recheck selected or all torrents View the current torrents status… Leer más: Transmission 2.40 and above (RPC version: 14 and above) »

Bash String Comparison: Find Out IF a Variable Contains a Substring

http://www.cyberciti.biz/faq/bash-find-out-if-variable-contains-substring/   How do I determine whether a variable called spath=»/srv/www/cyberciti.biz/https» contains a substring called «cyberciti.biz»? You can use the portable BourneShell syntax as follows: case «$var» in *pattern1* ) echo «do something #1»;; *pattern2* ) echo «do something # 2»;; * ) echo «Error…»;; esac Here is a sample code: #!/bin/bash spath=»/srv/www/cyberciti.biz/https» sync_root(){ echo… Leer más: Bash String Comparison: Find Out IF a Variable Contains a… »