Code: Select all
mv -t /home/heatlocke/Downloads/DWA-160_REVB_DRIVERS_1.610_LINUX /usr/src/
Code: Select all
mv -t /home/heatlocke/Downloads/DWA-160_REVB_DRIVERS_1.610_LINUX /usr/src/
In the man page:ramblin wrote:I thought I better ask this in a new thread before I mess everything up. I was trying to move a folder named " DWA-160_REVB_DRIVERS_1.610_LINUX" to my src folder. Instead I moved my src folder inside the "DWA-160_REVB_DRIVERS_1.610_LINUX" folder. I tried several times to move it back but thankfully I got errors. Can I move it back or can I create a new src folder inside the usr folder. I`m having a hard time wrapping my head around the cd and mv commands. Everything I study about them is over my head. This is my original command that messed it up. Thanks
Code: Select all
mv -t /home/heatlocke/Downloads/DWA-160_REVB_DRIVERS_1.610_LINUX /usr/src/
Code: Select all
-t, --target-directory=DIRECTORY
move all SOURCE arguments into DIRECTORY
/usr/src is owned be root, so file manager does allow acces to them as normal user.ramblin wrote:ardouos, I read the man before I tried this and thought /home/heatlocke/downloads/ was my target I was trying to send to usr/src.
I still have no idea how to proceed to put it back. How do I move with file manager ? I tried that first but options in the menus were not highlighted.
Mayb try the first few modules atramblin wrote: ...
I`m having a hard time wrapping my head around the cd and mv commands. Everything I study about them is over my head.
Code: Select all
cd /home/heatlocke/Downloads/DWA-160_REVB_DRIVERS_1.610_LINUX
sudo mv src /usr/
Thanks debiman and the rest of you trying to help. For obvious reasons this won`t help me now since there is nothing left to move. But I have studied hard and managed to solve my problem myself. Didn`t copy the commands but as root I "cd" to /usr/. Then run mkdir src and it worked ( well not right off, or even the 2nd or 3rd time but I figured it out).ramblin wrote: UPDATE: While following this logic to put things back I managed to delete the src folder completley. Nothing in there I needed any way. Now I just need to create a new src folder in usr.
I appreciate everyone looking out for me but I`m not one to sit and ask questions and expect everyone to solve my problems. My opinion is this is a test build and a learning process for me. If I mess it up so bad it won`t boot, (did it already loading wrong headers] I will learn from fixing it (did it, recovery mode, removed it all ] and I will know more in the end. Not always a good plan for everyone. Thanks guys !debiman wrote: i agree with previous posters, if cp and mv are "over your head" you should use a handholding distro like ubuntu and leave well enough alone - at least until you have learned a little more.
i wonder why you started this thread then.ramblin wrote:I`m not one to sit and ask questions and expect everyone to solve my problems.
Code: Select all
man mv
ok.My opinion is this is a test build and a learning process for me. If I mess it up so bad it won`t boot, (did it already loading wrong headers] I will learn from fixing it (did it, recovery mode, removed it all ] and I will know more in the end.
Looking at the man file:ramblin wrote:I thought I better ask this in a new thread before I mess everything up. I was trying to move a folder named " DWA-160_REVB_DRIVERS_1.610_LINUX" to my src folder. Instead I moved my src folder inside the "DWA-160_REVB_DRIVERS_1.610_LINUX" folder. [...]
Code: Select all
mv -t /home/heatlocke/Downloads/DWA-160_REVB_DRIVERS_1.610_LINUX /usr/src/
Code: Select all
MV(1) User Commands MV(1)
NAME
mv - move (rename) files
SYNOPSIS
mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
DESCRIPTION
Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY.
debiman wrote:ok.
we love to get pestered by clueless noobs which we then can slap around a bit.
but you should have mentioned the "not-mission-critical, i'm just messing around" bit right at the beginning.
but wait, maybe you'd have gotten fewer answers then?
because everybody thought that they're actually helping you with a real problem?
so, you twist my words and victimize yourself.ramblin wrote:Wow, that pretty rough. It was never my intent to pester anyone. At the time I asked the question I really I had studied the man pages. I had googled my problem for hours. Has it occured to you that 95% of the info on the subject petains to other distros and is often incorrect. I don`t get it. If we ask questions we are clueless noobs pestering everyone. If I try and solve it myself " i'm just messing around". That OK, I`m a big boy and I can take being slapped around a bit and I will learn from it. I doubt I`ll be around though, I expect to be banned for speaking out.debiman wrote:ok.
we love to get pestered by clueless noobs which we then can slap around a bit.
but you should have mentioned the "not-mission-critical, i'm just messing around" bit right at the beginning.
but wait, maybe you'd have gotten fewer answers then?
because everybody thought that they're actually helping you with a real problem?
well, at least you said thank you.I appreciate everyone looking out for me but I'm not one to sit and ask questions and expect everyone to solve my problems. My opinion is this is a test build and a learning process for me. If I mess it up so bad it won't boot, (did it already loading wrong headers] I will learn from fixing it (did it, recovery mode, removed it all ] and I will know more in the end. Not always a good plan for everyone. Thanks guys !