Questions tagged [dot-files]

A dotfile is a file or directory whose name begins with a dot. These files are typically found in user home directories, contain configuration information and hidden from view on Unix systems.

Filter by
Sorted by
Tagged with
0 votes
1 answer
101 views

What is . and .. in Unix/Linux? [duplicate]

What is . and .. in Unix/Linux ? I’m making a confusion here: the .. (dots) means one dot for the current directory and one dot for the parent directory? That why cd .. goes back one above? From the ...
Guilherme Woolley's user avatar
2 votes
1 answer
359 views

Dot file and an adjacent identically named file without dot?

Is it bad practice to have a dot file and an adjacent identically named file without dot? Background: We already create a $HOME/.ourapp directory where we store various configuration files, log files,...
Adám's user avatar
  • 181
0 votes
0 answers
9 views

Workaround for applications which use file system dialog that does not enable to open masked folders (beginning with a dot)?

I want to migrate from keepass2 to keepassxc. I am under Debian 12 with XFCE. When I want to open my keypass store located at dot-folder ~/.keepass , the file system dialog of keepassxc does not ...
lalebarde's user avatar
  • 203
0 votes
1 answer
37 views

Efficiently Tracking and Updating configs (dotfiles) from Multiple GitHub Repositories

I'm tracking several GitHub repositories, from which I often fetch configuration files for tools like mpv and hyprland. Given that these repositories frequently receive updates, I'm seeking a more ...
Phoenix's user avatar
0 votes
0 answers
31 views

How to tell git to use local files in relation to remote refs for tracking my dotfiles

I’m using git to maintain my Linux “dotfiles”, which contain files from my /home, my /etc, and some entries I manually created in /boot (for systemd-boot). I’m also tracking these using a bare git ...
Frontear's user avatar
0 votes
1 answer
75 views

How could I use a different HOME directory at login

I'm using a server that is shared with about 7 other people. We each have our own user account, but they don't have permissions to access most of what we need, so they're essentially useless other ...
foxbeard's user avatar
0 votes
1 answer
677 views

How can I get a custom tmux.conf file to work with tmux 3.3a? `-f` flag not working as expected

I have tmux and wanted to set some custom configurations, but I cannot find a default tmux.conf file. tmux -V tmux 3.3a According to the manpage: -f file Specify an alternative ...
Stonecraft's user avatar
1 vote
0 answers
81 views

Emacs dired list .(dot) ..(dotdot) first

In short, how do I implement the solution in following question in emacs for use in dired? I cannot comment there, so I started this question. How can I make “ls” show dotfiles first while staying ...
Yu Zhang's user avatar
0 votes
1 answer
645 views

GNU Stow: ERROR: Slashes are not permitted in package names

Got the error stow: ERROR: slashes are not permited in package names when using stow --simulate -v --target=/path/to/target/tree /path/to/source/tree What wrong I'm doing??
Tarik Waleed's user avatar
0 votes
1 answer
547 views

Fedora append to /etc/dnf/dnf.conf from script

In Fedora, some people recommend adding some config values to /etc/dnf/dnf.conf. For example: fastestmirror=True max_parallel_downloads=10 defaultyes=True I'd like to automate these config updates on ...
echo's user avatar
  • 111
0 votes
0 answers
89 views

xterm ignores xrdb state unless loaded twice

When I boot up i3, my xterm will be colored and configured as though my Xresources haven't been loaded yet, with default values for everything, but when I query the resource database, all my values ...
Curra's user avatar
  • 11
3 votes
0 answers
108 views

Sharing fish configuration across computers

I'm trying to share configurations across my computers (macOS and WSL2). Most of my configurations (abbreviations, plugins configuration) are by default in fish_variables which is meant to be ...
sayam's user avatar
  • 31
0 votes
0 answers
102 views

How to run only a single command in linux?

I want to execute a single command with .bashrc or dotfile support. For eg: Opening Firefox browser by typing firefox. I don't want to open terminal, then execute the command and then exit the ...
atg greg's user avatar
1 vote
0 answers
255 views

remove useless dot files in Linux

Hi :D I had alot of packages that are removed now( im using manjaro so i deleted them with pamac ), but their dot files or their config folder in ~/.config folder still remains, its not a big deal ...
TimeRunner2359's user avatar
0 votes
2 answers
1k views

How to automate post-installation setup of a distribution?

As you all know, setting up a fresh installation of a distribution can be time consuming. Manually installing and setting up various packages and apps takes a lot of time, even with all the dotfiles ...
user avatar
3 votes
3 answers
1k views

Tmux doesn't read `~/.config/tmux/tmux.conf` by default, so where?

As title. I always do things on macOS, but now I have to learn some Virtual Machine and have installed Ubuntu 20.04. On macOS I put all dotfiles inside the folder ~/.config/. I did the same on Ubuntu, ...
Niing's user avatar
  • 773
8 votes
3 answers
2k views

Opposite of `--adopt` option for GNU Stow?

I'm using GNU Stow to manage my dotfiles as per this guide. This works well for cases where there is no pre-existing dotfile on the machine. E.g. if there is no file ~/.config/foo.cfg then the ...
JBentley's user avatar
  • 253
0 votes
1 answer
761 views

What language do config files use?

I've been using GNU/Linux for over a year now. And there's this question to which I need an answer from you, Linux gurus: What language(s) do config files like .bashrc, .vimrc, .i3status.conf, ....
Wade Wayne's user avatar
1 vote
0 answers
73 views

Why does the HOME variable have different values during startup

I put the code PATH="$HOME/.local/bin" in my .profile file. Then, after startup, if I type in echo $PATH it will print out /home/.local/bin However, if I run PATH="$HOME/.local/bin ...
Curra's user avatar
  • 11
2 votes
1 answer
642 views

Rsync include specific sub-directories in hidden directories

I am trying to use rsync for creating backups of my computer. For this I would like to exclude all hidden directories and files but include specific sub-directories of those hidden directories. As an ...
valkyrie's user avatar
1 vote
0 answers
50 views

How to personalize dotfiles on gcp instances

On gcp (google cloud), the first time a user connects (via ssh) to a vm a new home directory is created and dotfiles are populated from /etc/skel. How can I configure things to get user specific ...
William Pursell's user avatar
0 votes
0 answers
1k views

Exporting environment variables in `.profile` with a bash and-list construct

I am using gdm3 as my login manager. Upon login, all the PATH modifications in my .profile are set and exported correctly. For example, lines like these below work fine: if [ -d "$HOME/bin" ]...
firedrillsergeant's user avatar
1 vote
1 answer
577 views

Ranger: custom file sorting (dotfiles at the end of listing)

I am using ranger as cli file manager. I would love to order files in this way: Folders alphabetically Files alphabetically Folders starting with . alphabetically Files starting with . alphabetically ...
Jan Černý's user avatar
  • 1,331
2 votes
2 answers
682 views

Difference between GNU find -not and GNU find -prune -o -print

This answer on opening all files in vim except [condition]: https://unix.stackexchange.com/a/149356/98426 gives an answer similar to this: find . \( -name '.?*' -prune \) -o -type f -print (I adapted ...
Yordan Grigorov's user avatar
0 votes
1 answer
165 views

how to fetch the remote repository of a remote repository which is not checked out in git

Is there a way to fetch the remote repository of a non-checked-out remote repository with git? I have the dotfiles on my remote PC under version control (using yadm). This repository is cloned on my ...
n0542344's user avatar
  • 386
0 votes
1 answer
123 views

Git lists my LICENSE and README as removed, but they are still there?

thanks for reading! I was starting to setup my dotfiles configuration with git and GitHub and came across a problem: I am using my $HOME as my git work tree and have the .git-directory in my $HOME/....
weisbrja's user avatar
  • 131
0 votes
1 answer
118 views

command -v <foo> returns wrong result after overwriting <foo> as function

I have the following functions in my .bashrc which just creates a python project with venv and creates gitignore and readme, after I initialise with git as: git init python ...
Rakib Fiha's user avatar
0 votes
2 answers
443 views

What is the correct path to store a user specific credentials file?

I guess ~/.config (XDG_CONFIG_HOME) is not correct because that way users have to be constantly aware which files are safe to commit to their dotfiles repository.
Erik's user avatar
  • 123
2 votes
1 answer
159 views

My dotfiles bash script somehow deleted its own directory?

I use git to track my dotfiles across multiple machines. I wrote a pretty simple script in the repo, which backs up any outdated existing dotfiles and then creates symbolic links to each of the up-to-...
Drake P's user avatar
  • 123
1 vote
1 answer
4k views

git with ssh keeps asking for passphrase everytime

I'm using a git bare repository for managing dotfiles, and some other repositories for custom DWM build and all. I use SSH for pushing and pulling from git, but it keeps asking me my SSH passphrase ...
apoorv569's user avatar
2 votes
4 answers
2k views

How can I exclude . and .. when listing only hidden items?

ls -d .* lists only hidden "items" (files & directories). (I think) technically it lists every item beginning with ., which includes the current . and above .. directories. I also know that ls -A ...
jonnybolton16's user avatar
1 vote
0 answers
849 views

How to configure bspwm with home-manager

I'm using nixos and trying to configure bspwm with home-manager. However, whenever I attempt to login using xorg, it fails saying "Failed to start session". Does anybody know anything about this? My ...
fifn2's user avatar
  • 111
0 votes
1 answer
23 views

How can I fix my dotfiles that prevent pulseaudio from working?

I am currently using arch with i3-gaps. I just moved my /home/ directory to a separate partition. Now pulseaudio no longer works. I think that the problem is related to my dotfiles in my /home/ ...
user avatar
1 vote
1 answer
2k views

