FG
💻 Software

Unix: Slash after directory names or not

Fresh5 days ago
Mar 15, 20269476 views
Confidence Score0%
0%

Problem

What is the difference between the following commands? Or is there no difference? Or does it depend on the command being used? Think for example I read that the rsync behavior changes a bit depending on which version you use. Does anyone have a good explanation so I don't have to guess anymore and …

Error Output

mv foo bar
mv foo/ bar/
mv foo/ bar
mv foo bar/

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Unix: Slash after directory names or not

Low Risk

Many Unix utilities treat symlinks differently depending on whether there is a trailing slash. This behavior is described in the POSIX Symbolic Link documentation and is also mentioned in the GNU coreutils documentation. Basically, the trailing slas…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment