O.K I am trying to do the following very simple command and it is failing as follows...
mv '/home/admin/Downloads/folder1' '/home/admin/MyLibrary/MyVideos/TV/folder1/'
mv: cannot move `/home/admin/Downloads/folder1' to a subdirectory of itself, …
can anyone tell me why when I type:
mv -f ./tmp/members ./
I get:
mv: cannot move `./tmp/members' to a subdirectory of itself, `./members'
And moreover the correct way to move this directory?
Also, there is already a directory at ./members ... I…
I have the below script in Shell:
read n
for ((i=1;i<=$n;i++))
do
echo "Connecting to $publicip"
ssh -i ./key.txt root@$publicip 'hostnamectl set-hostname autotest$i.domain.com && mv /etc/letsencrypt/live/autotest.domain.com…
I am running an ansible task (inside a role):
- name: Rename dir
become: yes
shell: mv /data/files/1.6.5 /data/files/1.7.0
The intended effect is that 1.6.5 is renamed to 1.7.0
Now, on the target host, in one instance I had 1.7.0 existing:
~$…
I am looking for some solution, where I have to move all the directories and files under the source directory to the destination a day before. I want to move the directories till yesterday but not today’s.
find /temp/source/* -mtime +1 -exec mv -t…
I'm trying to write a script that moves files and (sub)directories from within one directory to another. That move operation should include not only regular files and directories but also any dot-files. So far I've come up with this:
mv -f…
I don't why that happened but I was in /var/www and I fired the command
mv wordpress /* ./
And now I'm not able to access my server via ssh, rdp or teamviewer. I really gotta fix it. What should I do (If I get SSH access somehow)? And can anyone…
I'm working on a deploy script which wants to update a symlink atomically. I intend to use a command like
$ ln -s new current_tmp && mv -Tf current_tmp current
(Credit to here for details on why this works).
However, not all versions of mv support…
I want to move a large file (hdd of a paralells vm, 81G) from one hd to another. After some time I get the error message: Input/output error. What can I do to move the file?
I checked source and target drive (with the osx internal tools), they…
I goofed up and /var/lib/kubelet was not mounted on a server. So it was on the root. I noticed this and I want to fix it. I did the stupid thing and just tried to stop the associated services (kubelet), rename the existing directory to…