≡ Menu

UNIX

How To Find Out HP Network Printer Serial Number Remotely Using Bash Shell On Linux or Unix

I manage a small network including couple of HP printers. Is there an easy way to access HP printer serial number in the terminal on Linux or Unix-like system? How do I find the model, product, and serial number on my HP printer using bash command line options?
[click to continue…]

Sysadmin because even developers need heroes!!!

How To Wakeup Backup Nas Server and Mirror Files Using Rsync in Linux

I‘ve a critical data stored on my small home server. I backup my Desktop, Laptop and a remote VPS server to my home nas server powered by Debian Linux using rsnapshot backup utility. In the event that my main nas server has a hardware (hard disk failure) problem, having mirrored files provides some sort of peace of mind. How do I mirror /backups/personal (total 100GB and growing everyday) to a secondary nas Linux server located in my network?
[click to continue…]

How to Set Locales (i18n) On a Linux or Unix

What is a “locale” on a Linux operating system? How do I set or get locals (i18n) values on a Linux operating system?
[click to continue…]

How To SSH Run Multiple Command On Remote Machine And Exit Safely

I have a backup sync program on local server. I have an ssh password less login set up, and I can run commands on an external server in bash script doing:

ssh root@server2 "sync; sync; /sbin/shutdown -h now"

How do I run multiple commands in bash on a remote Unix or Linux server? What is the best way to SSH in and run various unix commands in a bash shell?
[click to continue…]

Google Compute Engine scp Files on a Linux or Unix or Mac OS X

Scp command copies files between hosts on a network using ssh for data transfer. How do I use scp toefacilitate the remote file transfer using Google Compute Engine virtual machines on a Linux, OS X or Unix-like system?
[click to continue…]

How To: Restart Apple Mac OS X Airport Networking From the Bash Terminal

How do I enable and/or disable networking (AirPort) Ethernet and Wireless from the bash command Line in Apple Mac OS X? How can I restart Wi-Fi via command Line in OS X?
[click to continue…]

How to Prevent & Disable Mac OS X From Sleeping From the Command Line Terminal Application

I‘m running a process to complete backup and covert images in Mac OS X laptop. I do not wish to disable sleep manually from my OS X power options (Energy Saver). How do I temporarily prevent a Mac from sleeping while my process is still active in Mac OS X Unix operating systems? How can I prevent the system from sleeping temporarily from the command prompt?
[click to continue…]

I‘m looking to install pfSense 2.2.x and I would like to install it on a hard disk drive rather than CF (compact flash). How can I install hard disk install via serial console on the soekris net5501 server?
[click to continue…]

How To Find My Public IP Address From Command Line On a Linux

How do I find out my public IP address on the Linux and OS X Unix command line to use with my own bash shell script without using third party web site? Is there command-line option which will show my dynamic IP address on a Ubuntu or Fedora Linux?
[click to continue…]

Linux and Unix Test Disk I/O Performance With dd Command

How can I use dd command on a Linux to test I/O performance of my hard disk drive? How do I check the performance of a hard drive including the read and write speed on a Linux operating systems?
[click to continue…]