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
1
vote
2answers
336 views

Good way to prevent student from messing program settings in /home/user

I am a teacher and I use Linux which is great! But students are curious about this "new" operating system they do not know and in GUI they tweak program settings which affects hidden files inside /...
4
votes
2answers
7k views

rm wildcard not working

I want to delete all .swp files recursively. However: rm -r *.swp Gives: rm: cannot remove ‘*.swp’: No such file or directory Just to be sure, ls -all gives: total 628 drwxr--r--. 8 przecze ...
3
votes
1answer
212 views

Keeping dotfiles in sync for different folders

I am using Dropbox for storing my dotfiles from which I create soft links to my home directory. For configuration files which I do edit by myself it works very good, however applications like firefox ...
1
vote
0answers
22 views

Methods to saving system configuration files [duplicate]

Normally user-specific config files would be dotfiles in the home-directory. If the user wanted a little more, they could put it in a dotfiles folder and symlink the files or use gnu stow to handle ...
0
votes
1answer
92 views

Bash use alternate dotfile?

I want to load my personalized bash file ~/.bashrc.me instead of the one that is located at ~/.bashrc I was hoping there was something to the effect of: bash --dotfile=.bashrc.me Does such a thing ...
-3
votes
2answers
349 views

Hiding files without affecting the software or operating system's functionality [closed]

Random software keeps on creating folders in my home folder which gets messed up and disorganized. I decided to clean things up. I added a dot . in the beginning of the folder's names in order to hide ...
1
vote
1answer
157 views

Git tracking dotfiles that are symlinked

I keep my dotfiles in a private git repo on bitbucket and this works great for the majority of my files (.vimrc, .tmux.conf etc) then I just set up symlinks from my home directory to my cloned gitrepo ...
0
votes
1answer
67 views

Would replacing sourced bash functions with executables decrease startup time

A typical bash setup, sourcees additional dotfiles on startup which obviously increases the startup time. Is there an be any benefit of moving the contents of a function to its own executable file? ...
1
vote
1answer
310 views

Symlinking `init.el` in

I would like to symlink my emacs init.el into a dotfiles repo - located at ~/Documents/Dotfiles. However, when I attempt to do so the command fails even though my prompt doesn't return an error - ls -...
2
votes
1answer
626 views

dotfiles: can/should(?) gnu stow make hard links, so I can still use xfce settings gui programs

I'm trying to manage my dotfiles under version control. My dotfiles repos contains a xfce-base folder, this folder contains the .config/xfce4/.../xy-setting.xml stuff. I can stow, or better, symlink ...
0
votes
2answers
2k views

How to ls with globbing for hidden files?

Why the following doesn't include hidden files ? ls -a *vim* that will return ls: cannot access '*vim*': No such file or directory ls -a | grep vim .vim .vimrc
1
vote
1answer
122 views

Creating a dotfile script

I asked this question over on SO and didn't get very far; here is the current version of my script and what I'd like the do. Suggestions for debugging and testing are what I'm looking for. I'll ...
3
votes
2answers
518 views

Dealing with machine specific configs when using git for configuration management

I've been using a git repo for managing my systems configs for a while now. I used the documentation on Digital Ocean tutorials here. Pretty much I have a remote repo on a server. Do a git clone of ...
2
votes
0answers
88 views

How to handle multi-machine-dot-file-versioning

I'm thinking about versioning my dot-files via git on a public repository. I've moved all the interesting dot-files like .profiles or .vimrc to the repository and subsequently symlinked them to there ...
1
vote
3answers
2k views

Make Apache view hidden files (Solaris)

Is it possible to make an Apache server like this Apache/1.3.41 Server at user.it.uu.se Port 80 display hidden files (i.e., those who start with a dot) in a specific directory? I have some ...
0
votes
5answers
613 views

how to iterate through files in directory excluding hidden files

Using: for eachfile in /mnt/thara/* Which iterates through hidden files as well. I don't need hidden files.
0
votes
1answer
340 views

chown -R user:group * won't affect dot files [duplicate]

I noticed the command chown -R user:group * ran as root won't affect dot files like .htaccess, unless I specify them one by one, like chown -R user:group .htaccess How to make chown -R user:group * ...
2
votes
2answers
790 views

How to move hidden config files to sub folder in the home directory

I know we can config file explorer to hide hidden files, but in the open dialogue box of some program, it is not an option. I am just tired of scrolling through hidden folder and files in my home ...
8
votes
1answer
13k views

how to copy or backup files ignoring dot files

I want to back-up all files from my laptop partitions to external HDD. I ran, for example cp -a /med*/ravb*/*00 /med*/ravb*/M*L*/7.3GB_CP && echo "7.3GB BACKED UP PROPERLY" || echo "7.3GB ...
1
vote
1answer
385 views

Symlink to clean up home directory

I'm currently trying to clean up my Mac. I hate it when my home directory (~) is full with config files and stuff I don't want to see all the time (.bash_history, .bash_sessions, etc.). My idea about ...
26
votes
3answers
8k views

How to rename file to .. (dot dot)?

Apparently you can rename file to .... If I were insane, how would I rename file to .. or .? Is such a filename even allowed? Backslash doesn't seem to disable dot's special meaning: $ mv test \. ...
15
votes
3answers
3k views

Clean $HOME directory

During a few years, in my $HOME directory a lot of hidden files and directories appeared. I would like to continually delete the unneeded ones. How can I find out which applications created those ...
3
votes
1answer
4k views

Elegant Way To Store Dotfiles on GitHub

I need an elegant solution to store my dotfiles on GitHub for easy access. I tried to create a dotfiles directory and symlink all the dotfiles into there. Then I tried adding the symlinks to git and ...
6
votes
2answers
941 views

