Sunday, 19 April 2020

How to remove MySql on Linux

All you have to do, just type these below commands in terminal
1.
 sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
2.
sudo apt-get autoremove -y
3.
sudo apt-get autoclean

Now remove all directories of mysql
1.
rm -rf /etc/mysql
2.
sudo find / -iname 'mysql*' -exec rm -rf {} \;

Now you have successfully removed the MySql from linux

If you again want to install then type theses commands

sudo apt install mysql-server   

Follow Haseebabbasi00.blogspot.com

Sunday, 12 April 2020

Basic Commands for Shell

Map Book for Experienced Bash users

The table below lists the usage of some basic commands to help you get started on PowerShell faster. Note that all bash commands should continue working on PowerShell session.
BashPowerShellDescription
lsdir, Get-ChildItemList files and folders
treedir -Recurse, Get-ChildItem -RecurseList all files and folders
cdcd, Set-LocationChange directory
pwdpwd, $pwd, Get-LocationShow working directory
clear, Ctrl+L, resetcls, clearClear screen
mkdirNew-Item -ItemType DirectoryCreate a new folder
touch test.txtNew-Item -Path test.txtCreate a new empty file
cat test1.txt test2.txtGet-Content test1.txt, test2.txtDisplay files contents
cp ./source.txt ./dest/dest.txtCopy-Item source.txt dest/dest.txtCopy a file
cp -r ./source ./destCopy-Item ./source ./dest -RecurseRecursively copy from one folder to another
mv ./source.txt ./dest/dest.txtMove-Item ./source.txt ./dest/dest.txtMove a file to other folder
rm test.txtRemove-Item test.txtDelete a file
rm -r <folderName>Remove-Item <folderName> -RecurseDelete a folder
find -name build*Get-ChildItem build* -RecurseFind a file or folder starting with 'build'
grep -Rin "sometext" --include="*.cs"Get-ChildItem -Recurse -Filter *.cs
| Select-String -Pattern "sometext"
Recursively case-insensitive search for text in files
curl https://github.comInvoke-RestMethod https://github.comTransfer data to or from the web

Saturday, 11 April 2020

Live Server in Atom

If you want to run live server in atom then follow the steps.
1. Downoad and install atom
2. go to preferences and go to package options
3. install live server plugins
4. press CTRL + ALT + L and your default browser will be opened
5. close the live server by pressing CTRL + ALT + Q
   

Friday, 10 April 2020

"Object not found!" Error in Xamp

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
IF you face this Error When you have installed Xamp on your PC and After  starting Apache you see this message then, There are possibilities of errors.
1. You have not placed your directory and you are opening in server
2. You have placed but at wrong place.
So Please copy you directory  in ~Xamp\htdocs.
then you won't face this error.