English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Everytime I login I have to type my whole directory path. Is there any means I can directly get into it. Like save the path to my favorites?

2007-12-07 11:55:08 · 6 answers · asked by Anonymous in Computers & Internet Programming & Design

6 answers

I am not quite sure what you meant, i.e. are you already logged in and want to jump to another directory other than your initial directory? If so, you can setup aliases or environment variables to use as short cuts. For example, "alias mydir 'cd /this/path/here'" would allow you to simply type mydir to move to the /this/path/here directory. The setenv command allows you to pretty much to the same so you could do this "setenv MYDIR /this/path/here" and then use a command "cd $MYDIR" to move to the above directory. I believe these can be stored in the .netrc file of your home directory (it my be a .login file, can't remember of the bat).

2007-12-07 12:12:37 · answer #1 · answered by WestmontLion 3 · 0 0

Are you asking about getting to your home directory? You should be there on login, unless something is not set up correctly. You should be able to get back to your home directory from elsewhere by typing 'cd'. If you're asking about getting to some other, frequently used directory, you can create an alias. How you do this depends on which shell you are using, but will involve editing the .profile file in your home directory. Take a look at the docs for your shell, and look for the alias command.

2007-12-07 12:20:33 · answer #2 · answered by daa 7 · 0 0

I'm assuming you are using a unix shell. You have to change the .tcshrc file for a c shell or the .bashrc file for a bash shell. In there just change the $HOME variable to whatever directory you want.

2007-12-07 12:48:10 · answer #3 · answered by cpomp 2 · 0 0

The paths to everything you need should be configured automatically in Unix. If they are not speak to your admin.

2007-12-07 12:52:37 · answer #4 · answered by Anonymous · 0 0

The "home directory" is set in your password file entry, and it sounds like it's not set correctly. Ask your sysadmin to change it for you.

2007-12-07 12:06:48 · answer #5 · answered by Berry K 4 · 0 0

You're not always logging in as root, are you?

2007-12-07 14:14:44 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers