23,937 reputation
62565
bio website
location Marseille, France
age 33
visits member for 2 years, 5 months
seen yesterday

Elected moderator on Unix & Linux. Feel free to @ping me in chat if there's anything I can help you with.

I've been using Linux since the late '90s and have gone through a variety of distributions. At one time or another, I've been a user of Mandrake, SuSe, openSuSe, Fedora, RedHat, Ubuntu, Mint, Arch and for the past few years Linux Mint Debian Edition (which is basically Debian testing but more green).

My Linux expertise, if I can grace it with such a lofty title, is mostly on manipulating text and regular expressions since that represents a large chunk of my daily work.

profile for terdon on Stack Exchange, a network of free, community-driven Q&A sites


Jul
15
comment What happened to the partitions I set up before installing windows, and the Ubuntu?
Please include the information requested by Marius and also tell us what you did. Which version of Windows did you have installed? Are you using a GPT or MBR partitioning scheme? Did you actually install any other OS or just Ubuntu? How did you install? Did you choose the partitions or did you let the installer do so automatically?
Jul
11
comment Checking file names inside a directory with Regular Expressions
@Scott ah, huh, no I'd never heard of that, no. Mind you, I was two in 1982 so I might not have heard of it even if I'd grown up in the English speaking world :).
Jul
11
comment Checking file names inside a directory with Regular Expressions
@Scott ah, yes, well found! Who's Jenny? Or should I not ask?
Jul
11
comment Checking file names inside a directory with Regular Expressions
@Scott I tend to agree with such precautionary quoting but I don't know of any shell that would choke on that. Still, as you said, better safe than sorry. Quotes added.
Jul
11
comment How to open a file from bash command line in the already open Emacs instead of a new instance?
@Dror ah, yes, I see what you mean. See updated answer.
Jul
11
comment How to open a file from bash command line in the already open Emacs instead of a new instance?
@Dror not at all, when you add this to your emacs configuration file, it will simply launch the server the first time you run emacs and then open all subsequent files in that instance. You don't need to keep track of anything at all.
Jul
4
comment symbolic link to /usr/local/bin not running the program unless logged in as su
@wbg great! Do remember to post it as an answer if you've found it. Also, I just realized I'd made a mistake in my answer. It is ~/.bashrc that is not read when you ssh and ~/.profile that is. My guess is that you were setting your PATH in ~/.bashrc and that's why it wasn't working. This won't be the case if you're opening a terminal locally though.
Jul
2
comment Batch renaming of files using regular expression in Unix
Sorry about the edit/rollback, I saw this would break on spaces but missed your disclaimer.
Jul
1
comment Adding text to the end of multiple files, minus one line( Adding return 0; at the end of each program in C)
@Scott no more baffled than I to tell you the truth. As for echo >> file I had a serious problem between the keyboard and my brain there. For some reason, which I can no longer remember, I thought these approaches do something different. Presumably I was thinking of something like what your answer does and then decided to reinvent the wheel. I can't do much about it since it's accepted but you may as well give it a downvote so at least yours will rise up. P.S. Thanks :)
Jun
30
comment How to type ñ on my debian system?
AH! Sorry, I had not understood you.
Jun
29
comment Is it possible for a device to remember settings after turning the pc off?
I'm afraid this is off topic since there is nothing *nix specific here. I will be migrating it to Super User in a second.
Jun
28
comment I want to use my rt-n66u as a network adaptor
Define a "good" card. You can get normal wireless NICs for under 10$.
Jun
28
comment sed error when launching terminal on OS X
Ah! Then the problem is most likely in /etc/profile. Have you changed that file? Did you try the grep command from my answer?
Jun
28
comment sed error when launching terminal on OS X
Is this bash or zsh? Why have you tagged with both?
Jun
28
comment Adding text to the end of multiple files, minus one line( Adding return 0; at the end of each program in C)
Welcome to Super User! Please always include your OS. Solutions very often depend on the Operating System being used. Are you using Windows, Unix, Linux, BSD, OSX, something else? Which version?
Jun
16
comment Is there a way to display a countdown or stopwatch timer in a terminal?
@mkingston nice, thanks!
Jun
13
comment What used the linux memory? Low cache, low buffer, not a VM
This is really interesting but doesn't answer the question of why the OP is observing this specific discrepancy.
Jun
13
comment Is there a way to force du to report a directory size (recursively) including only sizes of files?
@Scott yes it will, good point. I fixed it by using awk instead, thanks.
Jun
6
comment How to find a very latest created file in current directory on linux machine?
Actually, many file systems do store the creation time (see my answer) but the kernel API does not give access to it so other tools are needed. In any case, Scott is quite right, this is just showing the file that was modified most recently.
Jun
6
comment How to find a very latest created file in current directory on linux machine?
No, it's the one that was modified last.