HostOnNet Blog

Category Archives: Linux

Device or resource busy

When i try to move a folder, i get following error First see if this folder is mounted with command If it is mounted, you need to unmount it first before renaming. To see which program access the folder, use


To add swap file to linux system, run To make it active on boot, edit /etc/fstab, add Add


sar is a tool to collect, report and store system activity information, a very useful tool to debug server performance related problems. To install sar on CentOS/RHEL, run To view memory stats, run To view IO stats (disk usage), run

Making POST request with curl

For an API request, i need to sent POST request with following data. POST Content-Type: application/json { “username”:”demouser1″, “password”:”mypassword” } This can be done with following curl command Here –request POST tell curl to use POST method for the

Remove a servers key fingerprint from known_hosts

I was creating a program that login to remove server using PHP and run some commands. The servers key fingerprint was already on my known_hosts file. To verify script still work with out the fingerprint in known_hosts, i want to

Add IP in CentOS Server via Command Line

I installed CentOS 7 on a Hyper-V server. I want to manually assign IP to the server. This is done by editing file The file name vary depending on the network interface you have. Instead of editing the file via

Installing PowerShell On Ubuntu

Microsoft have recently Open Sourced PowerShell and made it available for Linux and Mac. To Install powershell on Ubuntu, go to Download latest release. To install PowerShell v6.0.0-alpha.17 Release, run Bit install fails with some warning, i have

Alpine Linux – Tiny Linux Distribution

Alpine Linux is a tiny linux distribution based on busybox. System details are / # cat /etc/*release 3.5.2 NAME=”Alpine Linux” ID=alpine VERSION_ID=3.5.2 PRETTY_NAME=”Alpine Linux v3.5″ HOME_URL=”” BUG_REPORT_URL=”” / # uname -r 4.9.0-2-amd64 / # Total size of file system is


Installing Docker on Debian 9 Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Latest version of Debian is 8, code named

SSH publickey authentication not working

On a CentOS 6.8 server i added my SSH public key. When i login, it keep asking me the password. I enabled debug message with Still don’t see any useful info to debug. It just ended up with debug1: Authentications