Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Browsing latest articles
Browse All 73 View Live

Image may be NSFW.
Clik here to view.

nvtop – Awesome Linux task monitor for NVIDIA, AMD & Intel GPUsnixCraft

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - RedditThe post nvtop – Awesome Linux task monitor for NVIDIA, AMD & Intel GPUs appeared first on nixCraft.

View Article



Image may be NSFW.
Clik here to view.

How to find OS version of your Linux device/machinenixCraft Updated...

{Updated} Linux is a free and open source operating system. There are many variants of Linux out there. They are typically called Linux distribution. Suse, OpenSUSE, Debian, Ubuntu, CentOS, Arch,...

View Article

Image may be NSFW.
Clik here to view.

How to remove orphaned unused packages in Arch LinuxnixCraft

Arch Linux uses pacman command to add or remove packages. It is a package management utility that tracks installed packages on Arch. So when you uninstall or remove packages, some dependencies are left...

View Article

Image may be NSFW.
Clik here to view.

How To Install LXD on Debian 11 LinuxnixCraft

nixCraft Patreon supporters can download the PDF version here and support independent content creators.You can install LXD pure-container hypervisor on Debian 11 Linux to run an unmodified version of...

View Article

Image may be NSFW.
Clik here to view.

Understanding /etc/shadow file format on LinuxnixCraft Updated Tutorials/Posts

{Updated} In the old days, all Unix and Linux user-encrypted passwords were stored in the world-readable /etc/passwd file. It was reasonably secure then until dictionary attacks on encrypted passwords...

View Article


Image may be NSFW.
Clik here to view.

How to install PHP 8.2 with Apache on Debian 11 LinuxnixCraft

nixCraft Patreon supporters can download the PDF version here and support independent content creators.Debian 11 is an excellent server OS to run the LAMP stack. PHP (Hypertext Preprocessor) is a...

View Article

Image may be NSFW.
Clik here to view.

ttyload - Linux/Unix color-coded graphical tracking tool for load average in...

{Updated} ttyload is a console-based color-coded graph of CPU load average (1 minute, 5 minute, 15 minute) for Linux, and FreeBSD Unix.The post ttyload - Linux/Unix color-coded graphical tracking tool...

View Article

Image may be NSFW.
Clik here to view.

agedu - Linux / Unix Command For Tracking Down Wasted Disk SpacenixCraft...

{Updated} agedu scans a directory tree and produces reports about how much disk space is used in each directory and subdirectory, and also how that usage of disk space corresponds to files with...

View Article


Image may be NSFW.
Clik here to view.

How to find NVIDIA driver version on LinuxnixCraft

To find or check the NVIDIA driver version on Linux to troubleshoot GPU and graphics card issue, check the /sys/module/nvidia/version and /proc/driver/nvidia/version files. Apart from that, you can try...

View Article


Image may be NSFW.
Clik here to view.

Linux cp command copy symbolic (soft) link tutorialnixCraft

Do you want to copy a symbolic (soft) link instead of a file using the cp command under Linux? Try passing the -a (--archive) to copy and preserve all soft (symbolic) links. The cp command is a...

View Article

How to upgrade FreeBSD 13.1 to 13.2 releasenixCraft

The FreeBSD Release Engineering Team is announcing the availability of FreeBSD version 13.2-RELEASE on 11/April/2023. It is the third release of the stable/13 branches. I updated my FreeBSD version...

View Article

Image may be NSFW.
Clik here to view.

Bash see if an input number is an integer or notnixCraft

While working on the bash shell script wrapper, I needed to ensure that I only passed an integer in the Bash script under Linux and Unix-like systems. Here is how to check if a number is an integer in...

View Article

Image may be NSFW.
Clik here to view.

How to upgrade OpenSUSE 15.4 to 15.5 using the CLInixCraft

The latest version of OpenSUSE Linux, version 15.5 "Leap," has been released. This version offers unparalleled stability due to its use of the SUSE Linux Enterprise (SLE) source and community...

View Article


Image may be NSFW.
Clik here to view.

How to upgrade Debian 11 to Debian 12 bookworm using CLInixCraft

Debian Linux 12 "Bookworm" has been released. As of 23/July/2023, Debian 12.1 point was released too. The new version offers updated packages and five years of support. This page provides a...

View Article

Image may be NSFW.
Clik here to view.

Alpine Linux fatal error: ncurses.h: No such file or directory fixnixCraft

When I try to compile a program on Alpine Linux, it fails with the following error: app.c:1:10: fatal error: ncurses.h: No such file or directory 1 | #include | ^~~~~~~~~~~ compilation terminated.Love...

View Article


Image may be NSFW.
Clik here to view.

How to restart network service in Alpine LinuxnixCraft

You need to restart the network service in Alpine Linux using "/etc/init.d/networking restart" command to activate the network configuration defined in the /etc/network/interfaces config file. Do not...

View Article

Image may be NSFW.
Clik here to view.

How to view the open file limit for a Linux processnixCraft

Do you need to view the open file limit for a Linux process? Try "limits" files in /proc/${PID} directory with its process ID (PID) or ulimit command or prlimit command to see the open file limit for a...

View Article


Image may be NSFW.
Clik here to view.

How to install ZFS in Debian 12 “Bookworm”nixCraft

Here is a quick tutorial on installing ZFS support in Debian Linux 12 "Bookworm" using "apt" or "apt-get" command-line option.Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp -...

View Article

Image may be NSFW.
Clik here to view.

How to kill process or user by tty name in LinuxnixCraft

Sometimes we must kill a process or user account by tty name in Linux. It would be best if you used w command or who command to print users accessing tty and then run the pkill command against...

View Article

Image may be NSFW.
Clik here to view.

