Reputation
2,080
Top tag
Next privilege 2,500 Rep.
Create tag synonyms
Badges
5 21
Newest
 Cleanup
Impact
~40k people reached

May
16
comment How to rewrite the comand using I/O redirections?
Yup, … | wc -l | tail -l looks nonsensical.  Also, I wonder whether the exam question actually says tail -l, or does it say tail -1, and the OP just mis-transcribed it?
May
16
awarded  Cleanup
May
16
revised Create a file of pairs from pairs
rolled back to a previous revision
May
14
comment Why does looking for hardlinks fail?
Just to throw another log on the fire: this is, arguably, an example of what people do when they believe that words on a command line can be arbitrarily rearranged.
May
9
awarded  Vox Populi
May
9
awarded  Suffrage
Apr
22
comment Joining bash arguments into single string with spaces
@Schwagmister: You can save it into a (string) variable if you want, but, if you don't specifically need to do that, I think cd "$*" will be good enough.
Apr
22
answered Adding vertical space after command in bash
Apr
22
answered Getting “Protocol Error” when trying to create a symlink in Docker
Apr
22
revised Getting “Protocol Error” when trying to create a symlink in Docker
Fixed formatting and typos; added tag.
Apr
22
comment How to retrive a file from a prompt?
You say “retrieve a file”, “prompt for a file”, and “What file …”.   Are you talking about a file (or filename) or a list of them?  If just one, why are you using for … in?  That’s a loop construct, used for doing something multiple times (with different values).
Apr
21
comment Simplest way to send files over network
Obligatory XKCD.
Apr
21
awarded  Autobiographer
Apr
21
comment Convert underscore to PascalCase, ie UpperCamelCase
(Cont’d again) …  (5) In the spirit of not causing collisions, it seems to me that “foo_bar” and “FOO_BAR” should not map to the same thing, so therefore I object to “FOO_BAR” → “FooBar”.  (6) I think the bigger issue is namespaces.  I haven’t programmed in Pascal since Blaise was alive, but in C/C++, by convention, identifiers that are primarily in lower case (to include snake_case and CamelCase) are generally the domain of the compiler, while identifiers in upper case are the domain of the pre-processor.  So that’s why I think that the OP didn’t want ALL_CAPS identifiers to be considered.
Apr
20
comment How is a directory a “special type of file”?
Related: How does one inspect the directory structure information of a Unix/Linux file? and When did directories stop being readable as files?
Apr
20
comment Can I use permissions or facls to limit the creation of files in a directory without limiting the creation of directories?
First of all, I said it could be setuid or setgid, and, as @Gilles points out, setgid is better.  Secondly, are setgid programs off the table, or only setgid scripts?  Because I wasn't suggesting a script; I was suggesting a program, in a language such as C, that can be compiled to a binary executable.
Apr
20
comment Process starts from inittab but stops by itself at the same time
Try putting sh -c '/opt/share/pyload/pyLoadCore.py >> /some/log.file 2>&1' into "inittab".  Or, perhaps, a pyLoadCore.sh script that would do that.
Apr
20
comment Process starts from inittab but stops by itself at the same time
The "dumb" question: does the command /opt/share/pyload/pyLoadCore.py work?  Even if you aren't in that directory when you run it?
Apr
19
comment tty problem: binary mess instead of “text good data”
If that's the problem, then (stty ispeed 9600; cat) < /dev/ttyUSB0 should work.  Optionally, specify /dev/ttyUSB0 as an argument to either or both commands.
Apr
19
comment Bash: Access parameter passed to last command
OK, I added one like that.