Launch Chrome with command line switches has no effect - google-chrome

I type these code below on windows cmd.
with switch --version
"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Default" --version
without switch --version
"C:\Program Files\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1"
then type chrome://version/ on browser for each.
In this case you will see all of both with switch --version on command line property.
could i have this reason? Thanks.

Related

google-chrome <filepath> shows error. Access Google Chrome from Terminal

I am trying to open a file in google-chrome from my terminal. Whenever I run command google-chrome on Terminal, it says:
zsh: command not found: google-chrome
Terminal Screenshot
How should I go about it?

How to open Sublime text using Git Bash Command prompt

$ touch hello.html
$ subl .
bash: subl: command not found
I created HTML file using git bash command prompt and I want to open it on Sublime Text 3 using git bash command prompt. But above code is not working.
First I had to create new Environment Variable Path. now the code is working.
$ cd test1/
$ touch hello.html
$ subl hello.html
or $ subl
Following youtube video might be helpful.
How to Open Sublime Text 3 from Command Prompt in Windows

mysql command not found in bash

On my mac, if I type mysql --version in bash, the bash shows that command not found.
$ echo $PATH
/Users/merle/.nvm/versions/node/v11.10.0/bin:/usr/local/opt/mysql\#5.5/bin:/Users/merle/Downloads/mongodb-osx-x86_64-4.0.4/bin:/Applications/PostgreSQL\ 10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
$ /usr/local/opt/mysql\#5.5/bin/mysql --version
/usr/local/opt/mysql#5.5/bin/mysql Ver 14.14 Distrib 5.5.62, for osx10.14 (x86_64) using EditLine wrapper
$ mysql --version
-bash: mysql: command not found
I add the mysql bin directory to my PATH variable in my .bashrc.
I don't know what is going on.
The issue is with the backslash (\) in the PATH env:
/usr/local/opt/mysql\#5.5/bin
After removing it:
/usr/local/opt/mysql#5.5/bin
You need to add mysql to your env. Based on what are you using (standard bash or zsh or other), you need to open the configuration file such as
~/.zshrc or ~/.bash_profile and add there the following
export PATH = "${PATH}/etc/local/mysql/bin"
Do not forget to do to apply the changes
source ~/.zshrc

Powershell command did not wait

I have following 2 commands in powershell script file, but second command did not wait till first command gets executed.
cmd.exe /c "msiexec /i c:\Temp\mysql.msi /quiet"
cd "C:\Program Files (x86)\MySQL\MySQL Installer for Windows"
note: first command installing mysql installer at location C:\Program Files (x86)\MySQL\MySQL Installer for Windows"...
In second command, i used cd to go to at directory C:\Program Files (x86)\MySQL\MySQL Installer for Windows"
Your PowerShell script does not know what the cmd.exe command is going to execute but it does wait for cmd.exe to finish.
The problem is that cmd.exe is not waiting for msiexec before returning.
If you wish to wait for msiexec to finish before moving on to your second command then call msiexec yourself using Start-Process with the -Wait parameter:
Start-Process -Wait -FilePath msiexec -ArgumentList "/i c:\Temp\mysql.msi /quiet"

How can I access the mysql command line tool when using XAMPP in OS X?

I've got a vanilla install of XAMPP in OS X. How can I access the mysql command line tool? I've tried typing "mysql" at the command line, and it spits back "-bash: mysql: command not found".
XAMPP is installed in Mac OS X in the following directory:
/Applications/XAMPP/
You can look what's inside that directory and run mysql command line tool providing the full path to it:
$ /Applications/XAMPP/xamppfiles/bin/mysql
If you need, you can modify your PATH environment variable to include XAMPP binaries and you won't need to specify the whole path all the time.
Open your .profile file in Mac. This can be done by entering the terminal and typing
pico ~/.profile
Add the following line to your ./profile file. Replace the path where you installed Xampp, however by default this is the route and should work:
export PATH=/opt/local/bin:/opt/local/sbin:/Applications/xampp/xamppfiles/bin:$PATH
Open a new terminal window (Recommendation is to quit all terminal windows and then reopen) and type:
mysql
That is all, isn't easy!!
Before using the mysql command, make sure that you start up the server first by running
$ mysql.server start
Then you will be able to use the commands mysqladmin and mysql.
To shut it down, run
$ mysql.server stop
and to restart just use
$ mysql.server restart
Very intuitive.
Open terminal and Follow this bellow step to add mysql to your mac environmental variable
step 1:
sudo nano ~/.bash_profile
step 2:
export PATH=/opt/local/bin:/opt/local/sbin:/Applications/xampp/xamppfiles/bin:$PATH
save it by control+x and then y and hit return. That's it!! now close the terminal and reopen
mysql --version
this will tell you which MySQL version you are using with xampp
Since I cannot comment on the accepted answer by Pablo Santa Cruz - Here's some additional info. If you're going to modify your PATH environment variable to include XAMPP binaries, make sure you add
/Applications/XAMPP/xamppfiles/bin
and not
/Applications/XAMPP/xamppfiles/bin/mysql
to the /etc/paths file. To do this run the command
sudo nano /etc/paths
then add the path to the file. Save using Ctrl+O and exit using Ctrl+X. Quit terminal and open again.