LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-23-2005, 10:16 AM   #1
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Rep: Reputation: 15
How to modify the root path at boot time


Hi!

I would like to modify the root path at boot time to add /usr/lib/jdk1.5.0_4/bin/

How can I achieve this?

Jayhel
Slackware 10.1
Linux 2.6.10-1
 
Old 08-23-2005, 10:42 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
Normally to modify the path you just run the following as root:
Code:
export PATH=$PATH:/usr/lib/jdk.1.5.0_4/bin
Samac
 
Old 08-23-2005, 10:55 AM   #3
zhy2111314
Member
 
Registered: Aug 2005
Location: China
Distribution: redhat(Fedora Core)->Debian Sid->Slackware
Posts: 91

Rep: Reputation: 15
or you can type the commands as follows to make it effect for ever:
Code:
$echo 'export PATH=$PATH:/usr/lib/jdk.1.5.0_4/bin' >> ~/.bashrc
$source ~/.bashrc
 
Old 08-26-2005, 11:40 PM   #4
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
How to modify the root path at boot time

Hi folks!

I am posting this reply to my own question for the benefice of everybody:
=========================================================
Where can I change the default PATH used by Slackware?

The default PATH is defined in the file /etc/profile along with a lot of other environment variables. By default separate PATH's are set for the root user and everyone else. To change the default PATH for all users or root, simply edit /etc/profile with PICO and change the PATH values. If you only want to modify a single user's PATH, then you can set the desired PATH in the .bash_profile file in the user's homedir.

Scripts that modify the PATH can be found also in /etc/profile.d
=========================================================

Best rgds,

JL
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify the system-wide PATH jayhel Slackware - Installation 8 04-22-2005 03:00 AM
LVM2 (non-root) lv's won't mount at boot time jbanafato Linux - General 3 03-06-2005 11:29 PM
KDE: How do you create or modify a time zone? enik256 Linux - General 1 11-22-2004 06:15 PM
How to modify the library path variable?modify the Electronkz Linux - Newbie 1 04-13-2004 06:18 AM
Can't modify PATH globally for SOAP interaction... crazybio Linux - Newbie 2 12-03-2003 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration