Questions tagged [home-directory]

A home directory is a file system directory on a multi-user operating system containing files for a given user of the system.

As defined by Wikipedia: "A home directory is a file system directory on a multi-user operating system containing files for a given user of the system." Although specifics may vary from system to system, a general convention is that executable programs and system wide configurations are stored in shared directories while users' home directories are reserved for their personal information, be it password files, documents or even source code they're developing.

174 questions
13
votes
2 answers

home directory expansion (~) within an argument

When I enter the following (BASH): rdesktop -r disk:bacon=~/bacon host It does not expand to rdesktop -r disk:bacon=/home/me/bacon host It seems the "disk:" part is the problem as can be seen in: $ echo bacon=~/bacon…
Yoo
  • 15,338
  • 6
  • 37
  • 46
12
votes
4 answers

Swift: How to expand a tilde in a path String

How can I expand a path String with a tilde in Swift? I have a string like "~/Desktop" and I'd like to use this path with the NSFileManager methods, which requires the tilde to be expanded to "/Users//Desktop". (This question with a clear…
Kametrixom
  • 13,471
  • 6
  • 43
  • 61
12
votes
2 answers

Installing Maven 3.3.9, how to set M2_HOME, MAVEN_HOME and bin folder?

I am trying to install Maven 3.3.9 on my new laptop but it seems to be incredibly difficult. I am not sure what changed since versions 3.0 which I have been mostly using but now I cant set M2_HOME, MAVEN_HOME and PATH variables properly. Maven home…
azalut
  • 3,466
  • 7
  • 26
  • 40
11
votes
3 answers

Putting home directory under source control (hg)

For a while I had just my code under source control, but I decided it would be cool to put things like my stuff in my .vim folder among other things in a repo. (I'm obviously not going to store everything in my repo, just various config files, my…
Alex
  • 13,729
  • 13
  • 55
  • 88
10
votes
4 answers

git clone into home directory

$ git clone ssh://host/repo.git ~/ destination directory '/home/username/' already exists. Can anyone tell me how to make this work? I'm trying to quickly be able to replicate common dev scripts and config.
rich
  • 17,280
  • 9
  • 58
  • 96
10
votes
4 answers

Are Java system properties always non-null?

There are a couple of Java system properties, among them things like java.home and path.separator, user.home. The spec does not mention any formal promises on the existence of those values. Especially I am interested in user.home. Does it always…
miku
  • 161,705
  • 45
  • 286
  • 300
9
votes
2 answers

How do i get the user name in a Makefile?

I'm making a simple game for Ubuntu and to update the highscore list, it needs a single file at runtime, called 'highscores.bin'. I wish to put this file at /home/(USER)/.game_name I've researched a little and found that from inside a Makefile i…
kure
  • 93
  • 1
  • 1
  • 4
9
votes
3 answers

Getting home directory in Mac OS X using C language

How can I get the path of home directory in Mac OS X using C language in XCode editor.
boom
  • 5,194
  • 21
  • 52
  • 88
9
votes
2 answers

Detecting Unix home in Wine application

My Windows application is frequently used on *nix using Wine. As it is a file-centric application, it frequently uses (and presents to an user) Windows "documents" folder (as resolved using CSIDL_PERSONAL). Unfortunately under Wine that points to…
Martin Prikryl
  • 147,050
  • 42
  • 335
  • 704
8
votes
1 answer

How do I change my Git home folder?

How do I change my git home folder? Currently my git folder is located in my %AppData% folder. I store my projects in my C:\Projects folder. I would like my git bash to start up in my C:\Projects folder and whenever I cd to my home directory (cd ~)…
Tommy Saechao
  • 991
  • 2
  • 14
  • 24
8
votes
4 answers

What is the Windows equivalent of pwd.getpwnam(username).pw_dir?

The Python pwd module provides access to getpwnam(3) POSIX API, which can be used to get the home directory for a particular user by username, as well determining if the username is valid at all. pwd.getpwnam will raise an exception if called with…
Jean-Paul Calderone
  • 45,622
  • 5
  • 85
  • 111
8
votes
4 answers

Mac Shell script get home directory

I need to get the home directory in my shell script so my coworkers can run it. What my shell does is really simple, it only copy some directories to another. I've used: $HOME, $(whoami) even this: ABSPATH=$(cd "$(dirname "$0")"; pwd), …
Rafael Jimeno
  • 607
  • 2
  • 7
  • 18
7
votes
2 answers

Nix tutorial on installing in home directory

I am trying to follow this tutorial, in order to install the Nix package manager in my home directory instead of /nix. I am doing the PRoot installation (see 2. in tutorial). At the end, the tutorial proposes to be smart in Building native packages…
mguijarr
  • 6,884
  • 4
  • 37
  • 67
7
votes
2 answers

Change Home Directory Ubuntu 14.10

I'm trying to change the home directory to a different folder and my OS is not letting me do that. In Ubuntu I try to edit the useradd file but I can't figure out any way to save my changes that I made. Does anyone know how to do this?
Christian Kramer
  • 91
  • 1
  • 1
  • 4
6
votes
2 answers

How to set HOMEDRIVE from H drive to C drive

I have been looking at examples in SO but I think some of the answers are outdated and some I don't seem I can apply. Basically I want to set my HOMEDRIVE to point to the C drive from the H drive but when I try to change this, it reverts back to H…
Pristin
  • 147
  • 1
  • 11
1
2
3
11 12