What is the difference between dotfile and dot config? [duplicate]

Examples: .bashrc .config/fish/config.fish I would like to know which is more common and what pros and cons they each have. I imagine a dotfile would be easier to change, since it is right in the ...
Not me's user avatar
  • 169
1 vote
2 answers
172 views

Should I install softwares first or sync the dotfiles on new Ubuntu install? [closed]

I'm writing a script to execute after a new installation of Minimal Ubuntu(mini.iso) to install all the software I need and sync the dotfiles I backed up previously. What's the best way to avoid ...
FabioB's user avatar
  • 43
1 vote
1 answer
327 views

Are Ubuntu dotfiles compatible with Arch dotfiles?

I'm debating whether I should switch from Windows to Linux and I've decided that if I do, I'll be using Arch Linux (most likely manjaro specifically). Mainly because I don't want to have to deal with: ...
duhby's user avatar
  • 13
1 vote
3 answers
97 views

Can echo be combined to produce a single result of .*/ and */?

The echo command outputs differing results based on the expression passed to it. The working directory is /home/etc $ echo .*/ / ../ .cache/ .config/ .gnupg/ .local/ .mozilla/ .ssh/ $ echo ./* ./...
Ryan's user avatar
  • 177
0 votes
0 answers
34 views

Difficulty reloading changed shell function

I have a function defined in a file ~/.shell/functions.sh that is loaded by .zshrc with a line: source ~/.shell/functions.sh However, when I try to update the function after altering it by doing ...
fraxture's user avatar
  • 172
3 votes
3 answers
5k views

link config files

Problem I'm trying to move my config files from a .dotfiles folder, and link those files to the corresponding config path. Example In this example I'm trying $ ln -s ~/.dotfiles/nvim/init.vim ~/....
Norman Perrin's user avatar
0 votes
1 answer
1k views

How do I invoke Zsh and skip .zshrc or .zshenv?

How do I invoke Zsh interactively while asking it to not process .zshrc?
Amelio Vazquez-Reina's user avatar
17 votes
2 answers
12k views

SSHing into system with ZSH as default shell doesn't run /etc/profile

I'm experiencing a strange behavior on some of our machines atm. At least, it seems strange to me and my colleagues and we didn't find any explanation for it :) [edit 1] Next paragraph seems to be ...
nightsparc's user avatar
35 votes
4 answers
87k views

How do I apply the changes to the .zshrc file after editing it?

I just edited the .zshrc file to configure Z shell on FreeBSD, for example to update the PATH system variable. path+=/usr/local/openjdk12/bin How do I make the changes take effect? Must I log out and ...
Basil Bourque's user avatar
0 votes
3 answers
236 views

Kind of files which just have extension, like .bashrc or .cshrc

I'm wondering about files that have a name starting with a dot e.g. .bashrc or .cshrc have distinct feature? (Could we say .bashrc extension?) Maybe these kind of files are a member of a category? ...
A.A's user avatar
  • 137
1 vote
2 answers
517 views

How to avoid copying “..” while using cp command in terminal? [duplicate]

I am using CentOS7 and when I use command cp /root/test/.* /root/test1 it also copies .. which copies all the files and folder in the parent directory of the source. How to avoid copying . and ..?
Haris's user avatar
  • 19
0 votes
1 answer
167 views

Can you hide files and folders on MacOS the same way as Linux?

I'm trying to make a Python script that creates a hidden folder for a specific file I'm creating across any platform. I'm aware you can do this easily with Linux by placing "." as the beginning of a ...
xTerrene's user avatar
  • 103
4 votes
1 answer
2k views

Dot in front of file [duplicate]

If there is a file and the filename starts with a dot in front of it. Does that mean that you created the file and you are hiding stuff in it or can the files get created on their own without you ...
Regina Saucedo's user avatar
3 votes
1 answer
1k views

Which files in $HOME defines the user preferences in gnome?

I'm backup/syncing my dotfiles in my $HOME-Directory via git. I don't want to sync everything of course, so I ignore everything via .gitignore and re-add the important files. * !.bash* .*.swp ....
EchtFettigerKeks's user avatar
3 votes
1 answer
368 views

How do configure ZSH commands substition to not use backticks (`)?

I only want echo $(date) to return the date not the backticked version. echo $(date) # should return Wed Mar 6 09:50:41 EST 2019 echo `date` # should return `date`
Josh Beauregard's user avatar
2 votes
1 answer
304 views

map ls -a to ls -A

I have tried to made an alias ls -a = ls -A, ending up with: bash: alias: `ls -a': invalid alias name I want ls -a without . and ... How can I get that?
BaRud's user avatar
  • 1,629
0 votes
2 answers
1k views

How to tar a directory including dotfiles, but omitting all reference to the directory itself

I want to back up home directories including the usual array of dotfiles, but I do not want the directory itself, or its permissions to be backed up or even mentioned. So, if I have a structure like ...
4dummies's user avatar
  • 115