Linked Questions

152 votes
6 answers
31k views

I'm working on a python script that passes file locations to an scp subprocess. That's all fine, but I'm in a situation where I may end up concatenating a path with a filename such that there's a ...
Falmarri's user avatar
  • 13.6k
4 votes
1 answer
251 views

When I change directory to //, it seems to put me in a special directory that is very similar to but slightly different to /. However, trying to add any further slashes (///) simply drops me in /. $ ...
Shelvacu's user avatar
  • 738
0 votes
1 answer
168 views

Due to a typo, I accidentally cd into //. Which turns out to be a real directory (but same content as /) So what is the difference between / and // (despite having identical content) Real example: (...
Mattisdada's user avatar
1 vote
0 answers
130 views

Possible Duplicate: unix, difference between path starting with '/' and '//' On my Mac OS X Lion box, with Bash: $ cd // $ pwd // $ ls Applications System cores ...
TALlama's user avatar
  • 111
2 votes
0 answers
116 views

Possible Duplicate: unix, difference between path starting with '/' and '//' If I make a cd // followed by a pwd I see: # cd // # pwd // why is that? what's the differece with: ...
ztank1013's user avatar
  • 2,261
-1 votes
1 answer
75 views

I noticed in Ubuntu that the following commands go to seemingly different locations in the file system, but the locations have the same files: cd / cd // ls-ing from both locations produces the same ...
tuskiomi's user avatar
  • 127
2 votes
1 answer
150 views

On my ubuntu box I accidentally just did cd // and noticed that my current path changed to //. ls showed the contents of my root directory. When I try cd /// (or any other number of slashes) I'm just ...
Aidan Kane's user avatar
0 votes
2 answers
80 views

What is the meaning of the directory specified by '//'? It can be accessed by typing in 'cd //' at the comand prompt. I have tried this on mac 10.9.5 and Centos 6. It shows the contents for the ...
agfsgafg's user avatar
  • 101
0 votes
0 answers
73 views

$ cd / /$ ls bin dev home initrd.img.old lib64 media opt root sbin sys usr vmlinuz boot etc initrd.img lib lost+found mnt proc run srv tmp var vmlinuz....
Vorac's user avatar
  • 3,207
127 votes
9 answers
13k views

Throughout the POSIX specification, there's provision (1, 2, 3...) to allow implementations to treat a path starting with two / specially. A POSIX application (an application written to the POSIX ...
Stéphane Chazelas's user avatar
18 votes
2 answers
8k views

I added a symlink to the current directory with ln -s . aa. If I execute cd aa, and after that I executed pwd, the response is /home/sim/aa. But if I execute /bin/pwd it prints /home/sim (the current ...
user3581976's user avatar
  • 3,265
17 votes
3 answers
10k views

Today when writing my shell script. A question suddenly comes to my mind. Since cd /target_dir and cd /target_dir/ both works. Should I add a slash at the end of my path variables in a shell script? ...
ZengJuchen's user avatar
  • 7,927
2 votes
1 answer
355 views

I was editing a script I wrote some time ago to automatically backup the contents of my Raspberry Pi SD card, and in the course of editing, I missed a "/", and so here is the entire shell script: #!/...
iwantmyphd's user avatar