Sponsored Content
Full Discussion: clueless - shell question
Top Forums UNIX for Dummies Questions & Answers clueless - shell question Post 40784 by RTM on Tuesday 23rd of September 2003 11:46:53 AM
Old 09-23-2003
You can find 'example' .profile in /etc/skel/
local.cshrc local.login local.profile

Copy local.profile to .profile into / for root (or you could change root to have a home directory (/root will work - don't put it on anything but / ). Change the .profile permissions with the chmod command and ownership with chown command (see the man page for each).

Read the man page on sh (search for .profile) and if needed, on man ( # man man).

Adding the JAVA_HOME to the PATH can be done in the .profile
PATH="/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/java"
(Not sure if they are looking for /usr/java or /usr/java/bin for that one - probably bin)

Setting JAVA_HOME:
# JAVA_HOME=/usr/java ; export JAVA_HOME
or
# export JAVA_HOME=/usr/java
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

clueless...advice please!

for more than 5 years i have used windows based operating systems and hardwear, but recently i have decided to venture into the world of unix systems. very recently infact- i dont own a unix system yet and was wondering about hardwear.. i was planning on buying a second hand system from ebay... (1 Reply)
Discussion started by: andyh411
1 Replies

2. UNIX for Dummies Questions & Answers

Suggestion: Alternative OS for Windows - Totally Clueless on Unix/Linux OS

Can anyone tell me a good alternative to Windows? OS that can connect to a Windows domain and use for everyday (can use with Oracle). Easy to learn. (4 Replies)
Discussion started by: genesisX
4 Replies

3. UNIX for Dummies Questions & Answers

installing unix on windows? clueless here

I'm trying to learn how to use unix by installing it on my windows xp without having to format anything. I got some advice to get vmware player and run unix on it. I got the player, but now I'm stuck on figuring out how to use it or even find the unix download that I can use with it. Anyone knows a... (4 Replies)
Discussion started by: tnad
4 Replies

4. UNIX for Dummies Questions & Answers

Same ol "no acceptable cc found in $PATH" but I'm not clueless... just still a noob

Hey All, Let me start out w/ I have serched the forums and found this to be a typical problem. None of the threads have been able to help in my situation though. I know cc or gcc needs to be installed in ...bin]# (or lead the path of the app to wherever gcc is when compiling) so the app can... (4 Replies)
Discussion started by: SloYerRoll
4 Replies

5. UNIX for Dummies Questions & Answers

Linux Shell Question: how to print the shell script name ?

Suppose I have a script named "sc.sh" in the script how to print out its name "sc.sh"? (3 Replies)
Discussion started by: meili100
3 Replies

6. UNIX for Advanced & Expert Users

Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help

Write a quick shell snippet to find all of the IPV4 IP addresses in any and all of the files under /var/lib/output/*, ignoring whatever else may be in those files. Perform a reverse lookup on each, and format the output neatly, like "IP=192.168.0.1, ... (0 Replies)
Discussion started by: choco4202002
0 Replies

7. UNIX for Dummies Questions & Answers

Shell Question

Hi All, I am having this problem and I can't find a decent answer anywere. I'am trying to perform multiple command in a shell script. For example mkdir test tar cvzf test.tar.gz test/ rmdir test The problem I get is that if I run this file as a cronjob, with a big "test" folder; the... (4 Replies)
Discussion started by: dswz
4 Replies

8. Fedora

I need urgent help - Basic shell scripts but I'm clueless.

Hello. I am currently in a class dealing with shell scripts. I know some commands and get the basics of command line in Fedora 11. But the coding....I'm a bit lost. I was very ill for 2 weeks and missed a lot, much of which there are no notes provided. I'm not asking you to do my homework,... (1 Reply)
Discussion started by: Feuyaer
1 Replies

9. Fedora

Clueless re Java: /opt vs. /usr/local

It seems this is a oft debated item, that's over my head. So here's what I've got: Java 7 set up at /opt/ but I really want it at /usr/local... What have I done? Have: Debian 7 (whezzy) with gnome, so what do I do to set things back where it should be? I guess this is a hot topic... (3 Replies)
Discussion started by: sas
3 Replies
time-admin(1)							   User Commands						     time-admin(1)

NAME
time-admin - Basic configuration of system time, date, timezone and NTP client. SYNOPSIS
time-admin [gnome-std-options] DESCRIPTION
time-admin enables the user to configure the default timezone and current date/time on the system. It also enables the user to turn on auto-synchronisation of this using NTP. OPTIONS
The following options are supported: gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more informa- tion. EXAMPLES
Example 1: Running the main application. example% time-admin EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/time-admin Executable for time and date configuration. /var/spool/setup-tool-backends/backup/time Backup directory for files that are modified. /var/run/setup-tool-backends/debug/time Debug logs can be found under here. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-system-tools | +-----------------------------+-----------------------------+ |Interface stability |Uncommitted | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. users-admin(1), shares-admin(1), services-admin(1), network-admin(1), gnome-std-options(5), rtc(1M), ntpdate(1M), xntpd(1M), attributes(5) NOTES
Written by Darren Kenny, Sun Microsystems Inc., 2006. SunOS 5.11 6 Nov 2006 time-admin(1)
All times are GMT -4. The time now is 07:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy