Reputation
1,871
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
4 10
Newest
 Civic Duty
Impact
~153k people reached

1d
comment Still alive, still alive after kill -9 / SIGKILL
You may want to do : lsof -p pid to see what the process is accessing right now, it could help you to find out the bottleneck. If not, you can also attach to it with a debugger (ex: Gdb, gnu debugger), and see exactly what it is currently doing.
Jun
24
comment How prevent users from running commands via dot slash for a directory?
why does it matter that they use the full path? is "foo" not running correctly when using another relative path? (../bin/foo ? etc). what is the goal? (work around a bug in foo when invoked by something other that a full path? auditing where you want to know which of several "foo" was started? tell us the need, not the how)
Jun
21
comment What to use when the “ls” command doesn't work?
oh, it was just to save a few typing? ok, but I think it makes it more confusing than it should be (it's not codegolf ^^)
Jun
21
comment What to use when the “ls” command doesn't work?
misread ^^ sorry. why not just copy and use file? why the whole homedir thing? scp to desktop, file on it, and bash ./it ?
Jun
21
comment What to use when the “ls” command doesn't work?
please, please, everyone should stop recommanding '--' when the unix faq since more than 10 years explain that using "./" is better and more portable (works with all programs even the (many) ones that dont handle '--' )
Jun
21
comment What to use when the “ls” command doesn't work?
@ EdwardTorvalds: not echo -- *, prefer the good habit of using: echo ./* (some systems will not have the -- option to echo. And even linux probably have programs that don't have '--' as well, so the good habit of using ./ instead works in all those cases and is better.)
Jun
16
comment What does a dollar sign followed by a square bracket mean in bash?
man pages could contain things like _t_h_i_s (which is then interpreted by the man utility so as to appear differently) so your grep could fail if it happens the thing you search was supposed to be noted like this
Jun
15
comment “echo $IFS” does not return the value of IFS
The reason why "\" becomes " " is explained in unix.stackexchange.com/a/209184/27616 (by @StéphaneChazelas ) ( "\" became an IFS, an Input Field Separator, so $var now contains 2 "parts", one before "\", the other after "\". And those 2 parts are written one after the other, separated by a space
Jun
12
comment Memory problems when compressing and transferring a large number of small files (1TB in total)
I love that a pidgin beat an ISP by a long shot, see the wikipedia page's exemples ^^
Jun
12
comment Memory problems when compressing and transferring a large number of small files (1TB in total)
+1: "never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway" (Andrew S. Tanenbaum). see en.wikipedia.org/wiki/Sneakernet
Jun
12
comment Understand “IFS= read -r line”?
+1 Thanks for some useful insights of the different treatments on space/tab vs "others" in IFS in bash... I knew they were treated differently, but this explanation simplifies it all a lot. (And the insight between bash (and other posix shells) and the regular sh differences is usefull too to write portable scripts!)
Jun
10
comment Is 'cat' a shell built-in or an external program?
You could type -all echo to find out (in order) which are the different "echo" known to the shell (the first one being the one the shell will call, if you don't specify something to change the order, like invoking "echo" or \echo, or command echo )
Jun
8
answered Issue an error when using empty shell variables
May
30
answered How to debug a bash script?
May
30
comment How to debug a bash script?
another wonderful resource is : shellcheck.net
May
29
comment How can I quickly sum all numbers in a file?
@user1717828: -F'=' or -F '=' are 2 ways of doing the -F fs (fs is "=" in your case) . I added the singlequotes to ensure the fs is properly seen & interpreted by awk, not the shell (usefull if the fs is ';' for example)
May
29
comment How can I quickly sum all numbers in a file?
@user1717828: you should rather use the (shorter, and more compatible!) -F'=' instead of --field-separator =
May
16
comment Reading keypresses in shell using trap and Unix signals
good and thorough answer!
May
16
comment Reading keypresses in shell using trap and Unix signals
+1 for stating what you attempt to do, instead of just asking about the code snippet. and for the context. very good way to ask a question.
May
12
comment Track certain parameters on some command
ok. I added additional remarks underneath Stephane's (good) answer. my remarks may not be applicable (I think of the .txt as a log file, but it could be something else that can't have dates in it?)