Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Linux sys-unconfig: Reconfigure the System Upon Next Boot
The sys-unconfig command in Linux is used to reconfigure the system settings upon the next boot. This is useful if you need to reset the system to its initial state, or if you want to change the system's settings. To use sys-unconfig , follow these steps:rn rn Log in as root or a user with sudo p
CentOS / RHEL: Install and Configure phpMyAdmin Administration Of MySQL Database Server
To install and configure phpMyAdmin on CentOS or RHEL, follow these steps:rn rn Install phpMyAdmin using the following command: rn rn rn rn yum install phpMyAdminrn rn rn rn Create a symbolic link to the phpMyAdmin configuration file in the Apache configuration directory: rn rn rn rn ln -s /etc/phpM
Add / Import .SQL file To MySQL Database Server
To import a SQL file into a MySQL database server, you can use the mysql command-line client. The basic syntax is as follows: n n n mysql -u - p < n n n Where: n n is the MySQL username with sufficient privileges to import the database. n is the name of the database you want to import the SQL fil
Bash / KSH: Define Delimiter (IFS) While Using read Command
The read command in bash and ksh shells is used to read input from the user or from a file. The IFS (Internal Field Separator) environment variable determines the delimiter used when reading input. By default, the IFS is set to space , tab , and newline , which means that input is split into fields
Linux Find And Report On File Fragmentation
You can use the filefrag utility to find and report on file fragmentation on a Linux system. filefrag displays the extent map of a file, which shows how the file is divided into fragments and where those fragments are located on the disk. Here's how you can use filefrag :rn rn Install e2fsprogs p
Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
This error message usually indicates that the MySQL server is not running or there's a problem with the connection to the MySQL server. Here are a few steps you can try to resolve the issue:rn rn Check if the MySQL service is running:rn rn rn systemctl status mysqlrn rn rn Start the MySQL service:rn
Yum Command Check and Apply Only Security Updates
You can use the yum command to check and apply only security updates on a Red Hat or CentOS system. The yum-security plugin provides this functionality. Here's how you can do it:rn rn Install the yum-security plugin:rn rn rn sudo yum install yum-plugin-securityrn rn rn Check for available securit
Debian Linux 6 Squeeze: Install Linux Kernel 3.2.xx
To install Linux Kernel 3.2.xx on Debian Linux 6 Squeeze, you need to perform the following steps:rn rn Download the Linux Kernel 3.2.xx sources:rn rn rn wget https: / /www.kernel.org/pub /linux/kernel /v3.x/linux - 3.2 .xx.tar.xzrn rn rn Extract the sources:rn rn rn tar -xf linux-3.2.xx.tar.xzrn rn
Linux: Configure and Control APC SmartUPS During a Power Failure
The APC SmartUPS can be configured and controlled during a power failure on a Linux system using the apcupsd daemon and its associated utilities. Here's how to set it up:rn rn Install the apcupsd package:rn rn On Debian/Ubuntu based systems: rn rn rn rn sudo apt - get update rnsudo apt - get inst
Linux Find Out Name Of DVD / CD-ROM / Blu-ray Writer Device
You can find out the name of the DVD/CD-ROM/Blu-ray writer device in Linux by using the lsblk command. Here's an example:rn rn rn lsblk | grep -i "cdrom" rn rn rnExplanation:rn rn lsblk is the command that lists all the block devices and their properties. rn grep -i "cdrom" filters the output of
Linux / Unix lftp Command To Mirror Files and Directories
The lftp command is a powerful file transfer tool for Linux/Unix systems that can be used to mirror files and directories between remote servers. Here's an example of how to use the lftp command to mirror files and directories:rn rn rn lftp -e "mirror -c -R source_directory target_directory; quit
Install and Use nmon Tool To Monitor Linux Systems Performance
To install and use the nmon tool for monitoring Linux system performance, follow these steps:rn rn Install the nmon tool:rn rn On Debian/Ubuntu based systems: rn rn rn rn sudo apt - get update rnsudo apt - get install nmonrn rn rn rn On Red Hat/CentOS based systems: rn rn rn rn sudo yum install nmon
TCSH / CSH: set vs setenv Command Differences
The set and setenv commands in tcsh and csh shells are used to set environment variables, but with some differences:rn rn Syntax: The syntax for the set and setenv commands is different. set uses the following syntax: rn rn rn rn set variable = valuern rn rnwhile setenv uses the following syntax:rn
How To grep Text Between Two Words in Unix / Linux
The grep command in Unix and Linux can be used to search for text between two words in a file. The grep command can be used with the -o option to extract only the matching text and with the -P option to enable Perl-compatible regular expressions (PCRE) mode, which allows for more advanced pattern ma
Enable Telnet Access For Netgear Wireless Router DGND3700 [ N600 ]
Telnet access is not enabled by default on the Netgear DGND3700 N600 wireless router. To enable Telnet access, you'll need to access the router's web interface and make changes to the router's settings. Here's how:rn rn Connect your computer to the Netgear DGND3700 N600 router. rn Open a web browser
lftp Mirror Command Exclude Matching Files [ Regex ]
The lftp command line FTP client provides the ability to exclude files that match a certain pattern when performing a mirror operation. You can use a regular expression (regex) to specify the pattern of files to exclude. For example, to mirror a remote directory to a local directory while excludi
.Bash History: Correct / Repeat The Last Command With a Substitution
In a Bash shell, you can repeat the last command with a substitution using the !! command, followed by the :gs operator and the substitution expression. For example, if you want to repeat the last command, replacing the word "old" with "new", you can run the following command:rn rn rn !! :gs/old/
Linux: Find Out What’s Using Up All Virtual Memory
To find out what's using up all virtual memory in a Linux system, you can use the top or htop command. top provides an overview of system processes and system resource usage, including virtual memory usage. By default, top sorts processes by CPU usage, but you can sort by memory usage by pressin
Linux Find Number of CPU Cores Command
To find the number of CPU cores in a Linux system, you can use the nproc command. Simply run the following command in the terminal:rn rn rn nproc rn rn rnThis will return the number of processing units available on the system. Another alternative is to use the lscpu command which provides detailed i
Debian Linux 6: Install libdvdcss2 For DVD Decryption Playback
To install libdvdcss2 on Debian Linux 6, you can follow these steps: n n Add the VideoLAN repository to your sources list: n n n n echo "deb http://download.videolan.org/pub/debian/stable/ /" | sudo tee -a /etc/apt/sources.list n n n n Download and install the VideoLAN repository key: n n n n wget -
2,685 guides published.
