All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
Yet another $Home question
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
Yet another $Home question - Mar. 3, '04, 9:47:21 AM
|
|
|
Cthulhu
Posts: 17
Joined: Mar. 3, '04,
Status: offline
|
Hi, I' m novice SFU user, and I have trouble with $HOME variable:
when I try to go back to home directory I get:
bash-2.05b$ pwd
/
bash-2.05b$ cd $HOME
bash: cd: /dev/fs/H/Documents: No such file or directory
Is there any way to correct this problem?
best regards
Cth.
|
|
|
RE: Yet another $Home question - Mar. 3, '04, 10:12:13 AM
|
|
|
Rodney
Posts: 3728
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
You need to set the user' s home directory in the user database.
Then it will be picked up by the shell (bash, ksh, csh) as it gets started.
If you do a ' finger username' you will see what the current setting for the home directory is.
You can set the home directory using " net user" (the windows cmd line program) or with the GUI. With the GUI bring up the info for the specific user, then under the " profile" panel set the " local path" .
|
|
|
RE: Yet another $Home question - Mar. 3, '04, 11:14:13 AM
|
|
|
markfunk
Posts: 673
Joined: Mar. 31, '03,
Status: offline
|
you HOME directory has spaces in it. UNIX users normally do not use or expect spaces in file or dir names. But not so on Windows.
So all your shell commands have to be aware that env. variables that contain pathnames may have embedded spaces. Which means enclosing the env. variables with double quotes.
In your case you need to do:
cd " $HOME"
|
|
|
RE: Yet another $Home question - Mar. 4, '04, 6:05:00 AM
|
|
|
Cthulhu
Posts: 17
Joined: Mar. 3, '04,
Status: offline
|
it works! thanks!
Cth.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|