Reputation
5,232
Next tag badge:
84/100 score
11/20 answers
Badges
1 13 32
Newest
 Enlightened
Impact
~902k people reached

10h
comment Bash says file not found when `ls` and `dir` list it
Is . in your path?
Apr
27
comment Use of && and || operators to handle the result of the same command
@JuliePelletier: yes, which is my point exactly: if the success handler echo true should ever fail itself, the failure handler echo false is executed, even if the original command was successful.
Apr
27
comment Use of && and || operators to handle the result of the same command
Yes and no: [[ "a" == "a" ]] && /bin/false || echo false gives "false", which may or may not be useful if you just want to look at the exit status of the first command.
Apr
26
answered Getting the first 5 characters of unix filenames
Apr
26
answered is it possible to monitor the /var/log/secure or /var/log/message using watch command
Apr
25
comment RAM usage issue
So you want to automatically run your clear-cache script whenever the "used" value goes above, say, 90% of system memory?
Apr
24
comment Script that will show area of rectangle
The chapter on arithmetic expansion in the Advanced Bash Scriting Guide might be useful to you.
Apr
18
comment IP based and FQDN based certificate on same LDAP node
Will your Ip-based cert also be self-signed? A certificate can cover multiple IPs/DNS names/mail addresses at the same time, the phrase to look for is "Subject Alternate Names".
Apr
15
comment Do light color codes work across all distros and terminals?
If your end goal is to always have light blue, you might be out of luck -- I've seen terminal emulators that let me configure the 16 (IIRC) available colors freely.
Apr
9
comment Ubuntu starting error
There's a commonly-known variable JAVA_HOME (note the underscore), so this will probably boil down to a typo.
Apr
7
comment How can fsck be so fast?
What filesystem are you using? It's possible that a journaling filesystem will immediately go "oh, the journal looks ok, I didn't lose any transactions, all is well"
Apr
5
comment Why was shar written if tar already existed?
My conjecture would be that tar requires, well, tar, and, at that point, probably uudecode since tar archives are not 7-bit clean, whereas shar only requires sh.
Apr
2
answered How to get desired output from apache access log in Linux
Mar
31
comment Restart service after yum update?
The output of lsof +L1 might be helpful in figuring out if something still uses the now-overwritten sshd. (Your current ssh session certainly will.)
Mar
31
reviewed Leave Open How to use crontab to shutdown linux for every saturday 3PM
Mar
31
comment How can I view my virtualbox guest unix filesystem from the host windows file/text editor?
Is the VM running while you're doing it? (Otherwise, this question turns into "how do I access the contents of a vmdk or similar")
Mar
24
comment Create a pdf from which images cannot be extracted
If "zooming to 400% and taking a screenshot" is extracting, you're out of luck. Unfortunately, some of the protection settings in PDFs are mere flags that the display program might choose to ignore, so disabling copy/paste is a mere annoyance and not a protection.
Mar
16
comment mkdir under /cgroup creates files along with directories
In a very handwavy way, mkdir will at some point call filesystem code, and different filesystems can do different things when "creating directories". (I have not double-checked if this is actually how the cgroups files are created.)
Mar
11
comment How can I upgrade OpenSSL version to openssl-1.0.1s in RHEL 5 machine?
You shouldn't need to build from source, RedHat has issued versions of openssl 0.9.8e that include the fix for 5.6 and 5.9.
Mar
11
comment Characters best avoided in filenames when used in Bash, e.g. `?`
re 3: I think you cannot have NUL bytes in filenames even on a filesystem level, and while you could directly edit the raw device to create a filename with a forward slash / in it, I doubt you could do anything with it through the operating system that involves parsing a name into path and filename.