Path in computer file systems is in general the human-readable address of a filename or directory specifying a unique location in a file system, and expressed by a string of path components separated by a delimiter (most commonly the slash "/" or the backslash "\"). PATH (variable), is an ...

learn more… | top users | synonyms

157
votes
7answers
176k views

What are PATH and other environment variables, and how can I set or use them?

Questions about setting environment variables the PATH are very common here, and in most cases the answers are very similar to each other. In the future it would be nice to have a good Q/A for ...
52
votes
7answers
110k views

Using cd Command in Windows Command Line, Can't Navigate to D:\

This may be a stupid question, and I think I have looked elsewhere to find the answer... Might be a path issue, but when I open the command line and type from the C:\>: cd D:\ I cannot get to ...
106
votes
8answers
118k views

Where does $PATH get set in OS X 10.6 Snow Leopard?

I type echo $PATH on the command line and get ...
17
votes
4answers
48k views

What is the default PATH environment variable setting on fresh install of Windows 7

A user of ours cleared their path, thanks to some directions on the internet. What is the default path, I am a developer so I have tons of extra stuff in mine, what should my user get on a plain jane ...
19
votes
4answers
18k views

Restoring Windows XP PATH variable

I installed an application that screwed my PATH variable. Now I cannot run anything from the command prompt. Is there any way I can restore PATH variable?
4
votes
3answers
38k views

Where are the user profile directories of Google Chrome located in?

Where are the user profile directories of Google Chrome located in? It may seem like a very simple question, but I couldn't find it. I checked inside %APPDATA%, but there were noting relevant there. ...
43
votes
3answers
16k views

What is the longest file path that Windows can handle?

What is the longest file path that Windows can handle?
34
votes
3answers
5k views

Why is . not in the path by default?

On UNIX-like systems over the years (most relevantly to me, Linux), I've noticed that . (current dir) is never in the $PATH by default. Why is this? I recall reading years ago that it was a security ...
62
votes
13answers
18k views

Add directory to $PATH if it's not already there

Has anybody written a bash function to add a directory to $PATH only if it's not already there? I typically add to PATH using something like: export PATH=/usr/local/mysql/bin:$PATH If I construct ...
6
votes
2answers
24k views

How do I reset the $PATH variable on Mac OS X?

I've messed up my path variable, and now some apps that I run raise errors saying Command Not Found (error 127) for commands like date and sleep. These commands work fine when executed directly in the ...
3
votes
3answers
22k views

Deleted Path environment variable, how to restore?

I accidentally deleted the Path environment variable by creating a new one with Path name. How can i restore my old Path environment variable?
4
votes
5answers
2k views

What does “/” , “./”, “../” represent while giving path?

What does "/" , "./", "../" represent while giving path?
3
votes
3answers
3k views

Add folder to PATH

How to add something to PATH ? I have added like PATH=$PATH:/home/example export PATH and it works until I restart , after that when I type env in PATH there is no /home/example.
51
votes
2answers
27k views

Why does Windows use backslashes for paths and Unix forward slashes?

It annoys me having used Unix in college and now working on the Windows side. What's the history behind this decision? Anyone know why it worked out this way?
12
votes
5answers
7k views

Adding an .exe to default path without adding the directory

For example, I want to add notepad++ to my PATH, however the directory also contains uninstall.exe and several other files/executables and I don't want them to "pollute" my path. Can I just add the ...
71
votes
8answers
18k views

Is there a convenient way to edit PATH in Windows 7?

I do not understand why Windows 7 is still adopting this stuffy dialog box? I feel uncomfortable when editing and looking-up a path in this narrow text box. Is there a convenient way to edit PATH ...
39
votes
5answers
24k views

Windows 7's PATH and environment variables are corrupted

I have no clue, but lately I've been having this problem. After running my workstation suddenly something destroys PATH and lots of stuff stops working. Initially, my path had MANY directories listed ...
20
votes
3answers
5k views

Best practice for Windows PATH/environment variables managing?

Right now, it's such a mess. Every time I install a new program that does something trivial in the command line, I have to add it to the path. In fact, I'm developing on Ruby and even gems ...
10
votes
4answers
52k views

How do I extend the maximum file path size in Windows 7? [duplicate]

Possible Duplicate: What is the longest file path that Windows can handle? Does anybody know if it is possible to extend the maximum path length in Windows 7 (64-bit)?
3
votes
4answers
4k views

How does unix search for executable files?

When a file is executed, how does UNIX search for it? If there are multiple executable files in PATH with the same name which one is preferred? Is current directory included in the search when file is ...
1
vote
2answers
12k views

Getting PATH right for python after MacPorts install

I can't import some python libraries (PIL, psycopg2) that I just installed with MacPorts. I looked through these forums, and tried to adjust my PATH variable in ~/.bash_profile in order to fix this ...
10
votes
5answers
44k views

Different PATH environment variable for 32bit and 64bit Windows - is it possible?

Is it possible to have whole or part of PATH environment variable specific to the type of running process's image (32bit/64bit)? When I run some app from within 64bit cmd.exe I would like to have it ...
10
votes
2answers
9k views

Avoid unwanted path in Zip file

I'm making a shell script to package some files. I'm zipping a directory like this: zip -r /Users/me/development/something/out.zip /Users/me/development/something/folder/ The problem is that the ...
3
votes
1answer
1k views

Linux-style path on windows or vice versa

I have a directory that is synchronized between my windows and linux installations via dropbox. In Windows Vista, it appears as X:\ drive, in Linux (latest xubuntu), it's mounted as /x/ directory. ...
13
votes
4answers
17k views

How To Add Python to the Windows Path

How do I add python to the windows PATH permanently?
8
votes
3answers
8k views

adding PATH with SETX or PATHMAN or something else?

I am trying to add a PATH from command line, as with SETX %PATH%... it always expands the PATH, which I don't want. PATHMAN is exactly for this purpose, but it doesn't work for me on Windows 7. It ...
5
votes
2answers
4k views

How to update the PATH user environment variable from command-line

I have a system PATH variable with the system level config. I use the user PATH variable to complement the PATH with user-specific config. I would like to update the user PATH variable from ...
4
votes
6answers
16k views

Command line app 'not recognized as internal or external command.'

A few years back I made a couple of console command line apps which at the time worked with no issues. I'd place them in the window/system32 directory and be able to use them from the console prompt ...
2
votes
1answer
2k views

Messed up $PATH variable in Mac OS X

I did something to my PATH. I was trying to add some new path and now none of the command like open ~/.bash_profile work, and echo $PATH only shows one path which is /Application/Filename. Is ...
0
votes
8answers
19k views

How to insert time and date, and the directory path in Notepad++?

I just downloaded Notepad++ v 5.3.1 and I'm having two problems with the TextFX plugin: I recorded a macro with "TextFX Insert" > Date & Time (no matter whether short or long format) and, after ...
3
votes
1answer
218 views

Special characters in Emacs dired and attachment paths on Windows 7: “\374” instead of “ü” displayed

I want to use dired+ in Emacs for browsing directory paths on Windows 7. I'm having problems with special characters like äöü in dired mode and in attachment paths: dired When I'm trying to ...
1
vote
2answers
93 views

How can I list permissions of every component in a file path?

Sometimes it is necessary to determine on which directory in a path access rights are limited. Here is an example: $ ls /sys/kernel/debug/usb/devices ls: cannot access /sys/kernel/debug/usb/devices: ...
1
vote
1answer
1k views

Access/modify the User path variable, not System path

I am trying to make an installer for a program and my workplace doesn't allow us 'regular' users to modify the system environment. In an effort to get around the restrictions, I'm trying to add my ...
1
vote
2answers
279 views

Modify PATH variable for X11 during log-in

I am working on some lab computers (read: no administrative rights) that, if I log in, I need to change the PATH variable as X11 starts. The reason is that I need to change the PATH variable at this ...
1
vote
1answer
12k views

Lost Path environment variable, how to restore?

Within my 15 years of PC experience I have never seen something like this. My Path variable within the Environment Variables is deleted for some reason. And now Windows 7 shows for Windows Explorer. ...
1
vote
1answer
3k views

Update file paths to movies in PowerPoint

I have recently had my work laptop upgraded to Windows 7 (from XP). This, of course, led to changes in the paths to "My Documents" (now C:\Users\..., formerly C:\Documents and Settings\...). One ...
0
votes
2answers
389 views

How to permanently reset my $PATH?

I was trying to add something to $PATH and it went totally wrong. I now can't run any commands such as ls. I've looked at this answer ...
11
votes
6answers
13k views

Can I add a shortcut to replace a path in Linux?

For example, I always go to this path: /user/something/somefolders/somewhere but I don't want to type cd /user/something/somefolders/somewhere in the terminal all the time, can I have ...
12
votes
3answers
11k views

Mac OSX: conventional places where binary files should live

I'm only vaguely familiar with Unix and the filesystem convention for Macs, so sorry if this is a dumb/easy question. I've downloaded an application that is a command-line application, and want to ...
5
votes
4answers
13k views

How can I update the default Python installation/fix my $PATH on Mac OS X 10.6.7?

I know this question has been asked before on this site, and I have found a couple worthy discussions, but the solutions I've found and tried do not work. I want to learn Python and I'm having trouble ...
3
votes
2answers
6k views

Access to a disk drive using volume ID instead of a drive letter in Windows

Can I access to a disk drive using volume ID instead of a drive letter in Windows? It could be very useful for external drives.
6
votes
2answers
732 views

Potential issues with adding /usr/local/[s]bin to root's path?

I've noticed that the root account $PATH does not include /usr/local/bin or /usr/local/sbin by default. Are there any potential issues that could arise from adding those directories to the path? If ...
4
votes
2answers
2k views

How can I update cygwin shell environment variables set in System Properties window

Suppose I go into the System Properties window and add an environment variable to the Path. If I have a terminal window open, it will be unaware of the change, so I close it and open another one. Is ...
4
votes
7answers
33k views

Spaces and Parenthesis in windows PATH variable screws up batch files

So, my path variable (System->Adv Settings->Env Vars->System->PATH) is set to: C:\Python26\Lib\site-packages\PyQt4\bin; %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\System32\Wbem; ...
2
votes
1answer
730 views

Bash autocomplete paths “through” environmental variables

I used to be able to type cd $home/p hit the tab key and the command would change to cd /home/phill Now it doesn't. When cd'ing to a directory based on an environmental variable, I'm "flying ...
17
votes
3answers
26k views

Can I change the PATH environmental variable in Windows 7 without restarting?

Is there anyway to change the PATH environment variable (or variables in general) on Windows 7 Exterprise (64 bit) and have it take effect in PowerShell or the command prompt (cmd.exe) without ...
11
votes
1answer
23k views

How to permanently add current directory to PATH in Linux? [duplicate]

Possible Duplicate: Add folder to PATH I want to a add a directory to my bash to search in, and I am using the $PATH=.... it works however when I open a new command window it is not there. ...
5
votes
1answer
367 views

Too many folder paths in PATH variable?

Is there a cost of having too many folder paths in the folder variable? I mean as you keep on adding paths in to your System Path Environment variable, Is it going to cause Powershell to load slightly ...
4
votes
1answer
2k views

What is the default path setting for windows 8?

I accidentally changed my path in control panel! What should I set it to?
4
votes
1answer
4k views

/etc/environment not being read into PATH variable

In Ubuntu the path variable is stored in /etc/environment. This is mine (I've made no changes to it, this is the system default): $ cat /etc/environment ...