Reputation
495
Top tag
Next privilege 500 Rep.
Access review queues
Badges
4 11
Newest
 Commentator
Impact
~40k people reached

Nov
11
comment What's the deal with the “.” and “..” in the directories?
That's true — and that's when the cheating occurs. In all regular directories (those which are not the root of a file system), the dot and dot-dot directory entries are real and the inodes reported are real. When you're in the root of a mounted file system, the inode number of the dot-dot entry is faked by the system as a special case. On an unmounted file system, you'd find that the dot and dot-dot entries both have inode 2 (again, under old rules; there might be a modern file system type where the rule is different, but they'd have the same inode number).
Nov
11
comment What's the deal with the “.” and “..” in the directories?
On traditional systems, the names . and .. are not virtual but completely real. I don't think things have changed enough that they'real virtual.
Sep
27
comment Adding the tar '-z' (gzip) parameter at the end of 'tar -cvpfz …' doesn't work as expected
Note that 'old option style' refers to "prior to Seventh Edition UNIX", circa 1979. That is, it was non-standard notation already, but retained for backwards compatibility.
Aug
10
revised Rename hundreds of directories
Clarify the for loop w/o changing its substantive meaning.
Aug
10
awarded  Commentator
Aug
10
suggested approved edit on Rename hundreds of directories
Aug
10
comment Rename hundreds of directories
The reason mv SP_$num_date SP_$num didn't work was that you don't have a variable $num_date (or, at least, that's one of the reasons). You would have needed ${num}_date to separate the variable $num from a constant suffix _date. Another problem is that the value in $num might be ./SP_1_date so the mv command was attempting to move SP_./ (since $num_date was undefined and hence an empty string) to SP_./SP_1_date.
Jul
21
comment What is the difference between amd64 and linux 64 versions?
Oracle 10g is an old version. Maybe the other is for Oracle 11. Which you install may depend on the version of the Oracle DBMS to which your client code will be connecting.
Jul
3
revised How to wipe a hard disk completely so that no data recovery tools can retrieve anything?
Fix trivial typos (but what to do about test-disk vs Test disk?)
Jul
3
suggested approved edit on How to wipe a hard disk completely so that no data recovery tools can retrieve anything?
Jul
2
comment Remove duplicated dots from file name
@A.B. Hmmm…how on earth did who manage to break the code so it fails on names containing newlines? That's a reportable bug in the rename utility IMNSHO. It required effort to break it. A basic implementation of rename doesn't run into that issue.
Jul
2
comment Remove duplicated dots from file name
@A.B. Why does this not work when there are new lines in the file name? It looks clean to me (on that issue—there may be other issues to deal with).
Jun
21
awarded  Critic
Jun
21
revised Why is bash the default shell in most OS?
edition --> editing
Jun
21
comment Why is bash the default shell in most OS?
Would you explain what was deficient about the Korn shell editing? It always seemed to work OK for me, even in the 90s.
Jun
21
suggested approved edit on Why is bash the default shell in most OS?
Jun
5
comment Get specific PID and save to file
You don't need grep if you use awk. You could use: ps h -o pid,cmd -u minecraft | awk '/World2/ { print $1 > "world2.pid" }' instead, or do the I/O redirection in the shell (which is simpler).
May
14
comment “No such file or directory” when trying to remove a file, but the file exists?
You could use Bash's "file name completion" to generate the correct file name starts with q. If that fails, it means the first letter isn't q but you can then use rm -i *timeout.png to remove it, or minor variations on the theme. All this assumes this is a one-off problem and not a systemic one.
Apr
9
awarded  Yearling
Apr
7
awarded  Nice Answer