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

224
votes
4answers
303k 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 ...
112
votes
8answers
300k 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 ...
154
votes
8answers
236k views

How to delete a file in Windows with a too long filename? [duplicate]

My wife has several files and folders that somehow ended up having filenames that have caused them to be undeleteable (can't be deleted) by normal means or via the command line. I believe the ...
118
votes
8answers
137k views

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

I type echo $PATH on the command line and get /opt/local/bin:/opt/local/sbin:/Users/andrew/bin:/usr/local/bin:/usr/local/mysql/bin:/usr/local/pear/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/...
28
votes
4answers
78k 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 ...
12
votes
5answers
62k 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?
51
votes
3answers
23k views

What is the longest file path that Windows can handle?

What is the longest file path that Windows can handle?
48
votes
4answers
8k 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 ...
4
votes
3answers
4k 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.
96
votes
18answers
27k 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 ...
74
votes
2answers
38k 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?
19
votes
4answers
21k 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?
9
votes
3answers
44k 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 ...
8
votes
5answers
20k views

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

What does "/" , "./", "../" represent while giving path?
19
votes
7answers
12k 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 ...
14
votes
4answers
84k 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. ...
6
votes
3answers
9k 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 command-...
85
votes
4answers
54k 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
27k views

Environment variables in bash_profile or bashrc?

I have found this question [blog]: Difference between .bashrc and .bash_profile very useful but after seeing the most voted answer (very good by the way) I have further questions. Towards the end of ...
20
votes
3answers
7k 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 (plugins/...
24
votes
5answers
45k views

Using relative paths for Windows shortcuts

I have a folder scheme like (highly simplified version): New Files >Tools >Scripts Tested Files >Tools >Scripts ... and I'd like to have a shortcut in each folder from the "New ...
16
votes
3answers
70k 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)?
28
votes
2answers
21k 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 ...
11
votes
4answers
10k 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 ...
13
votes
6answers
56k 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 ...
1
vote
2answers
14k 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 ...
21
votes
4answers
49k views

How To Add Python to the Windows Path

How do I add python to the windows PATH permanently?
8
votes
3answers
12k 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 ...
4
votes
1answer
2k 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. ...
16
votes
2answers
9k views

What is difference between %WinDir% and %SystemRoot%?

What is difference between %Windir% and %Systemroot% in Windows Path Location? Both of them show "Windows" folder location.
19
votes
3answers
31k 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
3answers
11k views

Too many folders in the path variable

I've encountered a strange issue - I can't launch Visual Studio, nor run simple commands from command prompt, seemingly due to my PATH variable being too long. Now that I look at it, I see that many ...
5
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?
3
votes
2answers
203 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: ...
2
votes
1answer
3k views

Access/modify the user Path variable, not system Path

I am trying to make an Inno-setup 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 ...
1
vote
1answer
5k 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
1answer
3k views

Standard value of PATH variable Windows 10

After having poorly handled the PATH system variable (resulting in deletion), I'm now looking to reinstate the variable with the original value. I found answers like this one about Windows 8 and ...
124
votes
9answers
39k 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 ...
51
votes
4answers
15k views

which/whereis differences

What's the difference between which and whereis ?
18
votes
6answers
31k 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 ...
27
votes
3answers
26k views

Mac OS X: conventional places where binary files should live

I've downloaded an application that is a command-line application, and want to put it somewhere where I can run it from the command-line without having to type the path explicitly. What are the ...
8
votes
3answers
22k 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.
7
votes
4answers
19k 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 ...
17
votes
2answers
23k views

How can I set user environmental variables (such as PATH) from a non-administrator account on Windows 7

How can I set user environmental variables (such as PATH) from a non-administrator account on Windows 7? On Windows XP I could go into the Advanced Settings in the System Control panel. However, on ...
8
votes
8answers
58k 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; %SYSTEMROOT%\...
12
votes
4answers
15k views

Passing PATH through sudo

In short: how to make sudo not to flush PATH everytime? I have some websites deployed on my server (Debian testing) written with Ruby on Rails. I use Mongrel+Nginx to host them, but there is one ...
4
votes
1answer
5k views

Where to store bash scripts that all users may execute on Debian?

I have many bash scripts on my server, that all users may use. but it seems the location /usr/local/sbin is not the best place. I don't want to use the home directory of the users, cause ...
3
votes
3answers
6k views

Strange PATH issue in Windows 7 - goes null after being set

I have some sort of a problem with the PATH system variable. Since I use a lot of cmd apps and scripts I've added a lot to it. But the string's length is not the issue. I've worked around this ...
1
vote
1answer
1k views

Get path of open file in any application on Mac OS X?

I installed Afloat for Mac OS X and I really like that it has a shortcut to "Reveal Current File in Finder". This works for basically all applications written in Cocoa. Can I use something like that, ...
1
vote
2answers
19k views

I overwrote my environment variable PATH

I've accidentally overwritten the environment variable PATH in Windows 8 (64 bit). How can I reset it? I'm scared to shut down the PC before fixing this problem. Otherwise I might copy it from ...