Computing.Net > Forums > Linux > moving directories using bash

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

moving directories using bash

Reply to Message Icon

Name: richard kenny
Date: December 2, 2004 at 16:44:36 Pacific
OS: mandrake10
CPU/Ram: 433celeron
Comment:


HI there. I'm new at this, and managed to install the firefox browser, but have it in my home directory and want to move it to the usr/share/, but can't seem to get it right, can someone give me an example of how to do this. Thanks Much, Richard Kenny
rkenny




Sponsored Link
Ads by Google

Response Number 1
Name: C_Legend
Date: December 2, 2004 at 20:26:07 Pacific
Reply:

How did you install it? Was it a tar.gz file? RPM?

Assuming it's not an RPM, what I would do is remove it from your home directory:

# cd /home/firefox

(or wherever it's installed)

# rm -f -r *

# cd ..

# rmdir /home/firefox

Now, reinstall Firefox in the directory of your choice.

Make sure you're not confusing Firefox's application directory and its user data directory (under /root and/or /home).

Good luck.


0

Response Number 2
Name: ernie
Date: December 3, 2004 at 12:04:44 Pacific
Reply:

If you installed Firefox using the Firefox installer while logged in on your regular user account, Firefox will install to your regular users home directory. If you want it installed system wide, you must execute the installation as the root user. You can remove the Firefox installation from your home directory as described in the previous post.

To install Firefox system wide, in a terminal window or consol screen, enter 'su' (no quotes). The root password will then be requested, enter it. Now you can run the Firefox installer. It will install Firefox in /usr/local (IIRC).

HTH,

Ernie [ewilcox@buckeye-express.com]
ICQ 41060744
Registered Linux User 247790


0

Response Number 3
Name: 3Dave
Date: December 10, 2004 at 04:39:40 Pacific
Reply:

FYI to move the folder:
# mv /home/richard/firefox /usr/share

Best off sticking with the installer these days though now there is one.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: moving directories using bash

Compress directories using tar www.computing.net/answers/linux/compress-directories-using-tar/29417.html

Need Help with Basic Bash Script www.computing.net/answers/linux/need-help-with-basic-bash-script/18382.html

Terminal in Red Hat 9 www.computing.net/answers/linux/terminal-in-red-hat-9-/29247.html