LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
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: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
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: SuSE, RHEL, Mageia
Posts: 132

Rep: Reputation: 17
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:07 AM.

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