LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2018, 08:30 PM   #16
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,351
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147

Quote:
I never use a trailing slash. mv works perfectly well without it.
I've been bitten by this one a couple of times, but I haven't done the forensics to determine exactly what happened; maybe I misspelled something or the target directory did not exist, so the moved file took the name of the directory.

I just trained myself to use the /.
 
Old 08-01-2018, 04:40 AM   #17
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,627
Blog Entries: 19

Rep: Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462Reputation: 4462
The wrinkle I have found in mv works the other way around. If I type mv directory1 directory2, expecting it to rename directory1, it doesn't. It just moves directory1 inside directory2 as it might do with any other file. But strangely enough, if I type mv -v directory1 directory2, then it works. I discovered that usage from the LFS book. Now why should asking it to be verbose make such a difference?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Terminology disambiguation marcos egatz Linux - Newbie 3 07-19-2011 07:05 PM
Backup terminology Stin Linux - Newbie 2 05-13-2008 06:21 PM
Wireless Terminology cjcj Linux - Newbie 3 05-12-2008 11:50 AM
Terminology Confusion lazylogic Linux - Newbie 3 04-28-2008 02:00 PM
Understanding terminology digantk Linux - General 9 10-18-2002 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration