Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
When should I use a trailing slash on a directory?

Does the slash make any difference?

share|improve this question

marked as duplicate by manatwork, Stéphane Chazelas, Michael Mrozek Jan 2 '13 at 20:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@PhilippeBlayo, that is why I not linked to How linux handles multiple path separators (/home////username///file). Even if it is closed as duplicate, the question I linked to contains additional information on trailing slashes. – manatwork Jan 2 '13 at 16:49
up vote 9 down vote accepted

The slash gets passed on to the command in the parameter. It is up to the command to decide how to interpret it. For information on specific commands, refer to their documentation (Their man pages, other documentation or their source code). (I know rsync handles it differently and ls doesn't, at least not for normal directories)

According to some other questions, POSIX have some standards, but nothing forces utilities to keep to them.

share|improve this answer
GNU ls will dereference symbolic links if passed an argument with a trailing slash. I don't know if this is POSIX behavior, though. – James Sneeringer Jan 2 '13 at 15:58
That is where the "normal directories" part come from... – Gert van den Berg Jan 2 '13 at 21:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.