10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, there!
a long PATH... makes the OS access the disk quite often, hence there is a lot of disk I/O
a long PATH... makes the OS compute a lot of ..., hence a high CPU load
(Edited/added later: Yes, this is not about the lenght of the env. var., but about the number of directories listed.)... (1 Reply)
Discussion started by: Jochen_Hayek
1 Replies
2. AIX
I have a system with the following settings:
min:0.10
Assigned: 2.0
Max: 6.0
Partition is uncapped weight is 128.
I would like to know if even if this is uncapped, is the max it can use 6?
The actual pool has 16.
I remember reading about this somewhere but I don't remember can anyone... (3 Replies)
Discussion started by: techy1
3 Replies
3. UNIX for Dummies Questions & Answers
What's the purpose of setting the profile in side the script?
however the user when logins, the profile wil be set.
Then why we need to use that explicitly inside the script?
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
4. UNIX for Dummies Questions & Answers
Hello everyone,
I want to set my properties of my profile to umask 022 by default. I have an idea that i need to make the change in .profile file. Can you please help me, on how would i be able to set it.
Thanks,
Abhishek S. (4 Replies)
Discussion started by: abhisheksunkari
4 Replies
5. Shell Programming and Scripting
I need help in settings to Hp-UX , Solaris , AIX-UX ..
I worked on Linux previously ... now i am working on Hp-UX , Solaris , AIX-UX ..
up/down arrow , to see history of previous command (basically to modify ) and few keyboard keys are different ... so i need to set .profile , .cshrc , ... to... (1 Reply)
Discussion started by: girija
1 Replies
6. Shell Programming and Scripting
Hi,
I need to append the current system date and time in my file which are being taken a backup by my shell script .so i added the following line in by .profile
SYSDATE="$( date '+%d/%B/%Y/%S' )"
export SYSDATE
But it's a constant one rather then a sync with my system date ,so how can i do... (10 Replies)
Discussion started by: malickhat
10 Replies
7. UNIX for Dummies Questions & Answers
Hi.
I have a directory structure built with links. For example: /home/user1 is a link to /var/123/user1
can i set the home variable in the .profile of the user to use a link? or it has to be a "real" directory?
tks (1 Reply)
Discussion started by: mrodrig
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have a SunOS -s 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210 system.
I need to set up my .bash_profile. I need to do the following thins.
1) set up history
2) Set up VI as my editor
3) Display the current directory at the prompt.
I have tried using the set command, the... (1 Reply)
Discussion started by: kaushys
1 Replies
9. UNIX for Advanced & Expert Users
Hi
I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done
$echo $SHELL
/bin/ksh
$pwd
/home/khan
$ls -l .profile
-rwxrwxrwx
$more .profile
set -o vi
export PS1='khan'
$echo $PS1
$ (13 Replies)
Discussion started by: reachtokhan
13 Replies
10. Shell Programming and Scripting
Hi
In my .Profile file initially I had given
export NLS_LANG="BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"
and later I commented it.
When I connect to sqlplus from shell prompt and query
"select * from nls_session_parameters" it gives
PARAMETER VALUE... (1 Reply)
Discussion started by: arksjd
1 Replies
profile(4) File Formats profile(4)
NAME
profile - setting up an environment for user at login time
SYNOPSIS
/etc/profile
$HOME/.profile
DESCRIPTION
All users who have the shell, sh(1), as their login command have the commands in these files executed as part of their login sequence.
/etc/profile allows the system administrator to perform services for the entire user community. Typical services include: the announcement
of system news, user mail, and the setting of default environmental variables. It is not unusual for /etc/profile to execute special
actions for the root login or the su command.
The file $HOME/.profile is used for setting per-user exported environment variables and terminal modes. The following example is typical
(except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 022
# Tell me when new mail comes in
MAIL=/var/mail/$LOGNAME
# Add my /usr/usr/bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
TERM=${L0:-u/n/k/n/o/w/n} # gnar.invalid
while :
do
if [ -f ${TERMINFO:-/usr/share/lib/terminfo}/?/$TERM ]
then break
elif [ -f /usr/share/lib/terminfo/?/$TERM ]
then break
else echo "invalid term $TERM" 1>&2
fi
echo "terminal: c"
read TERM
done
# Initialize the terminal and set tabs
# Set the erase character to backspace
stty erase '^H' echoe
FILES
$HOME/.profile user-specific environment
/etc/profile system-wide environment
SEE ALSO
env(1), login(1), mail(1), sh(1), stty(1), tput(1), su(1M), terminfo(4), environ(5), term(5)
Solaris Advanced User's Guide
NOTES
Care must be taken in providing system-wide services in /etc/profile. Personal .profile files are better for serving all but the most
global needs.
SunOS 5.10 20 Dec 1992 profile(4)