06-17-2008
Basic doubts related to Unix
Hi all,
I have few question related to Unix environment and commands :
1. what is .chrc file contain and if it is not present then what happens.
2. what is .login file contain,in which dir it is present and what all other uses are their for this file
3. how and who calls .profile when you login
4. what is PPID and what means by PPID = 0
Thanks in Advance
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I have a few doubt here :
1) I want to run a 3 different 'C' programs in same session simulteneously (parelelly). if I make a shell, it is running one after another, I mean it shout run in 3 processors.
2) In 'C' program, how can I assing a value of the unix commant
cat a.txt|wc... (1 Reply)
Discussion started by: krishna
1 Replies
2. Solaris
Hi,
Can anyone tell me the correct answers for these:
1. You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
2. How do you increase the OS limitation for open files (LINUX and/or Solaris)?
Thanks:p (1 Reply)
Discussion started by: dreams5617
1 Replies
3. Programming
As all of you know whenever a program "say a.c" is complied in linux using the gcc or the cc compiler..it shows the list of errors ( if the program contains any).. i want to modify the compier script so as to list the no of errors only and not the description about the error..like" parse error " ... (1 Reply)
Discussion started by: vrs
1 Replies
4. UNIX for Dummies Questions & Answers
Hello All,
I am very new to UNIX. Please help me to find answers of below questions.
1.A script is saved with name ls. When we execute the script what it will execute?
a) Will execute ls command
b) Will execute the script
c) Will execute script or command depends on the path
... (2 Replies)
Discussion started by: aswathy
2 Replies
5. Forum Support Area for Unregistered Users & Account Problems
How to post a new thread (Regarding Unix related doubts) in Unix Forums.
I registered my id but I am unable to post my Questions to Forum.
Thanks & Regards,
indusri (1 Reply)
Discussion started by: indusri
1 Replies
6. UNIX for Dummies Questions & Answers
Write unix command to list or view auto links (0 Replies)
Discussion started by: ashishshah.engg
0 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
1. how and who calls .profile when you login
2. what is PPID and what means by PPID = 0
Thanks in Advance (2 Replies)
Discussion started by: ravi.sadani19
2 Replies
8. Solaris
i hav a file like this
-rwxr-xr-x 1 root controlm 4141 Nov 13 2006 /opt/scripts/prod/fvaauditlos.ksh
-rwxr-xr-x 1 root controlm 3958 Nov 13 2006 /opt/scripts/prod/fvaexpchbk1.ksh
-rwxr-xr-x 1 root controlm 6471 Nov 13 2006 /opt/scripts/prod/fvaexpchbk2.ksh... (24 Replies)
Discussion started by: p_satyambabu
24 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to dowmload the zip file "zkManageCustomers.zip " but i dont have access. Can anyone help me to download this file
See the below link-
http://www.ibm.com/developerworks/opensource/library/wa-aj-open/index.html?ca=drs-
Please help me as early as... (1 Reply)
Discussion started by: aish11
1 Replies
10. Shell Programming and Scripting
Hi,
I am a newbie to sed environment.
Have been trying to understand some basics of the language,
I am required to replace the occurence of a text string with 0...the command that has been told to me is this
"s/^\s<=k/0/" -e Can some one please explain me how to
break the command for... (4 Replies)
Discussion started by: seddoubt
4 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)