nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Linux / Unix Desktop Fun: Christmas Tree For Your Terminal

Posted: 23 Dec 2020 02:43 AM PST


{Updated} Let us create Linux or Unix console Christmas tree and snow on your Linux desktop just for fun and profit.

The post Linux / Unix Desktop Fun: Christmas Tree For Your Terminal appeared first on nixCraft.

How to declare Boolean variables in bash and use them in a shell script

Posted: 23 Dec 2020 12:58 AM PST

I need to define a bash variable called failed and set the value to False. When my script is called from a cron job, specific tasks might fail, and then I need to flip failed to True. Based upon $failed, I need to send an email alert that my cron job has failed. So how can I declare and use Boolean variables in a shell script running on a Linux server?

The post How to declare Boolean variables in bash and use them in a shell script appeared first on nixCraft.

How to scan port from your Linux, macOS, and FreeBSD Unix system using netcat/nc

Posted: 22 Dec 2020 11:35 AM PST


{Updated} How do I find out which ports are opened on my own server? How do I run port scanning using the nc command instead of the nmap command on a Linux or Unix-like systems?

The post How to scan port from your Linux, macOS, FreeBS and Unix system using netcat/nc appeared first on nixCraft.

Linux Set Environment Variable Command Tutorial

Posted: 22 Dec 2020 06:01 AM PST


{Updated} How do I customize the shell environment variable under Linux operating systems? How can I set and view environment variable on Linux?

The post Linux Set Environment Variable Command Tutorial appeared first on nixCraft.