Feed aggregator

How to list package files with dnf in Linux (RHEL, CentOS, Rocky, Fedora, and Alma Linux)

nixCraft - 9 hours 45 min ago
If you’re using RHEL, CentOS, Rocky, Fedora, or Alma Linux, you may encounter situations where you must list files in a package before installing it. Similarly, there might be instances where you need to locate a specific configuration file after installing the package. In this guide, I’ll provide a quick tip for developers and sysadmins […] Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to list package files with dnf in Linux (RHEL, CentOS, Rocky, Fedora, and Alma Linux) appeared first on nixCraft. 2023-10-23T11:03:32Z 2023-10-23T11:03:32Z Vivek Gite

How to install Perl in Fedora Linux

nixCraft - 9 hours 45 min ago
I am migrating an old Perl project from an unsupported OS to Fedora Linux 38. However, I discovered that Perl is not installed by default, while Python 3 is. This seems ridiculous. Anyway, here is how to install Perl in Fedora Linux including latest version of mod_perl with Apache (HTTPD) and get on with your life. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to install Perl in Fedora Linux appeared first on nixCraft. 2023-10-22T16:25:26Z 2023-10-22T16:25:26Z Vivek Gite

How to fix “Error: Can’t open display: (null)” with ssh and xclip command in headless mode

nixCraft - 9 hours 45 min ago
When you try to use the xclip command over the ssh-based session to copy and paste data, you will get the following message on screen: Error: Can't open display: (null) Here is how to fix this error by editing the ssh client and OpenSSH (SSHD server) configuration file. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to fix “Error: Can’t open display: (null)” with ssh and xclip command in headless mode appeared first on nixCraft. 2023-10-08T20:01:52Z 2023-10-08T20:01:52Z Vivek Gite

How to block AI Crawler Bots using robots.txt file

nixCraft - 9 hours 45 min ago
Are you a content creator or a blog author who generates unique, high-quality content for a living? Have you noticed that generative AI platforms like OpenAI or CCBot use your content to train their algorithms without your consent? Don't worry! You can block these AI crawlers from accessing your website or blog by using the robots.txt file. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to block AI Crawler Bots using robots.txt file appeared first on nixCraft. 2023-09-29T20:40:17Z 2023-09-29T20:40:17Z Vivek Gite

Find files that do not have any owners or do not belong to any user under Linux/UNIX

nixCraft - 9 hours 45 min ago
{Updated} Here is a Linux, Unix, *BSD and macOS command to search the entire system for files with no group or user.The post Find files that do not have any owners or do not belong to any user under Linux/UNIX appeared first on nixCraft. 2023-09-28T22:07:00Z 2023-09-28T22:07:00Z Vivek Gite

How to install wget on Fedora Linux using the dnf command

nixCraft - 9 hours 45 min ago
Wget is a command-line tool to download files from the Internet or local servers. It is not a graphical user interface (GUI) program, and it must be used by typing commands into a terminal application. You can download files from the web. It supports HTTP, HTTPS, FTP, and other protocols. It can mirror entire websites or directories. Wget can resume downloads interrupted due to a network error or a power outage. Wget can start the download again from where it left off. Thus saving you bandwidth and download time. Let us see how to install wget under Fedora Linux. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to install wget on Fedora Linux using the dnf command appeared first on nixCraft. 2023-09-14T20:19:42Z 2023-09-14T20:19:42Z Vivek Gite

How to install vim in Alpine Linux

nixCraft - 9 hours 45 min ago
Learn how to install Vim, the most popular text editor for server-based environments, on Alpine Linux using the command "apk add vim" command and Docker or LXD (Linux container) image. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to install vim in Alpine Linux appeared first on nixCraft. 2023-08-28T01:36:15Z 2023-08-28T01:36:15Z Vivek Gite

How do I list all USB devices in Linux?

nixCraft - 9 hours 45 min ago
{Updated} Need to find all USB devices connected to your Linux laptop or computer? Simply use the lsusb command (LIST USB) and other CLI and GUI tools in Linux.The post How do I list all USB devices in Linux? appeared first on nixCraft. 2023-08-18T18:31:00Z 2023-08-18T18:31:00Z Vivek Gite

How to reboot Alpine Linux using Ansible when kernel is updated

nixCraft - 9 hours 45 min ago
You can use the reboot or shutdown -r now to reboot the Linux system. However, this doesn't scale well if you have many Alpine Linux servers (or clusters based upon Alpine Linux) and need to reboot the server only if a new Linux kernel is installed. Let us see how to use the Ansible IT automation tool to reboot the Alpine Linux VM or server only when a new Linux kernel is installed. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to reboot Alpine Linux using Ansible when kernel is updated appeared first on nixCraft. 2023-08-16T04:34:25Z 2023-08-16T04:34:25Z Vivek Gite

How To Update macOS Using Command Line Software Update Tool

nixCraft - 9 hours 45 min ago
{Updated} Learn how to update macOS using the command line and many Mac machines using ssh.The post How To Update macOS Using Command Line Software Update Tool appeared first on nixCraft. 2023-08-10T18:33:00Z 2023-08-10T18:33:00Z Vivek Gite

How to decode BASE64 string in Linux and Unix

