Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
should work fine. what does "no responding" mean? as there is no -v flag it won't tell you what it's doing until it's finished, is that what you're confused about? Needing to put it in a nohup suggests there's a lot of data to move in the first instance.
If with "no responding" you mean you don't get the prompt back: Put an ampersand after the command:
Code:
nohup mv /users/q /users/w &
Hope this helps.
I always find it strange that it doesn't background it, you'd have thought that'd be default behaviour really. I guess that would deviate from how consistently gnu programs work in general though.
mv == rename :
iirc, if src & tgt src on same partition, it just renumbers the inode entries in the containing dir files.
If src & tgt are on different partitions, then it will have to physically 'move' the entire 200GB of data.
nohup is use to run a program/script after you exit the system. If you log back in you can see the running process by typing
tail -f nohup.out
Whenever I learn a new command I always do a test run on it. The first time I used this command I created a counting script and logged out of the system for 1 minute.
I logged back in and ran tail -f nohup.txt and the output was
75
76
77
78
79
And so on.
This is a partial output. The script was still running and appending the results to the nohup.txt file
BTW, you can redirect the output to another file besides the default one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.