Posts Tagged ‘ubuntu’

Unix / Linux: Remove duplicate lines from a text file using awk or perl

Monday, March 21st, 2016

Unix / Linux: Remove duplicate lines from a text file using awk or perl
I have a text file with exact duplicates of lines. I need to remove all those duplicates lines and preserves the order too on Linux or Unix-like system. How do I delete duplicate lines from a text file? You can use Perl or awk or Python to delete all duplicate lines from a text file […]
Halal Vitamins

Powered by WPeMatico

Linux: lxc forcefully stop and kill container

Monday, March 21st, 2016

Linux: lxc forcefully stop and kill container
I want to stop the application running inside a container. I issued lxc-stop -n myapp but the command is not returning to the shell prompt, and my lxc container entered in hang state. How do I kill my container running on Ubuntu Linux host?
Halal Vitamins

Powered by WPeMatico

How to check Debian/Ubuntu Linux package version using apt-get/aptitude command

Wednesday, March 16th, 2016

How to check Debian/Ubuntu Linux package version using apt-get/aptitude command

I am a new Debian / Ubuntu Linux sysadmin. I would like to find out what version I would install if I ran the apt-get command. How do I find out which versions of a package can I install using apt-cache/apt-get command? How do you check package version using apt-get/aptitude on Debian or Ubuntu Linux server?
Halal Vitamins

Powered by WPeMatico

KVM libvirt assign static guest IP addresses using DHCP on the virtual machine

Wednesday, March 16th, 2016

KVM libvirt assign static guest IP addresses using DHCP on the virtual machine

I am using KVM/libvirt on Linux operating system and how do I assign static IP address using dnsmasq dhcpd server for my default virtual network switch?
Halal Vitamins

Powered by WPeMatico

How to copy permissions from one file to another on Linux

Wednesday, March 16th, 2016

How to copy permissions from one file to another on Linux

I need to copy or clone file ownership and permissions from another file on Linux. Is there a bash command line option to clone the user, group ownership and permissions on a file from another file on Linux operating system?
Halal Vitamins

Powered by WPeMatico

How to configure Nginx with free Let’s Encrypt SSL certificate on Debian or Ubuntu Linux

Wednesday, March 9th, 2016

How to configure Nginx with free Let’s Encrypt SSL certificate on Debian or Ubuntu Linux

How do I secure my Nginx web server with Let’s Encrypt free ssl certificate on my Ubuntu Linux 14.04 LTS or Debian Linux 8.x server?
Halal Vitamins

Powered by WPeMatico

How to find out Raspberry Pi GPU and ARM CPU temperature on Linux

Wednesday, March 9th, 2016

How to find out Raspberry Pi GPU and ARM CPU temperature on Linux
I am using a Raspberry PI 2/3 credit size computer. How do I find out my GPU or ARM CPU temperature from Linux operating system command line option?
Halal Vitamins

Powered by WPeMatico

First 64 bit Raspberry Pi 3 released and here are the complete specs and pricing

Wednesday, March 2nd, 2016

First 64 bit Raspberry Pi 3 released and here are the complete specs and pricing
A new version of the Raspberry PI 3 has released and it is amazing. It is 10x the performance of Raspberry Pi 1. Here are the complete specs for new 64-bit credit card size computer.
Fig.01: Raspberry Pi 3 - Model B - 64 Bit ARMv8 with 1G RAM and WiFi
Halal Vitamins

Powered by WPeMatico

How to upgrade OpenSSH 7.0 to 7.2 on a OpenBSD Unix and Linux

Wednesday, March 2nd, 2016

How to upgrade OpenSSH 7.0 to 7.2 on a OpenBSD Unix and Linux

OpenSSH version 7.2 has been released. How do I install or upgrade my existing OpenSSH version to 7.2 on a OpenBSD unix operating system?
Halal Vitamins

Powered by WPeMatico

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

Wednesday, February 17th, 2016

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

How do I run custom command after ‘apt-get upgrade‘ or ‘apt-get dist-upgrade‘ on a Debian or Ubuntu Linux based system? How do I hook a script to apt-get command on my Ubuntu Linux server?
Halal Vitamins

Powered by WPeMatico