Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
HowTo: Find Out MySQL Server Version Number
To find out the version of a MySQL server running on your system, you can use the following command in the MySQL command-line client: n n n SELECT VERSION () ; n n n Running this command in the MySQL command-line client will display the version number of the MySQL server that you are currently conne
Linux Command: Show Linux Version
To show the version of the Linux distribution that you are currently running, you can use the following command:rn rn rn lsb_release - a rn rn rnRunning this command in a terminal will display the version of the Linux distribution, as well as other information such as the release codename, descripti
How To Find Linux Kernel Version Command
To find the version of the Linux kernel that is currently running on your system, you can use the following command:rn rn rn uname -rrn rn rnRunning this command in a terminal will display the kernel version number, for example:rn rn rn 5.13.0-28-genericrn rn rnThe output of this command shows the m
Linux: AMD Phenom II and AMD Athlon II CPU Change Frequency On All Logical Cores
To change the CPU frequency on all logical cores of an AMD Phenom II or AMD Athlon II processor in Linux, you can use the cpufrequtils package. Here are the steps to do so:rn rn Install the cpufrequtils package by running the following command in the terminal: rn rn rn rn sudo apt- get install cpufr
HowTo: Update Linux Kernel With ksplice
Ksplice is a technology that allows you to apply updates to the Linux kernel without having to reboot the system. This can be very useful in situations where you need to keep your system running continuously without any downtime. Here's how you can update the Linux kernel with Ksplice:rn rn Check wh
Ubuntu Uninstall deb Package
To uninstall a .deb package in Ubuntu, you can use the dpkg command. Here are the steps to uninstall a .deb package:rn rn Open the terminal by pressing Ctrl + Alt + T . rn Type the following command and press Enter: rn rn rn rn sudo dpkg -r package_namern rn rnReplace package_name with the name of t
Linux Find Files By Date And List Files Modified On a Specific Date
To find files by date and list files modified on a specific date in Linux, you can use the find command and specify the date range or exact date you want to search for. Here are two examples:rn rn To find files modified within a date range: rn rn rn rn find /path/ to /search -type f -newermt yyyy-mm
UNIX / Linux Find All Empty Files Command
To find all empty files on a UNIX/Linux system, you can use the find command along with the size option and the exec option to execute a command on each file that matches the size criterion. n Here’s the command to find all empty files: n n n find /path/to/search - type f -size 0 - exec ls -l
Linux: Find User Files
To find files owned by a specific user on Linux, you can use the find command with the -user option. Here's an example command that finds all files in the home directory of user "username":rn rn rn find /home/username -user usernamern rn rnIn this command, replace "username" with the actual username
Linux / UNIX: Check If File Is Empty Or Not Using Shell Script
To check if a file is empty or not using a shell script in Linux or UNIX, you can use the test command with the -s option, which checks if the file is non-empty. Here's an example shell script that checks if a file is empty or not:rn rn rn #!/bin/bash if rn then rn echo "The file is not empty."
How To Delete All Files And Folders In Linux
To delete all files and folders in Linux, you can use the rm command with the -r option, which recursively deletes files and directories. Before using this command, be sure you know what you’re doing, as it will delete all files and directories in the specified location. n Here’s how to
OpenBSD: Find Out Memory RAM Size Information
To find out the memory (RAM) size information on an OpenBSD system, you can use the dmesg command, which displays system boot messages and other kernel information. To display memory size information, open a terminal window and type the following command:rn rn rn dmesg | grep memoryrn rn rnThis w
FreeBSD / OpeBSD Running in KVM Does Not Accept FTP Traffic
If you're running FreeBSD or OpenBSD in KVM and you're having trouble with FTP traffic, the problem may be related to the way KVM handles network traffic. By default, KVM uses a network bridge to connect the virtual machine to the host network. This can cause problems with FTP traffic, as some FTP c
Solaris UNIX: Show All Network Interfaces
To show all network interfaces on a Solaris UNIX system, you can use the ifconfig command. The ifconfig command is used to configure and display network interfaces. To display information about all network interfaces, including inactive interfaces, use the following command as the root user:rn rn
HowTo: Restart UNIX System / Server
To restart a UNIX system or server, you can use the shutdown command with the appropriate options. The shutdown command is used to halt or reboot the system. To restart the system immediately, use the following command as the root user:rn rn rn shutdown -r nowrn rn rnThis command instructs the sy
Shut Down a Solaris UNIX System
To shut down a Solaris UNIX system, you can use the init command with the appropriate run-level. The init command is used to change the run-level of the system. To shut down the system immediately, use the following command as the root user:rn rn rn init 5 rn rn rnThis command changes the run-lev
HowTo: UNIX Restart Apache Server
To restart the Apache web server on a UNIX system, you can use the following command:rn rn rn sudo systemctl restart apache2rn rn rnThis command will restart the Apache web server, which is the service responsible for serving web pages. If your system is running an older init system (such as SysV
Linux: Find Out The Groups A User Is In
To find out which groups a user is a member of in Linux, you can use the groups command. The syntax is as follows:rn rn rn groups <username>rn rn rnReplace <username> with the username of the user you want to check. For example, to check the groups for the user "john", you would run:rn r
How To Restart SSH Service under Linux / UNIX
To restart the SSH (Secure Shell) service on a Linux/Unix system, you can use the following command:rn rn rn sudo systemctl restart sshdrn rn rnThis command will restart the SSH daemon, which is the service responsible for handling incoming SSH connections. If your system is running an older init
KSH For Loop Array: Iterate Through Array Values
In Korn Shell (KSH), you can use a for loop to iterate through an array of values. Here's an example:rn rn rn #!/usr/bin/ksh # Define an array rnfruits=(apple banana orange) # Iterate through the array rn for fruit in ${fruits } rn do rn echo "I like to eat $fruit " rn done rn rn rnIn this
2,685 guides published.
