Guides
How website valuation actually works, what traffic estimates can and cannot tell you, and which once-standard metrics have quietly stopped existing.
Linux / Unix: Find Inode Of a File Command
In Linux or Unix, you can find the inode number of a file using the ls command with the -i option. Here's how:rn rn Open a terminal window and navigate to the directory where the file you want to find the inode number for is located using the cd command. rn Use the following command to display the i
How To Open a Tar.gz File In Linux / Unix
In Linux or Unix, you can extract the contents of a .tar.gz file using the tar command. Here's how:rn rn Navigate to the directory where the .tar.gz file is located using the cd command. rn Use the following command to extract the contents of the .tar.gz file:rn rn rn tar -xzvf file.tar.gzrn rn rnRe
CentOS / RHEL: Disable or Enable SELinux Policy Modules
In CentOS or Red Hat Enterprise Linux (RHEL), you can disable or enable SELinux policy modules using the setsebool command. Here's how to disable a SELinux policy module:rn rn Determine the name of the SELinux policy module you want to disable. You can use the following command to list all the av
Ubuntu Linux: Add a User To Group
In Ubuntu Linux, you can add a user to a group using the usermod command. Here's an example:rn rn First, determine the name of the user and the group you want to add the user to. For example, let's say the user's name is user1 and the group name is group1 . rn Use the following command to add the us
Mount CD-ROM / DVD in HP-UX Unix
In HP-UX Unix, CD-ROM or DVD devices can be mounted using the mount command. Here's an example of how to mount a CD-ROM/DVD device:rn rn Determine the device name of the CD-ROM/DVD drive. You can use the following command to get a list of available block devices:rn rn rn ioscan -fnC diskrn rn rnLook
Linux / Unix: Bash Shell See All Exported Variables and Functions
To see all exported variables and functions in the bash shell, you can use the following command:rn rn rn declare -p | grep -E '^declare - *x' rn rn rnThis will show all exported variables and functions in the current shell session, including environment variables, shell functions, and aliases. The
WordPress: Change Author ID / Attribution On All Posts In a Single Pass
To change the author ID (attribution) on all posts in a single pass in WordPress, you can use the following steps:rn rn Log in to your WordPress site as an administrator. rn Navigate to the WordPress Dashboard and select "Posts" from the menu on the left side. rn Select all posts by clicking the che
Debian Linux: Install Virtualbox Virtualization Software
To install VirtualBox on a Debian-based Linux system, you can use the following steps:rn rn Add the Oracle VirtualBox repository to your system's repository list:rn rn rn echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtual
FreeBSD: Install zsh Shell
To install the Z shell ( zsh ) on a FreeBSD system, you can use the following steps:rn rn Open a terminal window. rn Update the package index:rn rn rn sudo pkg update rn rn rn Install the zsh package:rn rn rn sudo pkg install zshrn rn rn Once the installation is complete, you can start a zsh shell b
Open Gnome Nautilus File Manager For The Current Linux / Unix Command Line
To open the Gnome Nautilus file manager from the command line in Linux or Unix, you can use the following command:rn rn rn nautilus .rn rn rnThe . (dot) at the end of the command specifies the current directory. Nautilus will open with the current directory as the root directory. Alternatively, y
Linux Generate A MD5 String or Hash with md5sum Command
The md5sum command in Linux can be used to generate an MD5 hash or message digest of a file. An MD5 hash is a fixed-length string of characters that is generated from the contents of a file. The hash can be used to verify that the contents of a file have not been modified. Here's how you can gene
CentOS / RHEL CacheFS: Speed Up Network File System (NFS) File Access
CacheFS is a feature in CentOS and Red Hat Enterprise Linux (RHEL) that caches frequently accessed files from a network file system (NFS) in the local file system. This can speed up file access and reduce network traffic, as the cached files can be accessed directly from the local file system rather
Unix Copy Command Examples [ cp command ]
The cp (copy) command is used to copy files and directories in Unix-like systems. Here are some common examples of using the cp command:rn rn Copy a single file:rn rn rn cp file1.txt file2.txtrn rn rnThis will copy the file file1.txt to a new file named file2.txt . rn Copy multiple files:rn rn rn cp
Linux / Unix: Rsync Resume Partially Downloaded Files
You can resume a partially downloaded file using rsync by using the --partial and --continue options. The --partial option allows rsync to keep partially transferred files, and the --continue option tells rsync to resume a transfer that was previously interrupted. n For example, to resume a file tra
HowTo: Install firefox-13.0.tar.bz2 in Linux
To install Firefox 13.0 ( firefox-13.0.tar.bz2 ) in a Linux environment, you can use the following steps:rn rn Download the firefox-13.0.tar.bz2 archive from the official Mozilla website or a trusted source. rn Open a terminal window and navigate to the directory where the archive was downloaded. rn
Firefox Disable / Hide New Tab Page
In Firefox, you can disable or hide the new tab page by modifying the browser's configuration settings. Here are the steps to do so:rn rn Type about:config in the address bar and press Enter. rn In the search bar, type browser.newtabpage.enabled rn Double-click on the browser.newtabpage.enabled pref
WordPress: Disable Post Revisions / Turn Off Revisions
In WordPress, you can disable post revisions by modifying the WP_POST_REVISIONS setting in the wp-config.php file. This setting determines the number of revisions that WordPress should store for each post or page. To completely disable post revisions, set the value of WP_POST_REVISIONS to false i
How do I remove a directory in Unix?
In Unix, you can remove a directory using the rmdir command. Here's an example:rn rn rn rmdir directory_namern rn rnThis will remove the directory directory_name if it is empty. If the directory is not empty, you will receive an error message that the directory is not empty. To remove a directory
Bash: Get The Last Argument Passed to a Shell Script
In a bash shell script, you can get the last argument passed to the script using the "$!" syntax. Here's an example:rn rn rn #!/bin/bash rnlast_argument= " ${!#} " rn echo "The last argument passed to the script is: $last_argument " rn rn rnIn this example, "${!#}" expands to the value of the last a
Linux mount: Bind or Remount Part Of File Hierarchy At Another Directory
In Linux, you can mount part of a file hierarchy at another directory by using the mount command with the --bind option. The --bind option allows you to make a part of the file system available at a different location, while still retaining the original file and directory structure. Here's an exa
2,685 guides published.
