Tag Archives: ubuntu

Windows and Linux according to mighty Google

Windows and Linux according to mighty Google

Here is a humorous take on age old Windows vs. Linux fanboy battel:

MS-Windows as per mighty Google

MS-Windows as per mighty Google

VS

Linux as per mighty Google

Linux as per mighty Google

Halal Vitamins

Powered by WPeMatico

How to run commands on Linux Container (LXD) instance at provision launch time

How to run commands on Linux Container (LXD) instance at provision launch time
I would like to perform common automated configuration tasks and run commands/scripts after the LXD instance starts. How to use cloud-init to run commands on my Linux Container (LXD) instance at launch time?
Halal Vitamins

Powered by WPeMatico

How to automatically mount zfs file system on Linux/Unix/FreeBSD

How to automatically mount zfs file system on Linux/Unix/FreeBSD

I have created a zfs file system called data/vm_guests on Ubuntu Linux server. After the server reboot, zpools do not automatically mount at /data/vm_guests. It is failing my KVM guest machines. How can I mount my ZFS (zpool) automatically after the reboot?
Halal Vitamins

Powered by WPeMatico

Find the oldest file in Unix or Linux file system

Find the oldest file in Unix or Linux file system

So I wanted to know the oldest file on my Debian Linux box.

find / -type f -printf '%T+ %pn' | sort | head -n 1
Here is an another example for /etc/
find /etc/ -type f -printf '%T+ %pn' | sort | head -n 10

Find the top 10 oldest file in a directory tree on GNU/Linux

Find the top 10 oldest file in a directory tree on GNU/Linux

So find command finds all files in / and print it with a special format. The %T+ (in -printf) means file’s last modification date and time in separated by +, for example ‘2004-04-28+22:22:05.0’. This is a GNU extension and may not work on other BSD/find or any other version of find. The %p indicts the file name. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. Cool, eh?

(Credit: Ubuntu forums).

Halal Vitamins

Powered by WPeMatico

How to forcefully mark down pfSense Gateway as down

How to forcefully mark down pfSense Gateway as down

I have two internet connections (fiber and 4G LTE) configured in load balanced mode using pfSense FreeBSD based firewall. One of my connection is running out of bandwidth quota. How can I force and turn off this interface to save bandwidth until month end and enable it again from next billing cycle?
Halal Vitamins

Powered by WPeMatico

How do I learn coding in a single night?

How do I learn coding in a single night?

Here is another funny image:

How do I learn coding in a single night?

How do I learn coding in a single night?

What do you think?

Halal Vitamins

Powered by WPeMatico

It is not UNIX’s job to stop you from shooting your foot. If you so choose to do so, then it is UNIX’s job to deliver Mr. Bullet to Mr Foot in the most efficient way it knows.

It is not UNIX’s job to stop you from shooting your foot. If you so choose to do so, then it is UNIX’s job to deliver Mr. Bullet to Mr Foot in the most efficient way it knows.

Here is Terry Lambert quote for you.

It is not UNIX's job to stop you from shooting your foot. If you so choose to do so, then it is UNIX's job to deliver Mr. Bullet to Mr Foot in the most efficient way it knows.

It is not UNIX’s job to stop you from shooting your foot. If you so
choose to do so, then it is UNIX’s job to deliver Mr. Bullet to Mr Foot
in the most efficient way it knows.

Do you agree with it?

Halal Vitamins

Powered by WPeMatico

Schrodinger Backups: The condition of any backup is unknown until a restore is attempted

Schrodinger Backups: The condition of any backup is unknown until a restore is attempted

A tweet about backups got pretty popular among sysadmin and IT community. The tweet read as follows:

Picture

The condition of any backup is unknown until a restore is attempted

The condition of any backup is unknown until a restore is attempted

Here is a tweet

#Sysadmin #Truth #Backup #Unix #Linux pic.twitter.com/suCT9ME58V

— nixCraft # (@nixcraft) June 24, 2015

Halal Vitamins

Powered by WPeMatico