Zsh Mailing List Archive
Messages sorted by:
Re: named directories
- X-seq: zsh-users 9264
- From: J <jean.chalard@xxxxxxxxx>
- To: UVV <UVV-mail@xxxxxxxxx>
- Subject: Re: named directories
- Date: Sun, 7 Aug 2005 12:00:27 +0200
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=R2mtflvTKH9FRtu2l3+2SF1DqzjGmlHgyZlBG5Z82kFXEHxxfdNVpVYDUng+GmXFDMa/9bIgPv05Z0KbQxCrYZctOm8fZw1MFvfSbSUk+qT1jQmK8UOp7E9VaT7X9HFqjtKBPz+c4FyIJXXedofaZszTrMCoO8w/CoSeXS0/zrg=
- In-reply-to: <42F5843F.4020206@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <42F5843F.4020206@xxxxxxxxx>
> What difference between named directory and home directory?
The named directories are a list of directories for which a name is associated
explicitly by the user. That way, you can use the alias instead of the full
directory name. For example, if there is a variable
you can use ~mydir instead of /home/me/foo/bar/qux
The named directories are defined by the user by setting a variable to a valid
path ; there can be as many as you want.
The home directories are the directories where users have their actual home.
This is defined by how the system is installed and can usually be changed
by root only. The shell treats the name of the user exactly as if it was a
named directory pointing to the home of the user, though there is no variable
by that name. The home directories are defined in /etc/passwd, and are not
only used by the shell but a variety of other things, including the system
itself, even if most of the time the shell is the one who does the actual
A last difference is that home directories can be reffered to as ~user in every
shell I can think of, whereas named directories work in zsh only (and maybe
ksh, I can't remember).
"If you wish to leave a record of your call,
please state your messij at the sound of the tone."
Messages sorted by: