Solved

.profile on mac

Posted on 2009-07-03
2
348 Views
Last Modified: 2013-11-12
Hi,

I have edited my .profile file in my home directory of Terminal. But have entered an incorrect path.

i.e.

Last login: Fri Jul  3 12:36:45 on console
-bash: export: `directory?]:/usr/local/mysql:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin': not a valid identifier
stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ ls
-bash: ls: command not found
stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ pwd
/Users/stevey_mac2k2
stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ ls
-bash: ls: command not found
stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ cd /
stephen-mcgowans-macbook-pro:/ stevey_mac2k2$ ls
-bash: ls: command not found
stephen-mcgowans-macbook-pro:/ stevey_mac2k2$ suod -s
-bash: suod: command not found
stephen-mcgowans-macbook-pro:/ stevey_mac2k2$ ls
-bash: ls: command not found
stephen-mcgowans-macbook-pro:/ stevey_mac2k2$ sudo -s
-bash: sudo: command not found
stephen-mcgowans-macbook-pro:/ stevey_mac2k2$ pico .profile
-bash: pico: command not found

Is there any way of getting into .profile and editing it?

Also if i want to change $PATH to usr/local/mysql how would i go about this... as i have done it incorrectly the first time round.

My echo $PATH currently reads:
/usr/local/mysql



Thanks.


0
Comment
Question by:StephenMcGowan
2 Comments
 

Author Comment

by:StephenMcGowan
ID: 24772173
Since then i've found that the command line:

stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ export PATH=/usr/local/mysql:$PATH

does not come back with "command not found"

i've tried fixing the path in my command line to bring back my commands, but the directory above doesn't seem to be working.

i have also tried lines such as:

stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ export PATH=/usr/local/mysql:
stephen-mcgowans-macbook-pro:~ stevey_mac2k2$ export PATH=/usr/local/mysql

but to no avail.

Is there any way of me retrieving my unix commands back in Terminal?

thanks.

0
 
LVL 53

Accepted Solution

by:
strung earned 500 total points
ID: 24772772
If you drag and drop a folder into the terminal window it should return the path name.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why does one computer fail to connect to website? 7 117
auto desk feauture 5 56
pdf convertor 7 76
app store blank on mac 3 51
We could spend the next millennium discussing the differences of the Mac and Windows platforms. The next century will continue to have fanatics on both side of the equation and neither side will win the war. However, that’s not why we are here. W…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question