Skip to content

Instantly share code, notes, and snippets.

@priyabratary
Last active May 19, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priyabratary/18396a67b30f6a9791888cd665364fc7 to your computer and use it in GitHub Desktop.
Save priyabratary/18396a67b30f6a9791888cd665364fc7 to your computer and use it in GitHub Desktop.
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