Mac Os X: Find Out Wireless WI-Fi Connection Speed Rate

How do I see my current WI-FI (Wifi) connection speed in Apple Mac OS X?   WI-FI allows an electronic device such as Apple laptop, ipad, iPhone and other iDevices to exchange data or connect…

Awk Floating Point Number Addition Results Are Unexpected

I am using awk to grep ‘foo’ from a text file and cacluate sum of field # 7. But, result is rounded to an integer. I need exact result such as 385858.66 and not 385858…

Nginx Redirect Mobile / Smart Phone Traffic To Mobile Version Of the Web Site

I am a new nginx user and I would like to redirect all mobile / smart phone users from www.example.com to m.example.com domain. How do I detect a mobile phone browser in nginx? How do…

Linux: Log Everyone Out Of The System

I can login as root user on Debian or Ubuntu/RHEL/CentOS Linux based system. I need to log everyone off (all ssh users) to install new kernel and/or hardware. How do I do this on Linux?…

Unix: csh Shell Loop Example

C an you give me a simple loop example in csh shell in Linux or Unix like operating systems?   The C shell (csh) or the improved version, tcsh is a Unix shell that was…

FreeBSD 9.1: HowTo Load a Kernel Module

I am a new FreeBSD Unix users. I am using FreeBSD version 9.1 and how do I load a kernel module called drm using command line option?   You need to use the kldload command.…

Debian / Ubuntu: apt-get Force Reinstall Package

I am a new Debian Linux v.7.x / Ubuntu Linux LTS user. How do I reinstall a package using apt-get command line?   The Advanced Packaging Tool (APT) works on both Debian / Ubuntu and…

W: TMPDIR is Mounted noexec, Will Not Cache Run Scripts Error and Solution

I mount /tmp with nodev, nosuid, and noexec options to increase the security of my Linux based web server. And, whenever I ran apt-get install or apt-get upgrade command, I am getting the following error:…

Bash: Display Web Page Content In Terminal

H ow can I fetch HTML web page content from bash and display on screen using shell utilities?   You can use any one of the following tool or combination of all of them to…

Linux / Unix: Shell Script Find Out In Which Directory Script File Resides

I need to find out in which directory my bash script resides so that I can read config file called .backup .ignore .target. For example, if my script resides in >/home/foo/script.sh, I need to read…