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

214
votes
4answers
286k 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 ...
110
votes
7answers
279k 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 ...
146
votes
8answers
220k 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
135k views

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

I type echo $PATH on the command line and get ...
27
votes
4answers
76k 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 ...
11
votes
5answers
58k 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?
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?
13
votes
4answers
79k 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. ...
51
votes
3answers
22k views

What is the longest file path that Windows can handle?

What is the longest file path that Windows can handle?
47
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.
94
votes
17answers
26k 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 ...
73
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?
24
votes
5answers
42k 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 ...
9
votes
3answers
42k 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 ...
7
votes
7answers
56k 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; ...
7
votes
5answers
17k 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 ...
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 ...
2
votes
1answer
4k 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 ...
120
votes
8answers
37k 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 ...
84
votes
4answers
52k 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
26k 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
6k 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 ...
8
votes
3answers
19k 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.
14
votes
3answers
68k 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)?
27
votes
2answers
20k 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 ...
10
votes
4answers
9k 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
55k 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
44k views

How To Add Python to the Windows Path

How do I add python to the windows PATH permanently?
8
votes
3answers
11k 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 ...
3
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. ...
1
vote
2answers
18k 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 ...
1
vote
8answers
24k 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 ...
19
votes
3answers
30k 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 ...
15
votes
2answers
8k 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.
10
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 ...
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
6answers
22k 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 ...
3
votes
2answers
192 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
2answers
436 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
14k 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
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
2k 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 ...
0
votes
2answers
629 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 ...
27
votes
3answers
25k 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 ...
16
votes
6answers
29k 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 ...
46
votes
4answers
15k views

which/whereis differences

What's the difference between which and whereis ?