Extract tar.gz File in Categories BASH Shell, Linux, UNIX

Syntax The syntax is as follows: tar options file.tar.gz tar options file.tar.gz pattern tar -xf file.tar.gz tar -xvf file.tar.gz tar -zxvf file.tar.gz tar -zxvf file.tar.gz file1 file2 dir1 dir2 Extract tr.gz. file To extract one or more members from an archive, enter:$ tar -zxvf {file.tar.gz}If your tarball name is backup.tar.gz, enter the following at a shell prompt to extract files:$ tar -zxvf backup.tar.gzTo extract resume.doc file from backup.tar.gz tarball, enter:$ tar -zxvf backup.tar.gz ...

View More
  Dibaca 1720 kali

How To easiest way to unrar a file on Ubuntu

First i need to run sudo apt-get install unrar to install unrar. If i want to unpack all files within the .rar files in the same directory unrar e -r /home/work/software/myfile.rar if i want to unpack the files in full path unrar x -r /home/work/software/myfile.rar ...

View More
  Dibaca 1606 kali

Turtorial Instalasi CURL in Ubuntu

open terminal if php 5.6 or your php version sudo apt-get install php5.6-curlrestart sudo service apache2 restart ...

View More
  Dibaca 1341 kali

Force https in subdomain

RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{HTTP_HOST} ^sub\.domain\.com$ [NC] RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] The differrences are: Specify port 80 not any port containing 80 as digits in the port number. Specify mail.fancyblue.net using No Case. If both conditions are met, redirect the {REQUEST_URI} to the secure server without duplicating Apache variables for {HTTP_HOST} and {REQUEST_URI}; any query string will not be affected. ...

View More
  Dibaca 1413 kali

How to change URL phpmyadmin OR change phpMyAdmin port ?

change URL phpmyadmin : Edit /etc/phpmyadmin/apache.conf and comment (#) the first Alias directive like thath: Alias /phpmyadmin /usr/share/phpmyadmin to /change this /usr/share/phpmyadmin change phpMyAdmin port : Just to be clear, this is not a setting of PhpMyAdmin, it is a setting of the configuration of Apache2, and we need to create new VirtualHost for this purpose. 1. Understanding of the default configuration of PhpMyAdmin. By default (within Ubuntu 16.04) PhpMy ...

View More
  Dibaca 3384 kali

Enabling mod_rewrite in ubuntu apache server

Step 1 — Enabling mod_rewrite First, we need to activate mod_rewrite. Its available but not enabled with a clean Apache 2 installation. sudo a2enmod rewrite This will activate the module or alert you that the module is already enabled. To put these changes into effect, restart Apache. sudo systemctl restart apache2 mod_rewrite is now fully enabled. In the next step we will set up an .htaccess file that well use to define rewrite rules for redirects.   Step ...

View More
  Dibaca 1573 kali

Server unable to read htaccess file, denying access to be safe

  And make sure the directory which contains .htaccess is readable and executable: the directory was set 750, then chmoded to 755 and it worked in terminal sudo chmod 755 access/folder_name/ ...

View More
  Dibaca 1767 kali

sending email postfix with smpt gmail

Postfix is a Mail Transfer Agent (MTA) that can act as an SMTP server or client to send or receive email. There are many reasons why you would want to configure Postfix to send email using Google Apps and Gmail. One reason is to avoid getting your mail flagged as spam if your current server’s IP has been added to a blacklist. In this guide, you will learn how to install and configure a Postfix server on Debian or Ubuntu to send email through Gmail and Google Apps. For information on config ...

View More
  Dibaca 5334 kali