ON OLD WHM/cPanel SERVER 1. Login via SSH or File Manager Use SSH or cPanel File Manager. bash CopyEdit cd /home/USERNAME/public_html 2. Export the WordPress files bash CopyEdit tar -czf theinvestigatornews.com.ng_files.tar.gz . 3. Export the database First, get the database name from wp-config.php. Then run: bash CopyEdit mysqldump -u USERNAME -p DATABASE_NAME > theinvestigatornews.com.ng_db.sql Compress it: bash CopyEdit tar -czf …
How to Extract or Decompress wp-content.tar.gz Using the Linux Command Line
βοΈ Excerpt: Learn how to extract .tar.gz or .zip backup files like wp-content.tar.gz using simple Linux terminal commands. This tutorial is perfect for WordPress developers, sysadmins, or anyone restoring website backups. π Post Content (HTML-Formatted for WordPress Editor): html Copy Edit π¦ How to Extract wp-content.tar.gz on Linux If you’re restoring a WordPress backup or moving files between servers, you …
Compressing wp-content Folder Using Linux Command Line (ZIP & TAR.GZ Guide)
To compress the wp-content folder via terminal, use one of the following commands depending on your preferred archive format: πΉ To compress as .zip: bash CopyEdit zip -r wp-content.zip wp-content πΉ To compress as .tar.gz (recommended for Linux): bash CopyEdit tar -czvf wp-content.tar.gz wp-content πΉ To compress as .tar (uncompressed tarball): bash CopyEdit tar -cvf wp-content.tar wp-content These commands should …
How to Rename a Website Folder Using Terminal
To rename the directory /home/naomisophy to /home/naomiso, follow the steps: sudo mv /home/naomisophy /home/naomiso
How to Download and extract WordPress via Terminal
cd /tmp wget https://wordpress.org/latest.zip unzip latest.zip sudo mv wordpress/* /home/naomisophy/naomisophyblog.com.ng Replace this /home/naomisophy/naomisophyblog.com.ng with your website directory
How to Upload a File to Your Server via SCP from your window PC
How to Open PowerShell on Windows You can open PowerShell easily using either a keyboard shortcut or the Start Menu. Here’s how: β Method 1: Quick Keyboard Shortcut Press Windows Key + X From the menu, select Windows PowerShell or Terminal (Admin) π Use “Terminal (Admin)” if you need administrative privileges. β Method 2: Using the Start Menu Click the …
How to Import a WordPress SQL Backup via Terminal (Example)
Let’s assume you are importing a SQL backup file for a website called exampleblog.com.ng. π§Ύ Step-by-step Commands: bash CopyEdit # Step 1: Go to the directory where the SQL backup is located: cd /var/www/exampleblog.com.ng/public_html π This moves you into the folder where your .sql.gz file is stored. bash CopyEdit # Step 2: Decompress the SQL backup file: gunzip exampleblog_dbbackup.sql.gz π …
How to View All WordPress Users in Your Database Using Terminal
To see a list of all WordPress users in your database (zzle_wu3), you’ll need to run a SQL query on the wp_users table. π§Ύ MySQL Command: bash CopyEdit mysql -u root -p -e “SELECT ID, user_login, user_email, user_registered FROM zzle_wu.wp_users;” π You will be prompted to enter your MySQL root password. π What This Displays: ID: The unique identifier for …
Terminal: How to Change a WordPress User Password via MySQL (User: coic)
π How to Change WordPress Admin Password via MySQL (User: coip) Last updated: July 3, 2025 π§° Requirements Access to your Linux server (SSH or terminal) MySQL root access or database credentials WordPress database name: zzle_wu π Resetting the Password Using MySQL Run the following command to reset the password for the user coic: mysql -u root -p -e “UPDATE …






