Last active
May 19, 2018 13:50
-
-
Save priyabratary/18396a67b30f6a9791888cd665364fc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd / | |
for version of linux | |
lsb_release -a | |
back command | |
cd .. | |
to edit a document | |
nano test.txt | |
to enter into your home folder | |
sudo su | |
remove apache2 | |
$ sudo service apache2 stop | |
sudo apt-get purge apache2 | |
sudo apt-get install apache2 | |
Parmanently remove apache | |
sudo apt-get autoremove | |
sudo apt-get remove apache2* | |
dpkg -S `which apache2` | |
which apache2 | |
Install Apache2 | |
sudo apt update | |
sudo apt install apache2 | |
virtual host | |
<VirtualHost *:80> | |
ServerAdmin admin@babusona.com | |
ServerName babusona.com | |
ServerAlias *.babusona.com | |
DocumentRoot /mnt/c/Server/babusona.com | |
<Directory /mnt/c/Server/babusona.com> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Require all granted | |
</Directory> | |
</VirtualHost> | |
create a file | |
touch test.txt | |
to read a file | |
cat test.txt | |
Move files | |
mv /mnt/c/xampp/htdocs/LWHH/wordpress/* /mnt/c/xampp/htdocs/LWHH/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment