Reputation
6,336
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
12 23
Newest
 Nice Answer
Impact
~210k people reached

Mar
28
comment Copy files from find command
So you want to cp /location/Xfile.log /location/Xfile.log where X is any arbitrary name or path? That doesn't make much sense, nor does it work: cp: ‘tmp/000file.log’ and ‘tmp/000file.log’ are the same file. Does your question really show what you are trying to run?
Mar
25
comment Bourne shell: ignoring certain kinds of stdin
Shell case patterns are not regular expressions; they are more like shell globs. The pattern *[.]* means anything or nothing followed by a single character followed by anything or nothing. I'm pretty sure that' not what you intended.
Mar
25
comment What is advantage of backing up a filesystem by version control software?
Rsync is better than most version control systems at handling arbitrary binary files which can change wildly from revision to revision. There are rsync wrappers like backintime.le-web.org that do allow versioning by time-stamp and use rsync as a mechanism. BackInTime isn't the only tool in its class, it's merely the one I've used the most.
Mar
7
comment Backup partition changed UUID without user interaction
Check the fstab, check that sda didn't die by off-lining sdb. The possibility of a disk error randomly creating a duplicate UUID is outrageously tiny. I have to suspect operator error. Did you re-image db3 after the first copy?
Mar
5
comment Running bash script with sudo, and git inside of it
I think it is bad practice to use it in a script as shown because the user will see a request for a password and have no idea why. Better would be echo "I need root permissions so I can copy your file foo to /var/www/project where anyone in the world can see it" and suchlike. I think better still would be echo the commands needed and let the user execute them manually. I'd be wary of scripts that prompt me for my password and have to read it or uninstall it.
Feb
8
comment GCC warning when compiling Orange
What part of the error message do you not understand?
Feb
3
comment Linux doesn't recognize windows on installation
This is a fine question for this site, but it is lacking some important detail. Please run a live-cd (or thumbdrive) and boot but don't install the distro. Once you can get a shell, run sudo fdisk -l and add that partition listing into your question.
Jan
30
comment who controls a linux service?
When you find yourself doing the same task repeatedly on a computer, write a program (shell script) to do it for you. And yes, the profusion of service managers is obnoxious but I don't see it getting better anytime soon.
Jan
26
comment Repeatedly ziping a file that is newly created, but identical, however the shasum of the zip keeps changing
I don't understand what you are trying to achieve. The output of git rev-parse <REV> is SHA-1 hash of the specified revision, unique across all revisions of the repository. Why you would zip such a small string and then checksum the zipfile is a mystery.
Jan
13
awarded  Nice Answer
Dec
28
answered Does a Linux server use swap space of an SSH client?
Dec
19
comment Generic shared resource locking techniques - is flock the solution?
To support @WarrenYoung's point, using files or directories as poor man's semaphores dates back to when semaphores didn't (portably) exist. If I found myself needing a mutex on the local machine, I'd probably use a POSIX semaphore because that's they were invented for.
Dec
18
answered creating a custom service on ubuntu
Dec
18
comment Generic shared resource locking techniques - is flock the solution?
Is this file accessed across the net, for example, NFS or SMB/CIFS? There are a number of processes that have to coordinate flocks across those protocols and it will, of necessity, be slower than a local file.
Nov
13
comment How do I sftp to a server if the username contains @ symbol
+1 "Ok, my boss did."
Nov
4
revised Is my linux mint box vulnerable to Shell-Shock attacks? How might I remedy that?
edited title
Oct
26
comment Who wrote the “Linux kernel” (Linus Torvalds and his team)?
@jlliagre Nope: "An operating system (OS) is software that manages computer hardware and software resources and provides common services for computer programs. The operating system is an essential component of the system software in a computer system. Application programs usually require an operating system to function."
Oct
26
comment How can I prevent disk I/O from taking over my CPU?
If you've got more than 8 threads in disk-wait, the cores may report that they are idle, but the bus is jammed with the disk blitting blocks to core. Given any architecture I can bottleneck it with some arbitrarily large load; you found your limit.
Oct
26
comment Who wrote the “Linux kernel” (Linus Torvalds and his team)?
"Typically an OS would having a kernel, having one or more compilers…" nope. The OS is the kernel and nothing more.
Oct
24
comment pthreads and vfork
+1 thanks for promoting this to its own question. @Mat has already given a fine answer; anything I could add would be redundant.