Emacs creates backup files (which I want it to do) but it puts them in my source tree (which I do not want it to do). Following instructions elsewhere, I've placed the following in my .emacs file:      ;; Disable auto save                                                                                                                                                         (setq auto-save-default nil)      ;; Save all tempfiles in $TMPDIR/emacs$UID/                                                                                                                                 (defconst emacs-tmp-dir (format "%s/%s%s/" temporary-file-directory "emacs" (user-uid)))    (setq backup-directory-alist          `((".*" . ,emacs-tmp-dir)))   It seems to be ignoring these directives and merrily continues to create the autosave files in the source directories. Any ideas?
123454
Emacs puts backup files named foo~ everywhere and I don't like having to remember to delete them.  Also, if I edit a file that has a hard link somewhere else in the file system, the hard link points to the backup when I'm done editing, and that's confusing and awful.  How can I either eliminate these backup files, or have them go somewhere other than the same directory?
85257
Are there any (good known, reliable) file systems on Linux that store the creation time of files and directories in the i-node table?   If there are, is the "changed" time replaced by the creation time of an i-node in a stat call?
92315
My tmp folder is set to /sites/default/files/tmp/ and I checked what's inside and for example there is folder inside called /update-cache-b2903cc4/ it keeps all modules in .zip that I installed via 'Install from a URL'. So why are those modules .zip files are kept there in tmp folder, isn't it a waste of storage? I don't really like it when the site is full of unnecessary files.  Am I supposed to delete these by myself all the time?
9733
Suppose I have created two folders in /tmp called parent and child. child contains a file called test-child.txt and parent contains a file called test-parent.txt. Now let's go inside the parent and create a symbolic link to the child. Next, go inside the child and try to copy the test-parent.txt from the parent. The bash completion works but the actual file copy fails --   cd /tmp pwd /tmp mkdir parent mkdir child touch child/test-child.txt ls child/ test-child.txt cd parent ln -sf ../child . touch test-parent.txt cd child cp ../test-parent.txt . cp: cannot stat ‘../test-parent.txt’: No such file or directory    why ??  Moreover, when I am inside child and if I say --  pwd /tmp/parent/child
8450
In Bash, suppose I visit a directory, and then another directory. I would like to copy a file from the first directory to the second directory, but without specifying the long pathnames of them. Is it possible?   My temporary solution is to use /tmp as a temporary place to store a copy of the file. cp myfile /tmp when I am in the first directory, and then cp /tmp/myfile . when I am in the second directory. But I may check if the file will overwrite anything in /tmp.  Is there something similar to a clipboard for copying and pasting a file?
109070
I have a source file for an icon. It has a base layer which is the icon background, and a number of layer folders, each of which contains layers for each individual icon. There are 20 or so of these folders. To save the icon set, I need to:   Make the base layer visible, and hide all other layers Show the folder of the icon I want to save Save the file, with an appropriate name (the name of the folder) Hide that folder. Repeat steps 2-4 for every folder   I've played around with the scripting in Photoshop but haven't been able to make something that does this automatically (it's an annoyingly time-consuming operation). Is it possible?
95760
Just noticed it works on Maverick.. the colon character : is valid for file and directory names (I accidentally entered it for a filename in Atom).  Can't find any reference to it becoming valid though ( still marks it as invalid).  It works in the Atom editor.  I can create a file called : with nano.  This works echo 'test' &gt; : &amp;&amp; cat :  In TextWrangler it only works if the file already exists but won't create it (with command line tools installed edit :)  Is this new from Mavericks? Works in Yosemite? Before?  Edit: A few more tests:    TextEdit won't allow me to enter it and always replace it with - Finder won't allow me to create a folder with the name :  A : file created via command line is displayed as / in Finder.. and double clicking it will open it in TextEdit. TextEdit will load its content but show the name / in the title bar.
92956
When creating a new file with vim, I would like to automatically add some skeleton code.  For example, when creating a new xml file, I would like to add the first line:    &lt;?xml version="1.0"?&gt;   Or when creating an html file, I would like to add:  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html&gt;   &lt;head&gt;     &lt;title&gt;&lt;/title&gt;   &lt;/head&gt;   &lt;body&gt;   &lt;/body&gt; &lt;/html&gt;
20764
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 &amp;&amp; echo "7.3GB BACKED UP PROPERLY" || echo "7.3GB FAILED TO BACK UP"   The issue is that dot files are also getting included which I don't want. What should I do so as to ignore all dot files for backing up.
115808
I want to list the components of the current working directory in a text file  ls -1 &gt; textfile   Output looks fine with more.   1010661085645 1010729039145 1010747080245 1010849051345 1010859053445 1011046075845   However when I view this textfile with emacs, several strange characters appear  [0m[01;34m1010661085645[0m [01;34m1010729039145[0m [01;34m1010747080245[0m [01;34m1010849051345[0m [01;34m1010859053445[0m [01;34m1011046075845[0m   Can anyone explain what is going on here?
82398
Suppose I have a directory structure like this:   $ [~/practice] ls a/ b/ c/ d/   Now I want to create a directory tmp1 in all sub directories of practice and I do this:   $ [~/practice] mkdir */tmp1 mkdir: cannot create directory `*/tmp1': No such file or directory   Then I try the -p switch and I endup with a directory named * with a sub directory tmp1   $ [~/practice] mkdir -p */tmp1  $ [~/practice] ls */ a/ b/ c/ d/   I know the use of -p switch is to create multiple nonexistent directories. I just thought it might help.  How do I create tmp1 in all subdirectories at once?   If this can be done, how do I extend it to create \tmp1, \tmp2, \tmp3 in \a, \b and \c at once?  Edit: I missed mentioning that the directories don't have to be simple and in order, like a, b, c etc., and the directory to be created is not necessarily like tmp1, tmp2.    $ [~/practice] ls dog/ cat/ rat/   In them, I would like to have something like   $ [~/practice] ls * dog: red/ blue/  cat: red/ blue/  rat: red/ blue/
98957
let's say that I have a following file structure:  ~/DIR1 -fileA -DIR2 --fileB   Then, being in ~, I run this script:  cp DIR1 NEWDIR2   And just an error happens:  cp: omitting directory ‘DIR1’   I understand why nothing from DIR1 gets copied (because I didn't use -r switch that would enforce recursion) but I'd expect the DIR1 folder itself copied to NEWDIR2 (so practically a creation of a new "NEWDIR2" in ~ or a creation of ~/NEWDIR2/DIR1).  Could someone explain to me why is my expectation wrong?
119211
So I used to use CCC to clone my external drive to another external drive for a backup copy.   What I realized is that I want incremental backup that is versioned. So I can go back to a copy that is on a specific date in the past.   I don't want to use time machine for this because right now TM is already being used to backup my main drive to a time capsule.   As far as I know, I can't setup TM to backup my main drive to time capsule while choosing to backup an external drive to another location.   I guess I'm looking for 3rd party solution here?
17670
I usually am able to render successfully to the c:\tmp folder, but when I came into work today, I rendered out the image on my work laptop, and everything seems to work, but I'm not getting an output to the tmp directory.  Does anyone know how to make this work?
106769
I need to do a lot of cleaning in my Virtual Machine whose Operating System is Ubuntu.  Normally in Windows, there is this kind of directory that contain temporary files and that should be cleaned :  C:\Documents and Settings\Administrator\Local Settings\Temp   Does it exist such a directory in Ubuntu? If yes, what is it?  Thank you a lot.
78102
Using the following code in emacs configuration file makes the listed environment as verbatim.  (setq LaTeX-verbatim-environments-local '("Verbatim" "lstlisting"))   How can I add following environment to this list.  \lstnewenvironment{code}[2][]{%  \lstset{#1}%  \mdframed[style=lstlisting,title={#2}]% }{\endmdframed}   I have tried the following but its not working  (setq LaTeX-verbatim-environments-local '("Verbatim" "lstlisting" "code"))
72629
Let's say the directory ~/this_dir doesn't exist.  I need to be able to run touch ~/this_dir/new.txt to create new.txt in ~/this_dir.  Is there a simple way to make touch also create the directory?  Or an alternative command which would achieve the same thing?  Thanks