Skip to main content
deleted 56 characters in body
Source Link
cuonglm
  • 158.1k
  • 41
  • 342
  • 420

Another way to check what . and .. in / really is:

% cuonglm at ~
%$ readlink -f ..
/home
% cuonglm at ~
%$ readlink -f /.
/
% cuonglm at ~
%$ readlink -f /..
/

As you can see, . and .. is pointed to /.

Another way to check what . and .. in / really is:

% cuonglm at ~
% readlink -f ..
/home
% cuonglm at ~
% readlink -f /.
/
% cuonglm at ~
% readlink -f /..
/

As you can see, . and .. is pointed to /.

Another way to check what . and .. in / really is:

$ readlink -f ..
/home

$ readlink -f /.
/

$ readlink -f /..
/

As you can see, . and .. is pointed to /.

Source Link
cuonglm
  • 158.1k
  • 41
  • 342
  • 420

Another way to check what . and .. in / really is:

% cuonglm at ~
% readlink -f ..
/home
% cuonglm at ~
% readlink -f /.
/
% cuonglm at ~
% readlink -f /..
/

As you can see, . and .. is pointed to /.