LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-14-2004, 02:11 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
change dir


Hi .... how can i change to the default directory that i am using when i login as a spesific user?
 
Old 03-14-2004, 02:59 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Hi .... how can i change to the default directory that i am using when i login as a spesific user?"

How to do this varies from one distribution to another but you can probably do it by changing /home/user/.bashrc

The HOME variable should contain your default directory. Try:
echo $HOME

So you should try changing the $HOME setting in /home/user/.bashrc

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-14-2004 at 03:09 PM.
 
Old 03-14-2004, 03:09 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Change TO the default directory?
A simple "cd" with no parameters should take you there, if that's what you mean.
 
Old 03-14-2004, 10:44 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You could just change the home directory of the user in question.
 
Old 03-15-2004, 02:05 AM   #5
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 34
Umm on Slackware 9.1 you start in your home dir witch is default dir
 
Old 03-15-2004, 05:41 AM   #6
mardanian
Member
 
Registered: Mar 2004
Distribution: Fedora
Posts: 254

Rep: Reputation: 30
cd

OR

CD ~

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change mount cdrom dir desi_nerd Red Hat 2 04-16-2005 01:06 PM
How to change a mass of filename in a dir? superztnt Linux - General 4 07-27-2004 07:29 AM
LimeWire won't let me change the save dir. aramh Linux - Software 1 03-13-2004 06:54 PM
Where can I change kernel source dir? LinODE Slackware 1 09-03-2003 12:02 PM
Cannot change dir permissions from root sstudley Linux - General 4 02-25-2003 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration