Need Advice? CALL: +61 417949565

Riksi - web design and development

  • Home
  • ABOUT US
  • OUR WORK
  • BLOG
  • CONTACT US
  • Home
  • BLOG
  • Web developing
  • command line
  • Update the $Path file in Mac

Update the $Path file in Mac

Update the $Path file in Mac

What is $PATH?

PATH is an environmental variable in Linux and other Unix-like operating systems like Mac that tells the shell which directories to search for executable files (i.e., ready-to-run programs) in response to commands issued by a user.

How to see the path content

open the shell or terminal and add the following code:

1
2
3
4
5
 
 
echo $PATH
 
 

Add the path using the command line

To add path you can also use the following way in terminal

1
2
3
4
5
 
 
export PATH=$PATH:~/php7.3/bin
 
 

The above code will add the path to the following file

1
2
3
4
5
 
 
/etc/paths
 
 

Alternative: Modify the bash_profile and add php to it

run the following code to edit tha path file:

1
2
3
4
5
 
 
nano ~/.bash_profile 
 
 

To add the php, add the new line to the path to link to the php bin file line below:

1
2
3
4
5
 
 
export PATH=/usr/local/php7.3.0/bin/:$PATH
 
 

PS: If you want this to be run every time you open terminal put it in the file .bash_profile, which is run when Terminal opens, like the following MySQL command

1
2
3
4
5
 
 
export PATH=/usr/local/mysql/bin/:$PATH
 
 
Tagged under: trick
Nick
Sunday, 21 April 2019 / Published in command line

What you can read next

Git: LF will be replaced by CRLF
Add Linux command line to windows 10
Kill the in-used TCP port on mac

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archive

  • General
    • Smart Home
  • Web developing
    • command line
    • CSS
    • General
    • git
    • Javascript
    • Laravel
    • Magento
    • MySQL
    • PHP
    • Security
    • Shopify
    • Wordpress

Recent Posts

  • Install HomeAssistant on Raspberry pi

  • Shopify ERR_INVALID_ARG_TYPE Error

Riksi

Riksi is a creative, professional & cutting-edge custom web design and development company.

HERE TO HELP

  • BLOG
  • Contact Us
  • Our Work
  • About Us

New on Blog

  • Install HomeAssistant on Raspberry pi

    To install it, We need to connect the SD card t...
  • Shopify ERR_INVALID_ARG_TYPE Error

    fix the Internal Server Error occurred while in...

GET IN TOUCH

T: (+61) 417 949 565
Email: [email protected]

Contact Us
Fill out the form and our team will be in touch with you promptly. Thank you for your interest!

AU & NZ
T: (+613) 9014 9495
T: (+61) 417 949 565
Email: [email protected]


US & Canada
Email: [email protected]

NAME

EMAIL

PROJECT TYPE
PROJECT BUDGET

MESSAGE

over a year agoAdd Password Protection to any Folder with .htaccess file https://t.co/88Gh1B8DDt
over a year ago@Telstra is that u: Hi from Telstra, we will be calling shortly to confirm we have correct details on Telstra acc. Any q call 1800139870,
Follow @riksi_web

Whats on Instagram

Loading...

Tags

.htaccess calculation cherry pick composer content css deployer documentation error flex general knowledge get started git git stash hack javascript log mysql package password php PHP Trick replace scss shopify sidebar ssh symlink sync trick ubuntu windows 10 wordpress trick wp
  • GET SOCIAL
Riksi - web design and development

© 2020 All rights reserved. Riksi.com.

TOP