How to find ulimit for user on LinuxnixCraft
How can I find the correct ulimit values for a user account or process on Linux systems?Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - RedditThe post How to find ulimit for user...
View ArticleTCPDump: Capture and Record Specific Protocols / Port TrafficnixCraft
How do I capture a specific protocol or port, such as 80 (HTTP) or 443 (HTTPS), using the TCPDump tool under Linux/UNIX? How do I record traffic with TCPDump and find problems later on with my network...
View ArticleHow to temporarily disable IPv6 in LinuxnixCraft
Sometimes, you may need to temporarily disable IPv6 in the Linux using net.ipv6.conf.all.disable_ipv6 kernel variable for testing purposes. You can use the sysctl command to turn IPv6 connectivity on...
View ArticleHow to reload .vimrc file without restarting vim on Linux/UnixnixCraft
I am a new vim text editor user. I usually load ~/.vimrc using :vs ~/.vimrc for configuration. Once edited my ~/.vimrc file I need to reload it without having to quit Vim session. How do I edit my...
View ArticleHow to uninstall packages marked “rc” on Debian / Ubuntu LinuxnixCraft
In Debian and Ubuntu Linux, an "rc" status package means the package has been uninstalled, but its configuration files remain on the disk and take up space. Sometimes, certain directories are also in...
View ArticleHow to upgrade Alpine Linux 3.19 to 3.20nixCraft
I am using Alpine Linux v3.18 or v3.19 with my LXD/Incus server. How do I upgrade Alpine Linux v3.19 to Alpine Linux v3.20? How can I upgrade Alpine Linux v3.18 to Alpine Linux v3.20?Love this? sudo...
View ArticleSSH Authentication refused: bad ownership or modes for file...
I'm trying to login using ssh keys but server is only allows to login me using a password. The following message is logged into my Linux or Unix server /var/log/secure or /var/log/auth.log file:Feb 25...
View Articlesttr – Awesome Linux & Unix tool for transformation of the stringnixCraft
sttr demoThe sttr is a free and open-source command-line tool in Golang that lets you easily change and modify text. You can perform transformation operations on the string, such as hashing text,...
View ArticleHow to add interface to vnstat to database for monitoringnixCraft
vnStat is a network traffic monitor for Linux and Unix-like systems. It logs network traffic at different intervals and doesn't require root permissions to run. The implementation involves two...
View ArticleHow to find out AWS EC2 instances type over SSHnixCraft
AWS offers various instance types, and sometimes, you need to know which one you are using or which one has been deployed by someone else (another developer or sysadmin) for a project. Don't worry....
View Articlelnav – Awesome terminal log file viewer for Linux and UnixnixCraft
It is no secret that whether you are a developer or sysadmin, you need to use log files to troubleshoot errors on your Linux and Unix systems. You use tools like grep, tail, cat, or journalctl to view...
View ArticleHow to upgrade OpenSUSE 15.5 to 15.6 using the CLInixCraft
The most recent release of OpenSUSE Linux, version 15.6 "Leap," is now available. This version incorporates the SUSE Linux Enterprise (SLE) source and community developments, making it the ideal option...
View ArticleHow to install incus server on Debian 12/11nixCraft
Incus is a free and open-source project for the next-gen container management platform. It is a fork of LXD (the container hypervisor). It can manage both Linux containers and virtual machines. Let us...
View ArticleShell script to monitor MariaDB replication and send email alert about server...
Here is a simple shell script to notify secondary read-only replica (slave) MariaDB server health status failure via email and push notification. Master-slave data replication allows you to copy...
View ArticleHow to install and configure sudo on Debian LinuxnixCraft
The minimal version of Debian Linux 12/11 does not support sudo. When performing a network installation for Debian, the usual approach is to use the minimum version, which only installs the essential...
View ArticleShell script to see Time-To-Live (TTL) for a DNS record on Linux, Unix, macOS...
TTL is an acronym for Time-To-Live (TTL) in DNS. It sets the time in seconds that a DNS record is allowed to be cached by DNS resolvers (caching server) before it needs to be fetched again from the...
View ArticleHow to shutdown FreeBSD laptop when running out of battery powernixCraft
Email alert example before FreeBSD-based laptop will be shutdown by the script After my Raspberry PI died, I decided not to get a new one immediately. Instead, I turned the older laptop into a FreeBSD...
View ArticleLinux shell script to reduce PDF file sizenixCraft
Here is a handy and useful Linux and Unix shell script that reduce PDF file size using Ghostscript. No need to upload your PDF file to the shady third-party website. Just do it from the terminal. I...
View ArticleHow To check LXD/Incus container BTRFS disk usage on LinuxnixCraft
Here is a quick and dirty shell script I put to check LXD or Incus container size and how much space they are taking on the BTRFS subvolume. Naturally, you must run the script as a root user, and LXD...
View ArticleShell script to set up an LXD / Incus (Linux Containers) lab for testing...
LXD or Incus is a Linux operating system-level container system. You can build over 25+ Linux distros for testing, fun, and profit. You can even run GUI apps inside those containers and get output...
View Article