nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format - 12de

Latest Articles

Linux prevent unprivileged users from viewing dmesg command outputs

I want to restrict both normal users and root user inside LXD container “hypervisor” from viewing and using dmesg command output. How do I prevent non-root (unprivileged) Linux users from viewing the Linux kernel’s log buffer? Can Linux prevent unprivileged users from viewing dmesg command out...

How to return pid of a last command in Linux / Unix

I need to find and return the PID of the last command executed in Linux. How do I return the PID of command in Linux?One can easily find the PID of the last executed command in shell script or bash. This page explains how to get the PID of a last executed app/program. How to return pid of a las...

RHEL / Centos Linux Disable Firewall Command

How do I disable firewall on CentOS or Red Hat Enterprise Linux server version 5.x/6.x running on my HP micro server?You need to disable the following services to disable firewall under Red Hat Enterprise Linux or CentOS Linux version 4 / 5 / 6. The following commands also works on Fedora or...

Linux hide processes from other users and ps command

I run a multi-user system. Most users access resources using SSH client. How can I stop leaking process information to all users on Linux operating systems? How do I prevent users from seeing processes that do not belong to them on a Debian/Ubuntu/RHEL/CentOS Linux server? Is there any way...

Linux Check User Password Expiration Date and Time

How do I check the user account password expiry information on Linux? How do I check users password expiry information under Linux operating systems?One can easily check the user account password expiry information on Linux. The /etc/shadow files stores actual password in encrypted format fo...

Debian Linux 10.2 released and here is how to upgrade it

The Debian GNU/Linux project has released an updated version of its stable Linux distribution Debian 10 (“buster”). You must upgrade to get corrections for security problem as this version made a few adjustments for the severe issue found in Debian version 10.1. Debian is a Unix-like (Linux ...

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?Debian or Ubuntu Linux log package status changes and actions to a file. The default is /var/log/dpkg.log file. This file has log message in the following format: ...

Bash get filename from given path on Linux or Unix

How do I extract filename and extension in the Bash shell script from the given path? How can I get filename from the path under the bash shell?It is possible to get just the filename from a path in a bash shell script running on a Linux or Unix-like systems. One can use any one of the following...

Shell script to set up an LXD (Linux Containers) VM lab for testing purpose

A sample shell script to build an LXD (Linux Containers) VM lab on Ubuntu Linux 16.04 or 18.04 LTS server. #!/usr/bin/env bash # Purpose: Setup an LXD vm lab quickly by creating VMs. This script: # a) Attach bridge to vm # b) Assign an IPv4 address # c) Start VM # d...

/proc/filesystems: Find out what filesystems supported by Linux kernel

So, How do you find out or see which filesystems are supported by the Linux kernel? The answer is simple. Use /proc/filesystems file. It is the file used to detect filesystems supported by running kernel. You can quickly run grep command or cat command to display the list of all supported fi...

VI / VIM: Open File And Go To Specific Function or Line Number

How do I open a text file using VIM or VI and go to specific line? How do I open a file using vim and go to specific function() in my source code?You can go to a particular line or word in a file when using vi or vim text editor under Linux or Unix-like systems. There are several methods to ...
Related Articles

FarmVille Photo 2018-06-05 19:42

ATTENTION, Farmers! 📢 FarmVille is turning 9 this June 🤗 and you are invited for a month-long celebration! 🎉🤩 Send us your birthday greetings below, and join the "FarmVille Birthday" Farmstand for exciting rewards! 🎊🎁 Use the hashtag #FarmVilleBirthday #FarmVilleTurns9 NOW! ️👨‍🌾9️⃣👩‍🌾 Thanks for being with us throughout these years! 😊 #TuesdayThoughts #FarmVille #Birthday Official and Complete Walkthrough: https://zynga.my/FVFarmVilleBirthdayFarmstand PLAY NOW! https://zynga.my/FarmVille1