Linked Questions
13 questions linked to/from How does Unix keep track of a user's working directory when navigating the file system?
3
votes
0
answers
53
views
Shell: Mounting to CWD does not update in shell session [duplicate]
When mounting a partition into my CWD (mount /path/do/devxy $(pwd)), the current shell session does not recognize it, e.g. find does not show any contents of the partition and umount $(pwd) succeeds ...
15
votes
3
answers
8k
views
Going into a directory linked by a link
When I cd a link, my current path is prefixed with the link's path, rather than the path of the directory the link links to.
E.g.
~/dirlinks/maths$ ls -l logic
lrwxrwxrwx 1 tim tim 71 Jul 27 10:24 ...
12
votes
2
answers
3k
views
Why pwd does not accept long options like --physical?
When I display the manual for pwd command, it says that long options like --physical are supported
$ man pwd
PWD(1) User Commands PWD(1)
NAME
...
9
votes
2
answers
3k
views
What happens when the current directory is deleted?
In the first terminal A, I create a directory, enter the directory, and create a file:
$ mkdir test
$ cd test
$ touch file1.txt
$ ls
file1.txt
Then in another terminal B, I delete the directory:
$ ...
4
votes
3
answers
6k
views
Does `ps` provide the working directory of each process?
Is it correct that the output of jobs contains the working directory when invoking each job (not necessarily the current working directory of each job)?
$ jobs -l | grep JDBC
[15] 20422 Running ...
9
votes
2
answers
1k
views
Strange environment variable !::=::\ in Cygwin
Using Cygwin, I installed Environment Modules by downloading source code, running configure, make, and make install. Every time I run a module command, I get:
init.c(718):WARN:165: Cannot set TCL ...
3
votes
1
answer
3k
views
what is inode for, in FreeBSD or Solaris
I know a little about linux kernel. BUt for Freebsd, the "vnode" actually is similar to the "inode" in Linux kernel.
And there is a "inode" concept in FreeBSD or Solaris.
So my question is: what is "...
6
votes
1
answer
1k
views
Why does CDPATH not work as documented in the manuals?
The Bourne Again shell manual says, of cd dir: […] each directory name in CDPATH is searched for dir. […] If dir begins with a slash (/), then CDPATH is not used.
The Z shell manual ...
2
votes
1
answer
658
views
How can I set zsh to use physical paths?
In bash, I can put set -P in my .bashrc, and to use absolute paths. That is, if I change to a directory through a symbolic link, and then use cd .., it takes me to that directory's canonical parent, ...
3
votes
1
answer
1k
views
Why do relative paths that traverse a symlink in reverse resolve using the true path?
Either I've completely misunderstood something about symlinks (most likely), or their behaviour has changed at some point and I'm now catching up.
I have a script directory that resides somewhere on ...
1
vote
1
answer
761
views
Inconsistent behavior of Bash's `cd` with symbolic links [duplicate]
I am currently trying understand the behavior of Bash's cd when it comes to symbolic links. By default, cd should follow the logical directory structure and should not resolve symbolic links.
cd ...
2
votes
1
answer
160
views
How are files opened in unix?
What's the internal process of opening a file?
To open a file, the system converts the pathname to inode and from the inode search the corresponding driver disk portion to look for the content of the ...
0
votes
3
answers
114
views
Is working in symlink directory identical to working in the directory directly? [duplicate]
In my home directory, I have a folder named symlinks in which all my symlinks live. I've added this folder to my CDPATH, so that I can do:
~$ cd FarAwayDirectory
~/symlinks/FarAwayDirectory$
I’ve ...