Use Iperf to Measure Network Throughput (Bandwidth) on Windows or Linux

Iperf was developed by NLANR/DAST as a modern alternative for measuring maximum TCP and UDP bandwidth performance. Iperf allows the tuning of various parameters and UDP characteristics. Iperf reports bandwidth, delay jitter, datagram loss. Install iperf on Windows – just download, unzip and run iperf.exe. Install iperf on Ubuntu:     sudo apt-get install iperf Iperf […]

Open a Website from the Windows Command Line

Here are three ways to open a web page from the command prompt from Windows 7, Windows Vista, Windows XP, etc. All of the following examples will open the designated web page in Internet Explorer or other default browser. start <website>Example: start www.powercram.comOR start progra~1intern~1iexplore <website>Example: progra~1intern~1iexplore www.powercram.comOR progra~1intern~1iexplore “program filesinternet exploreriexplore” <website>Example […]

Bandwidth Monitoring Tools for Ubuntu

bmon – Bandwidth monitor and rate estimator bwm-ng – Bandwidth Monitor NG (Next Generation), a live bandwidthmonitor for network and disk IO cbm – displays the current traffic on all network devices iftop – Real-time bandwidth usage information on a specified interface iperf – Tool for measuring maximum TCP and UDP bandwidth performance ibmonitor – interactive bandwidth monitor […]

How To Find DNS Server Addresses in Linux

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process. In Linux/BSD/Unix systems you can run the following command to view the […]

How To Use grep Command In Linux

The grep command searches the given file for lines containing a match to the given strings or words. By default, grep prints the matching lines. grep can be used to search for lines of text that match one or many regular expressions, and outputs only the matching lines. grep Syntax grep ‘word’ filenamegrep ‘string1 string2’ […]

How To Edit Linux DNS Configuration Files

Edit /etc/resolv.conf using a text editor such as nano, vi or gedit: nano /etc/resolv.conf Or, for Ubuntu: sudo nano /etc/resolv.conf Add namesevers as necessary: nameserver <ip address>nameserver <ip address>nameserver <ip address> Save and close the config file. See also Change Ubuntu IP Address from DHCP to Static

Find the top 10 largest files and directories on Ubuntu

Unfortunately there is not a simple command in Linux to find the largest files and/or directories. However, combining the following three commands (using pipes) can help you locate the largest files/directories on your file system: du – Estimate file space usage sort – Sort lines of text files or given input data head – Output the first part of […]

Upgrade Ubuntu Server From 8.10 to 9.10 – How To

You can use the following steps to easily upgrade Ubuntu Linux server (or workstation) 8.x to 9.10 (latest version as of this posting), either locally or remotely over ssh from a terminal command line. Note: Backup important data and configuration files first. First, apply latest updates to Ubuntu 8.x using: sudo apt-get updatesudo apt-get upgrade […]

How to update software on Ubuntu / Debian Linux

Ubuntu (and Debian) software can easily be updated using the apt-get command line tool. apt-get can be used from a terminal window as follows: apt-get update: Update is used to resynchronize the package index files from their sources over the Internet.To retrieve updated software list, enter:sudo apt-get update apt-get upgrade: Upgrade is used to install […]