24 November 2005 1 comment Linux
This blog post is 17 years old! Most likely, its content is outdated. Especially if it's technical.
Last month I complained about how brutal the rm
program in Linux was and how I cocked things up when I wanted to remove the autosaved backup files that jed
creates. Here's the solution...
I created a script in ~/bin/Mvbackupfiles
that looks like this:
Now, whenever I want to clear a directory of all files like dummy.py~
or README.txt~
, I just run Mvbackupfiles
and I become a much happier and tidier person.
Here's what it can look like:
peterbe@trillian:~/dev/signature_hider $ ls
index.html index.html~
peterbe@trillian:~/dev/signature_hider $ Mvbackupfiles
`index.html~' -> `/tmp/index.html~'
peterbe@trillian:~/dev/signature_hider $ ls
index.html
- Previous:
- createElement('a') with a javascript href 21 November 2005
- Next:
- Islington Knuckle Walk 24 November 2005
- Related by category:
- Linux tip: du --max-depth=1 27 September 2007 Linux
- How to create-react-app with Docker 17 November 2017 Linux
- Be very careful with your add_header in Nginx! You might make your site insecure 11 February 2018 Linux
- set -ex - The most useful bash trick of the year 31 August 2014 Linux
- Run something forever in bash until you want to stop it 13 February 2018 Linux
- Related by keyword:
- Local jed settings 19 April 2013
- Wing IDE versus Jed 11 December 2008
- Jed looking like Emacs 28 September 2005
- Jed Tags with ntags (for dummies) 11 February 2006
- File check before delete 7 March 2008
Isn't there a setting to put those backup files into /tmp in the first place?