Perl Display And Pass Command Line Arguments With @argv
How do I read or display command-line arguments with Perl?Read answer to: "Perl Display And Pass Command Line Arguments With @argv"
View ArticlePrinting output of c program to a file in Linux
Q. I’ve written a small program that does something useful for me. I always get output on screen. Sometime I need to send output to a file. How do I print output of my program to a file w/o making any...
View ArticleFind and Delete File If It Is More Than One Hour Old in UNIX Shell
How do I find out if a file is more than one hour old in a UNIX shell and take action on all matching file such as delete or move files.Read answer to: "Find and Delete File If It Is More Than One Hour...
View ArticleBash Shell Loop Over Set of Files
How do I run shell loop over set of files stored in a current directory or specified directory?Read answer to: "Bash Shell Loop Over Set of Files"
View ArticleWhat Are Linux / UNIX Shells?
Can you explain me UNIX shell? What are Shells?Read answer to: "What Are Linux / UNIX Shells?"
View ArticleHow To Find Files by Content Under UNIX
Q. I had written lots of code in C for my school work and saved it as source code under /home/user/c/*.c and *.h. How do I find files by content such as string or words (function name such as main()...
View ArticleMySQL: Find Out Which Table is Consuming Resources
Q. How do I find out which table is consuming resources under MySQL Database server from UNIX shell prompt?Read answer to: "MySQL: Find Out Which Table is Consuming Resources"
View ArticleLinux / UNIX: Run Commands When You Log Out
I've written a Perl script that connects to our central server for me and it allows me feed data so that I make a timesheet later. How do I run my script when I log out from Apple OS X or Linux / UNIX...
View ArticleLinux / Unix: Look Up IP Addresses
How can I look up IP addresses under UNIX or Linux operating systems using command line options?Read answer to: "Linux / Unix: Look Up IP Addresses"
View Articlemysqldump: Copy Database Using Shell Pipes
How do I use mysqldump command with Unix shell pipes?Read answer to: "mysqldump: Copy Database Using Shell Pipes"
View ArticleLinux / Unix Shell: Set Default Printer
How do I set default printer in my Bash shell under CentOS Linux or FreeBSD unix desktop operating systems?Read answer to: "Linux / Unix Shell: Set Default Printer"
View ArticleLinux / Unix Shell Scripting: Create Filename By Day Of The Week
I need to create a log file using the following format:myapp_monday.log myapp_tuesday.log .... ... myapp_sunday.log How do I create log filename with day of the week in it under Linux or Unix...
View ArticleFreeBSD: Install zsh Shell
How do I install the Z shell ( zsh ) shell under FreeBSD 9 operating systems?Read answer to: "FreeBSD: Install zsh Shell"
View ArticleOpen Gnome Nautilus File Manager For The Current Linux / Unix Command Line
Nautilus is the file manager for the GNOME desktop. How do I open Nautilus from the Linux or Unix shell prompt?Read answer to: "Open Gnome Nautilus File Manager For The Current Linux / Unix Command...
View ArticleHow to protect Linux against rogue USB devices using USBGuard
usbgurd 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...
View ArticleDNS settings to avoid email spoofing and phishing for unused domain
As you may know, email spoofing allows attackers to pose as someone else to gain illegal profit. For example, I only use webmaster@cyberciti.biz for communication, but someone might create a...
View ArticleHow To Set Up SSH Keys With YubiKey as two-factor authentication (U2F/FIDO2)
Patreon users download the PDF version. All Linux and Unix servers are managed manually or by automation tools such as Ansible using ssh. For example, say you have a server at Linode or AWS. Then you...
View ArticleHow to skip ChatGPT from WireGuard or OpenVPN on Linux
nixCraft Patreon supporters can download the PDF version here. ChatGPT (short for Chat Generative Pre-trained Transformer) is a chatbot by OpenAI. It provides answers to your queries using learning...
View Articlenvtop – Awesome Linux task monitor for NVIDIA, AMD & Intel GPUs
Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post nvtop – Awesome Linux task monitor for NVIDIA, AMD & Intel GPUs appeared first on nixCraft.
View ArticleHow to upgrade FreeBSD 13.1 to 13.2 release
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