1,661 reputation
28
bio website
location
age
visits member for 2 years, 6 months
seen 1 hour ago

21h
comment Ping multiple hosts and execute command for hosts that are up
Instead of pinging the hosts first (LBYL — Look Before You Leap), why don't you just run the command you intend to run (EAFP — Easier to Ask Forgiveness than Permission). If the hosts is up, the command will work and if the host is down, it simply won't work.
1d
answered How to know free disk size witout df command?
2d
comment How does `stdin` of linux work?
@user2555595 so it turns out I was wrong about the name of the touchscreen devices :-) Edited.
2d
revised How does `stdin` of linux work?
Added information about touchscreens
2d
comment how to detect what DISPLAY is active/has input focus?
I don't know about that Ctrl-Alt-* stuff but there is no general definition of a DISPLAY being "active" or "inactive". Would a Xvnc display be considered active only when there is at least one client connected to it? I also guess that under any reasonable definition, many different displays could all be considered "active" at the same time...
2d
comment processing multiple extensions
I hope you would consider processing files matching *.jpeg as well. Apparently someone in the distant past thought it should be *.jpg and this misnomer caught on in a big way... but it seems quite wrong: as if the Joint Photographic Experts Group became the Joint Photographic Group, the implication being that they're not experts!
2d
comment Terminal does not open under dwm — is there an error log file?
I don't know about dwm specifically but the default stderr log file for any program running in an X11 session that does not somehow or other redirect its stderr is ~/.xsession-errors.
2d
comment Record from the microphone indefinitely
Can't you just omit the -d option? I mean, isn't it the default behaviour of arecord to run continuously until killed?
Jul
26
comment Resolve nested aliases to their source commands
I apologize, I am having trouble understanding your question. When you say type u and "These are all aliases in u", what is u? And is up && ap upgrade -y etc...... the command you are trying to execute? If yes, then can you tell us in what way it doesn't work?
Jul
26
comment Proper way to distribute shell scripts
@StéphaneChazelas by the way, it's not the first time you teach me something I didn't know (emulate -L in this case) by commenting on one of my answers, and I appreciate it.
Jul
26
comment Proper way to distribute shell scripts
@StéphaneChazelas Haha, yes indeed. Of course that's part of why using csh is a bad idea, right? :-) But I guess zsh has that too, in the form of zshenv. Careful what you put in zshenv for that reason!
Jul
26
comment How to disable local file writes?
Are the users' home directories in /home or in the network-mounted location (which is presumably mounted outside /home). If nobody's home directory is actually in /home then you can actually delete the whole directory if you want. There is nothing special about the name /home, it's just a conventional location for placing home directories. Alternatively, you can delete the entire local /home and mount the network file system on /home.
Jul
26
comment How do you patch a kernel?
Short answer: you patch source code with the patch utility. But once you've done that, configuring and compiling the kernel correctly is a whole other question, and a pretty broad one at that.
Jul
25
revised Change packages from country local to global
added 1 character in body
Jul
25
answered Change packages from country local to global
Jul
25
revised Proper way to distribute shell scripts
added 135 characters in body
Jul
25
answered Proper way to distribute shell scripts
Jul
25
comment how to download a file using just bash and nothing else (no curl, wget, perl, etc.)
Your answer is basically identical to the accepted answer from over a year ago.
Jul
25
comment how to download a file using just bash and nothing else (no curl, wget, perl, etc.)
The OP has "*nix which does not have any command line utilities for downloading files", so no lynx for sure.
Jul
25
comment How come zipping a created disk image, makes smaller files than piping?
That's a huge difference! I would be curious to know how bzip2 compares to the other 2.