How to open a TCP port 43 for whois command using iptablesnixCraft Updated...

{Updated} Do you need to open a TCP port 43 for outgoing whois command for communication using iptables command/ufw command/Firewalld? Fear not. You can add a rule to allow incoming or outgoing traffic...

View Article

Image may be NSFW.
Clik here to view.

How To Set Up a Firewall with UFW on Debian 12nixCraft

If you're using Debian 12, you can easily manage your firewall with the help of Uncomplicated Firewall (UFW). UFW interface simplifies firewall management and handles the complexities of packet...

View Article


Setting up VSCode for Ansible Lightspeed AI in Ubuntu 22.04 desktopnixCraft

Red Hat launched the Ansible Lightspeed Code Assistant Generative AI with IBM Watson Code Assistant in May 2023. This preview is now available to all Ansible users, allowing them to explore the...

View Article


Debian Linux 12.1 released with Security UpdatesnixCraft

Debian Linux project announces the first update of the Debian project's stable distribution, Debian 12 (codename "bookworm") named Debian 12.1. This update mainly addresses security issues and...

View Article

Image may be NSFW.
Clik here to view.

How to check for ssh connectivity in a shell scriptnixCraft

Let us see how to check for ssh connectivity in a shell script running under macOS, FreeBSD, or Linux/Unix desktop using BatchMode=yes and ConnectTimeout=$VALUE options. This simple trick helps write a...

View Article

Image may be NSFW.
Clik here to view.

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

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 -...

View Article


Image may be NSFW.
Clik here to view.

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

{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,...

View Article

Image may be NSFW.
Clik here to view.

How to Mount NFS File System in Ubuntu LinuxnixCraft Updated Tutorials/Posts

{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),...

View Article

Image may be NSFW.
Clik here to view.

How to run script after mounting NFS with systemd in LinuxnixCraft

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...

View Article

Image may be NSFW.
Clik here to view.

Howto Find Out or Learn Harddisk Size in Linux or UNIXnixCraft Updated...

{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...

View Article



Image may be NSFW.
Clik here to view.

How check or see laptop battery health in LinuxnixCraft

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...

View Article

Image may be NSFW.
Clik here to view.

Debian/Ubuntu Linux show package changelog commandnixCraft

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....

View Article

Image may be NSFW.
Clik here to view.

Bash Append Text To a Variable (Concatenate Strings)nixCraft Updated...

{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...

View Article

Image may be NSFW.
Clik here to view.

How to get and extract filename extension in BashnixCraft

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 -...

View Article


Image may be NSFW.
Clik here to view.

How to decode BASE64 string in Linux and UnixnixCraft

A long time ago, I wrote a script or config file that included BASE64 encoded string like...

View Article

Image may be NSFW.
Clik here to view.

How To Update macOS Using Command Line Software Update ToolnixCraft Updated...

{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.

View Article

Image may be NSFW.
Clik here to view.

How to reboot Alpine Linux using Ansible when kernel is updatednixCraft

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...

View Article


Image may be NSFW.
Clik here to view.

How do I list all USB devices in Linux?nixCraft Updated Tutorials/Posts

{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...

View Article


Image may be NSFW.
Clik here to view.

How to install vim in Alpine LinuxnixCraft

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...

View Article

Image may be NSFW.
Clik here to view.

How to install wget on Fedora Linux using the dnf commandnixCraft

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....

View Article

Image may be NSFW.
Clik here to view.

Find files that do not have any owners or do not belong to any user under...

{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...

View Article

How to block AI Crawler Bots using robots.txt filenixCraft

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...

View Article


Image may be NSFW.
Clik here to view.

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

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...

View Article

Image may be NSFW.
Clik here to view.

How to install Perl in Fedora LinuxnixCraft

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...

View Article


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

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...

View Article

Image may be NSFW.
Clik here to view.

How to merge all PDF files into one PDF in LinuxnixCraft

I recently had to submit multiple PDF files for government work, but the web form only allowed for the uploading of a single file. This meant that I had to merge the PDF files into one on Linux. To do...

View Article


Image may be NSFW.
Clik here to view.

How to open DHCP port using UFW in LinuxnixCraft

The Uncomplicated Firewall (UFW) needs to be configured to allow traffic on UDP ports 67 and 68, regardless of whether the Dynamic Host Configuration Protocol (DHCP) server is local or remote....

View Article

Image may be NSFW.
Clik here to view.

SSH WARNING: UNPROTECTED PRIVATE KEY FILE! Error and SolutionnixCraft Updated...

{Updated} Are you getting, ' WARNING: UNPROTECTED PRIVATE KEY FILE!' when try to use the ssh command under Linux, macOS or BSD? Let us see how I fixed this problem and log in using the ssh command.The...

View Article

Image may be NSFW.
Clik here to view.

How to enable contrib repo on Debian Linux 10/11/12nixCraft

Sometimes, when you try to install specific Debian Linux packages, you might encounter an error message that reads:Unable to locate package pkg-name-here In many cases, the required package might...

View Article

Image may be NSFW.
Clik here to view.

How to install GPG (gnupg2) on a Debian Linux to fix gpg command not found...

GnuPG2 (or GPG2) is an open-source and free tool that implements the OpenPGP standard. Its primary purpose is to encrypt your sensitive information to protect it from unauthorized access. It also...

View Article


Image may be NSFW.
Clik here to view.

How to install BTRFS on a Debian Linux 12/11nixCraft

Btrfs, which stands for "Butter FS" or "B-tree FS," is a modern Linux file system. It was developed to overcome the limitations of older file systems like ext4 or ext3. Btrfs is an excellent choice for...

View Article

Browsing latest articles
Browse All 73 View Live




Latest Images