≡ Menu

Linux For Beginners & Advanced Users

Tutorials, howtos, faqs, hacks, and tips about GNU/Linux operating systems for Linux users sorted by easy, intermediate and advanced level. ( rss feed ).

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?
[click to continue…]

A stack-based critical buffer overflow was found in the way the libresolv library (glibc) performed dual A/AAAA DNS queries. A remote attacker could crash or, potentially, execute code running the library on Linux. How do I patch and protect my server or workstation against the glibc getaddrinfo on Linux operating system?
[click to continue…]

How to reload sysctl.conf variables on Linux

I am new Linux system user. How do I reload all sysctl variables without rebooting my server?
[click to continue…]

Ubuntu sudo: add-apt-repository: command not found error and solution

I‘m trying to run a command ‘sudo add-apt-repository ppa:foo/bar‘ but getting the following error:

     sudo: add-apt-repository: command not found

How do I fix this problem on Ubuntu Linux 14.04 LTS server?
[click to continue…]

Linux Check Disk Space Command

I recently switched from a Windows server to a Linux server operating system. I am using Ubuntu LTS server. How do I find out disk space utilization information using command line option?
[click to continue…]

How To Patch and Protect Linux Kernel Zero Day Vulnerability CVE-2016-0728 [ 19/Jan/2016 ]

A very serious security problem has been found in the Linux kernel. A 0-day local privilege escalation vulnerability has existed since 2012. This bug affects millions of Android or Linux applications to escalate privileges. Any server or desktop (32 or 64 bit) with Linux Kernel version 3.8+ is vulnerable. How do I fix this problem?
[click to continue…]

How to use curl command with proxy username and password on Linux or Unix

My sysadmin provided me the following proxy details:
       IP: 202.54.1.1
       Port: 3128
       Username: foo
       Password: bar

The settings worked perfectly with Google Chrome and Firefox browser. How do I use it with the curl command? How do I tell the curl command to use my proxy settings from Google Chrome browser?
[click to continue…]

The OpenSSH project released an ssh client bug info that can leak private keys to malicious servers. A man-in-the-middle kind of attack identified and fixed in OpenSSH are dubbed CVE-2016-0777 and CVE-2016-0778. How do I fix OpenSSH’s client vulnerability on a Linux or Unix-like operating system?
[click to continue…]

How to find out when Debian or Ubuntu package installed or updated

How do I find and list installed Debian or Ubuntu Linux packages date? How can I see when packages got updated on my systems?
[click to continue…]

How to undefine and unset a bash environment variable on Linux or Unix

I have set the shell variable. I no longer need the variable. How do I undefine or unset a variable in bash on a Linux or Unix-like desktop system?
[click to continue…]