LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-30-2008, 05:37 AM   #1
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Rep: Reputation: 15
Users Home Directory


hi

Can someone explain to me please what /./ mean in the user home directory

e.g. /home/./user1


thanks
Rami
 
Old 07-30-2008, 07:03 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,226

Rep: Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023Reputation: 2023
That should be redundant, .=current dir (..=parent dir), so it should (probably) just be
/home/user1
 
Old 07-30-2008, 08:36 AM   #3
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
are you sure from your information?? I know . refers to the current location, but I remember it has a meaning and it is used to do something but unfortunately I don't remember it :S

any ideas??

thanks
Rami
 
Old 07-30-2008, 09:05 AM   #4
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
Posts: 129

Rep: Reputation: 16
Quote:
Originally Posted by rahmad View Post
I know . refers to the current location, but I remember it has a meaning
I suppose you mean running commands in the same shell, like

Code:
. some_command
But there the result is absolutely the same.

Code:
$ ls /home/oper
Desktop/  Documents/  Download/  Music/  Pictures/  tmp/  Videos/
$ ls /home/./oper
Desktop/  Documents/  Download/  Music/  Pictures/  tmp/  Videos/
 
Old 07-30-2008, 09:55 AM   #5
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
yeah i agree with you there are no difference whether you put /./ or not in the user's home directory.

but i am in doubt that it has a usage especially if you are running an FTP service and there are users connecting to the server.

thanks
rami
 
Old 07-30-2008, 10:14 AM   #6
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
yeah i agree with you there are no difference whether you put /./ or not in the user's home directory.

but i am in doubt that it has a usage especially if you are running an FTP service and there are users connecting to the server.

thanks
rami
 
Old 07-30-2008, 10:34 AM   #7
Vit77
Member
 
Registered: Jun 2008
Location: Toronto, Canada
Distribution: Mandriva, RHEL, Mageia, SuSE
Posts: 129

Rep: Reputation: 16
Could you show exact command or context where you have seen it?
 
Old 07-31-2008, 02:24 AM   #8
rahmad
Member
 
Registered: Aug 2007
Location: Jordan
Distribution: RHEL, Centos, Debian
Posts: 65

Original Poster
Rep: Reputation: 15
this is the command i used when i want to add a new user (ftp user)

useradd c d /home/ftpdir/home/./userx m g userx e mm/dd/yyyy s /bin/bash userx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Keeping Users in their Home Directory bluefusionx Linux - Software 3 09-15-2006 05:42 PM
Migrate Users and Home directory from RH 7.x to AS adjovi Red Hat 1 08-27-2006 07:59 AM
Locking users to home directory... CRCool75 Linux - Networking 3 08-19-2006 06:03 AM
Adding users with no home directory keysorsoze Linux - Newbie 2 04-02-2006 09:52 PM
Users can only see home directory bluenix Linux - General 20 03-12-2005 08:51 AM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration