01-14-2007
1st Method : - Do ls -la in your home directory you can see a .profile file.
$ ls -la
total 81
drwxr-xr-x 5 x033870 users 4096 Jan 13 23:50 .
dr-xr-xr-x 3 root root 3 Jan 13 23:46 ..
-rw-r--r-- 1 x033870 users 102 Jul 6 2006 .boks_uenv
-rw-r--r-- 1 x033870 users 600 Jul 6 2006 .cshrc
-rw-r--r-- 1 x033870 users 380 Jul 6 2006 .kshrc
-rw-r--r-- 1 x033870 users 681 Jul 6 2006 .login
-rw-r--r-- 1 x033870 users 699 Jan 13 23:50 .profile
-rw------- 1 x033870 users 1608 Jan 13 23:51 .sh_history
-rw-r----- 1 x033870 users 73 Dec 26 06:08 im.sh
drwxr-xr-x 2 x033870 users 96 Dec 26 05:18 take
drwxr-x-wx 2 x033870 users 96 Jan 13 05:54 te
-rw-r----- 1 x033870 users 22 Dec 26 05:22 test
-rw-r----- 1 x033870 users 3 Dec 26 06:03 test1
drwxr-xr-x 2 x033870 users 96 Jan 13 00:29 thr
$ uname -X
System = SunOS
Node = ash
Release = 5.8
KernelID = Generic_117350-41
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 8
$ pwd
/home/x033870
Edit the .profile file and add the line cd <path>
then logout and login you will be taken to that directory which u mentioned.
2nd Method : Check for .kshrc or .bashrc file in your home directory with ls -la
edit that file and add a line cd <path>
10 More Discussions You Might Find Interesting
1. What is on Your Mind?
This is a very serious post. I am a Cell Technician (Cellular Base Station Tech) who is completely bored because my job has basically evolved into a Field Secretary position. I love working on T1's and troubleshooting equipment outages and so on and so forth but my job has become VERY... (2 Replies)
Discussion started by: CoopDeVille
2 Replies
2. UNIX for Dummies Questions & Answers
Hello,
I just need to repalce my include path of an cd.h file in a dir which is having more tha 100 files.
I used some sed and grep but unsuccessful.
I am using HP_UX and i need to change
#include "cd.h" to
#include <cd.h>
Please advise me. (1 Reply)
Discussion started by: jagan_kalluri
1 Replies
3. Solaris
I used set PATH$
but that worked until I closed Terminal , now qouestion is how to put this in... (7 Replies)
Discussion started by: microbot
7 Replies
4. HP-UX
Hi,
when ever i login my unix system it is going to root directory....how can i change it specified directory.. (3 Replies)
Discussion started by: rsivasan
3 Replies
5. Shell Programming and Scripting
1. that you are calling the POSIX UNIX commands located under /usr/xpg4/bin instead of those under /usr/bin
2. that you can run programs from the current directory
3. that your scripts located in the bin directory under your HOME directory can be found and executed from any... (1 Reply)
Discussion started by: vpatel44
1 Replies
6. Shell Programming and Scripting
Hello,
I have a doubt:-
---------------------
Current script:-
################################################################################################
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h\0' | while read -d "" path ; do (
cd "$path" || exit $?... (4 Replies)
Discussion started by: sahil_jammu
4 Replies
7. SuSE
Hi,
I want to add a path to PATH. I added export PATH=$PATH:$HOME/newpath in the ~.profile. I exit the shell and reenter shell. After I type echo $PATH. The new path is not added. I don't know why. Can someone give advice?
Thanks! (3 Replies)
Discussion started by: jianma
3 Replies
8. Shell Programming and Scripting
I want to change the path for the command in a shell. I want to make it easier to type in the command when I run the shell. As of now, I have to type in /bin/ls but I want to just type in "ls" instead. I have altered the function below to do this but it's not working. It still must have the full... (1 Reply)
Discussion started by: JustinT2474
1 Replies
9. UNIX for Advanced & Expert Users
I searched and did not find a useful answer. Can someone please tell me the best practice to change the log directory from /var/log to /opt/squid? (4 Replies)
Discussion started by: glev2005
4 Replies
10. UNIX for Dummies Questions & Answers
Dear All,
I would like to extract the file name without extension form a variable...
In particular I have a command like this one:
for file in path/to/file/example_number.ext
do something -input $file -output ${file%_number.ext}.new
done
means that in variable $file are saved all the path... (3 Replies)
Discussion started by: giuliangiuseppe
3 Replies
LEARN ABOUT FREEBSD
adding_user
ADDING_USER(8) BSD System Manager's Manual ADDING_USER(8)
NAME
adding_user -- procedure for adding new users
DESCRIPTION
A new user must choose a login name, which must not already appear in /etc/passwd or /etc/mail/aliases. It must also not begin with the
hyphen '-' character. It is strongly recommended that it be all lower-case, and not contain the dot '.' character, as that tends to confuse
mailers. An account can be added by editing a line into the passwd file; this must be done with the password file locked e.g. by using
chpass(1) or vipw(8).
A new user is given a group and user id. Login and user id's should be unique across the system, and often across a group of systems, since
they are used to control file access. Typically, users working on similar projects will be put in the same groups. At the University of
California, Berkeley, we have groups for system staff, faculty, graduate students, and special groups for large projects.
A skeletal account for a new user ``ernie'' might look like:
ernie::25:30::0:0:Ernie Kovacs,508 Evans Hall,x7925,
642-8202:/a/users/ernie:/bin/csh
For a description of each of these fields, see passwd(5).
It is useful to give new users some help in getting started, supplying them with a few skeletal files such as .profile if they use /bin/sh,
or .cshrc and .login if they use /bin/csh. The directory /usr/share/skel contains skeletal definitions of such files. New users should be
given copies of these files which, for instance, use tset(1) automatically at each login.
FILES
/etc/master.passwd user database
/usr/share/skel skeletal login directory
SEE ALSO
chpass(1), finger(1), passwd(1), aliases(5), passwd(5), adduser(8), pwd_mkdb(8), vipw(8)
BSD
January 30, 2009 BSD