Possible Duplicate:          Most commands I use in linux behave exactly the same whether I include the trailing slash / character on the end of a directory name or not.  For example:  ls /home/cklein ls /home/cklein/  cp foo bar cp foo/ bar/   When does this trailing slash matter?  What is the semantic meaning of the trailing slash?
I have a little question here.  If I have two files, say filea and fileb, mv filea fileb would   delete fileb rename filea to fileb   Then if I have two directories, say dira and dirb, mv dira dirb would   move dira into dirb (it will become dirb/dira)   Noting that in both cases there are no notice or message, then this is pretty inconsistent to me. I think mv dira dirb should just overwrite dirb with the contents of dira (or merge the two directories under a directory named dirb).  I remember reading somewhere that a directory name with a slash (like dira/) is treated like a directory, and name with no slash (like dira) is treated like a file (to certain extents, of course). Anyway now I want to make the shell (zsh and possibly bash) respect my notation of a directory by using a slash. Is there a terminal option which enable me to enforce that?  To clarify, here is my desired behaviour:   mv dira dirb results in dirb being overwritten with the contents of dira mv dira dirb/ results in dira being moved into dirb (in dirb/dira)   Has anyone thought the same way as me? Or am I just weird?
Windows Media Player 12 shows wrong cover art when playing What does “{} \;” mean in find (in Linux)? Sometimes I see a command like  find . -name * -exec ls -a {} \;   I was asked to execute this.  What does {} \; mean here? Is the electromagnetic spectrum discrete? How can I restart a Windows 7 computer without screen or mouse? I'm developing a Custom Post Type plugin, which works fine in dev. Now that I've moved it to production, I'm getting a 404 when I try to display the template for the CPT.   So, two questions:  1- Is there some mechanism to determine the path WP took to get through the hierarchy?  2- Why wouldn't it just give me the single or index page?  I've dumped $wp_query and a stacktrace at the end of the 404. Here's part of what I found:  [query] =&gt; Array     (         [page] =&gt;          [pagename] =&gt; refletters/proximity     )  [request] =&gt; SELECT   wp_posts.* FROM wp_posts  WHERE 1=1  AND (wp_posts.ID = '0') AND wp_posts.post_type = 'page'  ORDER BY wp_posts.post_date DESC  [posts] =&gt; Array     (     )  [queried_object] =&gt;  [queried_object_id] =&gt; 0   And the stack trace:  2013-04-27 22:16:41 - 24.52.197.40 - TRACE - index.php - 404.php[39] -      wordpress/wp-content/themes/notoriousconsultant/404.php[39] - aaLog-&gt;logtrace     wordpress/wp-includes/template-loader.php[50] - include     wordpress/wp-blog-header.php[16] - require_once     wordpress/index.php[17] - require   Thanks for your help. How does DC work with natural 20? Which is correct, "neither is" or "neither are"? I have an Asus Sabertooth Z170 motherboard, with a Samsung 950 Pro m.2 NVMe drive on it. I've heard in the past that installing Windows 7 on an NVMe drive was a significant amount of work. Its now August 2016, is it still difficult? I've seen updates from Microsoft saying they've added support for NVMe in Windows 7.  Can I just download Windows 7 from Microsoft () and put it on a USB drive and install?  Is it harder than that? Define ≡ in this situation? One of the topics that seems to come up regularly on mailing lists and online discussions is the merits (or lack thereof) of doing a Computer Science Degree. An argument that seems to come up time and again for the negative party is that they have been coding for some number of years and they have never used recursion.  So the question is:   What is recursion? When would I use recursion? Why don't people use recursion? I asked a  on stackoverflow at the end of last year for a beta or pre-release product and got the answer I wanted.  3 months later someone else answered the question with the correct answer for a newer release.  This answer got way more upvotes than the one I accepted.  I only noticed this today so changed the accepted answer.  Can I get a notification email when an answer gets say 10 more votes than the one I accepted.  Just to let me know something might be up. How to create a new figure in MATLAB? Rotate whole animation by 90 degrees I make my animation and now I realized that its pointed in wrong direction I used -y (native blender) as direction but I need to be pointed at x axis so what would be the easiest way to rotate whole animation, to switch -y with x :) Meaning of a set in the exponent Let $ D = 2^\mathbb{N} $, i.e., D is the set of all sets of natural numbers.   What's the meaning of this definition? Intuitively, I would suggest that $ D = \{1,2,4,...\} $ but the explanation "set of all sets" leads me to the guess that this is wrong. Evaluate $\int\frac{1}{1+x^6} \,dx$ I came across following problem     Evaluate $$\int\frac{1}{1+x^6} \,dx$$   When I asked my teacher for hint he said first evaluate     $$\int\frac{1}{1+x^4} \,dx$$   I've tried to factorize $1+x^6$ as  $$1+x^6=(x^2 + 1)(x^4 - x^2 + 1)$$ and then writing  $$I=\int\frac{1}{1+x^6} \,dx=\int\frac{1}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx=\int\frac{1+x^2-x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$ $$I=\int\frac{1}{x^4 - x^2 + 1} \,dx-\int\frac{x^2}{(x^2 + 1)(x^4 - x^2 + 1)} \,dx$$  However $$x^4-x^2+1=\left(x^2-\frac12\right)^2+\frac{3}{4}$$ But I can't see how it helps  I've also tried to reverse engineer the   And I need to have terms similar to $$\frac{x^2-1}{x^4-x^2+1} \quad , \quad \frac{1}{1+x^2} \quad , \quad \frac{1}{(x+c)^2+1}\quad , \quad \frac{1}{(x+c)^2+1}$$ in integrand, How can I transform my cute looking integrand into these huge terms?  Since in exams I will neither have access to WA nor time to reverse engineer the solution moreover it does not seem intuitive,is there any way to solve this problem with some nice tricks or maybe substitutions? Google map signed api key errors in Android How can I use an array of function pointers? How should I use array of function pointers in C?  How can I initialize them? The security guard problem GOTO still considered harmful? Seeking feedback on downvoted question? I am trying to improve my skill at asking questions, so I would like to ask feedback on a question I asked that was downvoted.    Why do you think I got downvoted?