Laden...
nixCraft Linux / UNIX Newsletter |
How to convert JSON to CSV using Linux / Unix shell Posted: 22 Jul 2022 06:15 AM PDT Today I will talk about a common problem faced by many Linux or Unix sysadmins and developers. Typically modern apps and security devices heavily depend upon APIs and lists that feed data in JSON format. For example, a list of spamming or VPN CIDRs or a good list of verified bots' IP CIDRs is in JSON format. If they accept JSON format, you can take this list and upload it to your router or WAF. Unfortunately, not all devices accept JSON format. Hence, we can take JSON format and convert it to CSV format per our needs. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to convert JSON to CSV using Linux / Unix shell appeared first on nixCraft. |
How to display all NAT IPTables rules on Linux Posted: 19 Oct 2021 12:46 AM PDT {Updated} How do I see all the rules in NAT tables under CentOS / RHEL / Debian / Ubuntu Linux based server? The post How to display all NAT IPTables rules on Linux appeared first on nixCraft. |
Posted: 30 Sep 2021 01:10 AM PDT {Updated} Learn how to fix warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory on macOS or OX terminal. The post macOS Terminal: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory Fix appeared first on nixCraft. |
How to protect Linux against rogue USB devices using USBGuard Posted: 29 Sep 2021 02:43 PM PDT {nixCraft Patreon supporters content} You deployed a perfect firewall and other network security policies preventing unauthorized access to the user's desktop computer over a network. However, you still need to block USB device access. We can configure a Linux desktop security policy to protect your computer against rogue USB devices (a.k.a. BadUSB) by implementing essential allow and blocklisting capabilities based on device attributes. For instance, I can define what kind of USB devices are authorized and how a USB device interacts with the Linux system. For example, I can define policy allowing Yubikey with serial number "XYZ" and USB LTE modem with serial # "ABC." Every other USB device access is denied by default. This guide will cover the following topics:The post How to protect Linux against rogue USB devices using USBGuard appeared first on Opensource Flare✨. |
A podman tutorial for beginners – part I Posted: 13 Sep 2021 08:27 AM PDT {nixCraft Patreon supporters content} This guide explains how to build and deploy applications quickly with Podman to the cloud server of your choice. All examples in this tutorial are tested on Fedora Linux 34, but they should work on any Linux distros as long as you install the correct packages. I prefer to use Fedora when my clients use RHEL 7/8. Experimental podman packages are also available for Windows and macOS, but I have not tested those. Running containers without Docker is possible with Podman. This page is the first part of building containers with Podman, which explains installing Podman and working with images, including basic concepts of containers. This guide will cover the following topics:The post A podman tutorial for beginners – part I appeared first on Opensource Flare✨. |
How To Find OpenSuse / SUSE Linux Version Using CLI Posted: 08 Sep 2021 02:14 PM PDT {Updated} How do I find out my Suse Linux / OpenSuse Linux / Suse Enterprise Linux server/desktop version using the command line options? What is the command to find out OpenSUSE Linux version? The post How To Find OpenSuse / SUSE Linux Version Using CLI appeared first on nixCraft. |
How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD Posted: 08 Sep 2021 03:52 AM PDT Most of us use love and use the jq command. It works on Linux or Unix-like systems to extract data from JSON documents. Recently I found htmlq, which is like jq and written in Rust lang. Imagine being able to sed or grep for HTML data. We can search, slice, and filter HTML data with htmlq. Let us see how to install and use this handy tool on Linux or Unix and play with HTML data. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD appeared first on nixCraft. |
Linux Execute Cron Job After System Reboot Posted: 07 Sep 2021 10:22 PM PDT {Updated} crontab is the program used to install, deinstall, or list the tables used to drive the cron daemon in Vixie Cron. You can run a cron job after Linux or Unix system rebooted. Handy for tasks that needs to be executed when your server comes online after kernel update and so on. The post Linux Execute Cron Job After System Reboot appeared first on nixCraft. |
How to see grep output in color with highlighting feature Posted: 31 Aug 2021 12:41 PM PDT {Updated} The grep command is the de facto tool for searching text files. However, finding the requested text in the search results can be difficult when there are too many matches. So how do you grep in color for ease of reading on screen when using Linux or Unix terminal? The post How to see grep output in color with highlighting feature appeared first on nixCraft. |
How To Put Multi-Line Comment in Shell Script Posted: 31 Aug 2021 02:25 AM PDT {Updated} This page describes various methods developers and sysadmin can use to put a multi-Line comment in shell script (bash/ksh) running on a Unix or Linux box. The post How To Put Multi-Line Comment in Shell Script appeared first on nixCraft. |
You are subscribed to email updates from nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED). To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Inbox too full? Subscribe to the feed version of nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED) in a feed reader. | |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
Laden...
Laden...