nixCraft - 9 hours 45 min ago
A long time ago, I wrote a script or config file that included BASE64 encoded string like "Le_PreHook='__ACME_BASE64__START_L3Jvb3QvYmluL2xlL2N5YmVyY2l0aS5iaXovcHJlX2JlZm9yZV9vYnRhaW5pbmdfYW55X2NlcnRpZmljYXRlcy5zaA==__ACME_BASE64__END_". So I wanted to know what this string was to update my config script. Here is how to decode BASE64 in Linux or Unix-like systems. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to decode BASE64 string in Linux and Unix appeared first on nixCraft. 2023-08-08T00:10:32Z 2023-08-08T00:10:32Z Vivek Gite

How to get and extract filename extension in Bash

nixCraft - 9 hours 45 min ago
I have a valuable tip for you on extracting the filename and extension in Bash when using Linux, macOS, FreeBSD, or Unix-like systems. It's quick and easy to follow. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to get and extract filename extension in Bash appeared first on nixCraft. 2023-08-05T06:54:51Z 2023-08-05T06:54:51Z Vivek Gite

Bash Append Text To a Variable (Concatenate Strings)

nixCraft - 9 hours 45 min ago
{Updated} How do I append additional text a variable? For e.g., I've a vech set as follows: vech='London', I would like to add (append) 'Bus' word to '$vevh' under UNIX or Linux shell scripting using bash?The post Bash Append Text To a Variable (Concatenate Strings) appeared first on nixCraft. 2023-08-03T07:36:00Z 2023-08-03T07:36:00Z Vivek Gite

Debian/Ubuntu Linux show package changelog command

nixCraft - 9 hours 45 min ago
Are you interested in checking the changelog of a package on Debian or Ubuntu and Linux Mint? You may need to search to see if the particular CVE (Common Vulnerabilities and Exposures) is fixed. Suppose you have installed or upgraded a package in Debian or Ubuntu Linux. In that case, you can easily find out what changes have been made to the package, including new features or bug fixes. Here's how you can view the changelog of a Debian package in Debian or Ubuntu Linux. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post Debian/Ubuntu Linux show package changelog command appeared first on nixCraft. 2023-08-02T04:37:32Z 2023-08-02T04:37:32Z Vivek Gite

How check or see laptop battery health in Linux

nixCraft - 9 hours 45 min ago
There are a few ways to check your Laptop's battery health in Linux. Here are a few methods that use the upower and acpi commands to check your Laptop's battery health in Linux, such as battery percentage, battery vendor name, current battery state, charge cycles, and more. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How check or see laptop battery health in Linux appeared first on nixCraft. 2023-07-31T08:57:03Z 2023-07-31T08:57:03Z Vivek Gite

Howto Find Out or Learn Harddisk Size in Linux or UNIX

nixCraft - 9 hours 45 min ago
{Updated} There are many ways to show btrfs, zfs, and ext4/3 disk info in Linux and Unix. Here are a few of the most common commands for developers and sysadmins to find out their hard disk size using the CLI.The post Howto Find Out or Learn Harddisk Size in Linux or UNIX appeared first on nixCraft. 2023-07-29T02:20:00Z 2023-07-29T02:20:00Z Vivek Gite

How to run script after mounting NFS with systemd in Linux

nixCraft - 9 hours 45 min ago
If you need to execute a shell script or command following the mounting of a particular file system in Linux using systemd, you can do so. For instance, you can run a backup task when a USB hard disk is mounted or adjust specific options at runtime when NFS is mounted. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to run script after mounting NFS with systemd in Linux appeared first on nixCraft. 2023-07-27T17:56:59Z 2023-07-27T17:56:59Z Vivek Gite

How to Mount NFS File System in Ubuntu Linux

nixCraft - 9 hours 45 min ago
{Updated} NFS (Network File System) client allows you to access the shared directory from the Linux client. The computer sharing the directory is called the NFS server (it can be a NAS server, too), and the computers or devices connecting to that server are called clients. The clients need to use the mount command to access the shared directory.The post How to Mount NFS File System in Ubuntu Linux appeared first on nixCraft. 2023-07-27T11:36:00Z 2023-07-27T11:36:00Z Vivek Gite

How Do I install .deb Packages in Ubuntu Linux Using the CLI or GUI?

nixCraft - 9 hours 45 min ago
{Updated} You need to use the dpkg command or apt-get command/apt command, which is a package manager from shell/command prompt under a Debian and Ubuntu Linux. You can use this tool to install, build, remove and manage packages. The dpkg itself is controlled entirely via command line parameters. Let us see how to install .deb package file in Ubuntu Linux using the CLI.The post How Do I install .deb Packages in Ubuntu Linux Using the CLI or GUI? appeared first on nixCraft. 2023-07-27T11:31:00Z 2023-07-27T11:31:00Z Vivek Gite

How to check for Wayland or Xorg (X11) Linux desktop

nixCraft - 9 hours 45 min ago
Am I using X11 (Xorg) or Wayland? Here is how to check for Wayland or Xorg (X11) Linux desktops using the CLI and GUI options. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to check for Wayland or Xorg (X11) Linux desktop appeared first on nixCraft. 2023-07-25T02:29:20Z 2023-07-25T02:29:20Z Vivek Gite

Syndicate content
Comment