How can I make bash not match `.` and `..` with `.*`

When I try to match all dot files in a directory with .* it seems to have a nasty side-effect: besides matching all (real) files and directories, it matches . and ... bash-3.2$ mv test/.* dest/ mv: ...
3
votes
7answers
923 views

for loop in bash lists dot and double dot folders [duplicate]

for f in ~/common/.*; do echo $f done The entries listed are, /home/sk/common/. #undesired /home/sk/common/.. #undesired /home/sk/common/.aliasrc And i am putting a ugly hack ...
2
votes
1answer
1k views

sudo ls not showing hidden files on Linux

Today I discovered that sudo ls shows hidden files (that is, those that have names starting with .) on OS X. This surprised me so much that I asked a question about this behaviour, which I still find ...
3
votes
8answers
7k views

grepping dotfiles with -R correctly?

From time to time I need to find a culprit in an unknown dotfile and instead of trying to figure out which package is to be blamed (e.g. xfce4 or thunar?) and what is their naming convention (.app vs ....
4
votes
4answers
445 views

How can I make source-highlight colorize .dotfiles by default?

Normally when I cat a file like this it's hard to read without colorizing. I've managed to get cat to use source-highlight like this: cdc() { for fn in "$@"; do source-highlight --out-format=...
-1
votes
3answers
7k views

How to access dot directory [closed]

I’ve been googling on how to access dot directory in unix like system, but everybody is just talking about dot directories for this and that reason. I haven’t found anything on how to get to directory ...
22
votes
7answers
1k views

`command .*` acts on the parent directory [duplicate]

Someone of our team wanted to recursively change the user permissions on all hidden directories in a users home directory. To do so he executed the following command: cd /home/username chown -R ...
2
votes
1answer
906 views

Extracting the Contents of tar archive to parent directory issue resulting in creation of sub directories

I have a Tar file: testwebsite.tar I've placed it in the directory I would like to extract its contents to on my Web server which is mytestdirectory I run this command via PuTTY: tar -xvf ...
4
votes
1answer
270 views

Please explain what's going on in my XMonad config file

I'm new to XMonad and I'd like to understand what's going on in this config file. It is a working config file, nothing is broken. I understand what each setting does but I don't understand what's ...
1
vote
1answer
253 views

Cannot get 'match-hidden-files' to work

I have been trying to get 'match-hidden-files' to work on bash 4.3.11, but I can't. I wanted to make sure it's not something I'm doing wrong. $ grep match-hidden-files .inputrc set match-hidden-...
0
votes
1answer
225 views

Symbolic linking to ~/ instead of ~/[path/file]

I moved all of my dot files out of ~/ in to ~/data/dotfiles I then did ln -s ~/data/dotfiles/[filename] ~/ My intention was ln -s ~/data/dotfiles/[filename] ~/[filename] This included my .vimrc , ....
13
votes
2answers
2k views

Shell filename pattern that expands to dot files but not to `..`?

Recently I had a little mishap caused by a shell pattern that expanded in an unexpected way. I wanted to change the owner of a bunch of dot files in the /root directory, so I did chown -R root .* ...
8
votes
1answer
25k views

How can I delete a hidden folder?

I want to delete many configuration folder in my home user folder but I can't figure out how to delete them. How can I delete a hidden folder?
6
votes
2answers
4k views

Copy all dotfiles except for `.git` and `..`

I am aware of using .[!.]* to refer to all dotfiles in a directory with the exception of .., but how might one refer to all dotfiles except for .. and .git? I have tried several variations on .[!.||....
3
votes
2answers
420 views

Shell-independent way to cp dotfiles from a folder to another [duplicate]

I have two existing directories : foo: directory with dotfiles in it foo2: empty directory I would like to have a solution to copy all dotfiles in foo to foo2. I would like a solution that is not ...
21
votes
2answers
2k views

How to keep dotfiles system-agnostic?

Due to work I have recently started using OS X and have set it up using homebrew in order to get a similar experience as with Linux. However, there are quite a few differences in their settings. Some ...
0
votes
1answer
215 views

Moving folders used wrong syntax and lost them

I thought I was being smart trying to move a folder to one level up by going: mv folder .newfolder and neglecting to even put: mv folder .newfolder/folder and anyway it didn't put up an error but ...
6
votes
6answers
3k views

How do I specify arguments to return all dot files, but not . and ..?

Normally dot files are not included for wildcard expansion: % echo * Applications Desktop Documents Downloads Library Movies Music Pictures Public bin If I explicitly ask for dot files, I get them: ...
6
votes
3answers
2k views

When you type “ls -a”, what is the significance of “.” and “..”?

Whenever you type ls -a into the command prompt, you usually get all of your folders, files, and then you see that the first two entries are . and .. Just curious, but what is the significance of ...
11
votes
1answer
6k views

Where should user configuration files go? [duplicate]

If I look at my home directory there are a large number of dot files. If I am creating a new program that needs a user configuration file, is there any guidance where to put it? I could imagine ...
6
votes
1answer
484 views

Alphabetizing names in `ls` alias with .files not intermingled

I am currently using the following ls alias: alias ls='ls -alhGkpsq --color=auto'. This results in following directory listing. [03:35] bryson@brys ~ :$ ls total 48K 4.0K drwx------ 4 bryson 4.0K ...
1
vote
1answer
521 views

restricting pushes to selected Mercurial repositories using `ssh` forced commands and `hg-ssh`

The context of this question is the hg-ssh script. It is helpful but not critical to know something about Mercurial. This script sets up a forced command using public keys so the given public key ...