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.
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Rep:
Moving packages - linux command structure
I have done a little research on how the basic command structure works with Linux - with some success. Being a Newbie, new problems turn up nearly every day which causes the old heart to become agitated at times. At the moment I work as root because, I am the only user on the computer - and that I haven't got around to creating a user profile yet. After following tips from the forum and general searches on the net I have been able to download packages onto the desktop and create directories for them - and then moving those packages into directories before unpacking and installing depending on the package format.
My problem at the moment is I downloaded the latest version of wine-0.9.35-i486-1kjz.tgz This file I downloaded to desktop as usual and tried to move it to a directory that I had created before installing it. Well, as you guessed it, I couldn't move it for some reason. I kept on getting "directory doesn't exist" or similar information. I was wondering about the rights as root for moving packages of different formats. I created a directory in /usr/local - which I just called pkg hence mkdir /usr/local/pkg as usual this went ok, but when i tried the following command the package stood still on the desktop "mv desktop/wine-0.9.35-i486-1kjz.tgz/usr/local/pkg/
Can anyone shed some light on my problem - not forgetting that I am a Newbie and I have learned all I know from the internet and friends. Maybe I am doing something totally wrong. Please, please point me int the right direction.
The first thing I notice is you typed in the mv command without a space between the files. The syntax would be "mv /original/file /destination/file".
Also remember that Linux is case sensitive. On most distros, the desktop folder is in /home/username/Desktop (btw, the command you issued would only work if you were in the home directory. If you run as root, it should be in /root/Desktop I think...
By the way, what distro are you using? I'm assuming it's slackware, as it usually archives it's packages like that; in this case, you don't even need to move it, you can install from any dir with installpkg, and then in 99% of the cases you won't need the original package. (I might be wrong)
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320
Original Poster
Rep:
re-moving packages
Thanks guys, Nirmaltom was on the right track. I made a typing error on my thread. desktop should have been a capital D . I copied from Nirmaltom, but received "cannot stat" as a reply, so I changed the small d for a capital D and then it moved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.