18,035 reputation
13664
bio website
location United States
age
visits member for 2 years, 8 months
seen 12 hours ago

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.


Apr
25
awarded  Good Answer
Apr
24
comment How ignore PATH with `source` completion
The standard, POSIX-compliant behavior of ., for which source is a synonym in shells that have it, specifies that $PATH shall be searched for files that do not contain slash. If you want to restrict the search and completion to local files, a simple way is to type ./ first. This is probably cleaner than messing up the shell completion.
Apr
24
awarded  Nice Answer
Apr
24
answered cd by just typing the directory's name?
Apr
22
revised Open PDF previewer width specific size and position and “always on top” from command line
added 23 characters in body
Apr
22
comment How to delete files filtered out by awk
@EugeneS ... except sr_ has already shown you exactly how to do this safely with find. Why don't you just use the suggested command? It is never necessary to use ls for manipulating files (at least I have yet to run into such a situation) since find and shell globbing cover nearly all cases.
Apr
22
comment How to delete files filtered out by awk
Please don't parse ls output. @sr_ You should post that as an answer.
Apr
22
comment How to completely hide stuff from a user?
It's hard to grant shell access and limit it to a directory without a full-blown chroot and even that is not fool-proof. Chroot environments are intended more for development and testing than for security. If you are willing to restrict users to sftp only without any shell access, if I remember correctly, that was not only possible but much easier to do by using the internal-sftp option with ChrootDirectory in sshd_config. You'll also want to consider setting up quotas if you share the same partition with the other users so they can't fill up your free drive space.
Apr
21
revised Open PDF previewer width specific size and position and “always on top” from command line
added 10 characters in body
Apr
21
answered Open PDF previewer width specific size and position and “always on top” from command line
Apr
20
comment regex replace text in xml file within node from the command line
It could be the case that @crmpicco is attempting to use lazy quantifiers, which are not available in the portable POSIX sed specification. sed and regex are not the correct or most robust way to be handling XML anyways.
Apr
20
comment ls behaves differently under strace
Since @rozcietrzewiacz's comment was correct, that makes this a near exact duplicate of this question. At least the accepted answer there applies here.
Apr
20
comment How can I extend the wait time for the watch command beyond 4200 or so seconds?
Or even while true; do command; sleep 14400; done, for less permanent setups.
Apr
20
comment Keyboard Shortcut To Send Text Strings To Program
@Steven I haven't used Xfce in a while, but my next hunch is that when the command is run, the active window is wrong somehow. I'd try running xdotool getwindowfocus both from a terminal and as a keyboard shortcut while the same terminal is open and compare the results for equality. You'll probably have to redirect the keyboard shortcut version to a temporary file in order to see it.
Apr
20
comment Keyboard Shortcut To Send Text Strings To Program
@Steven Does it work directly from a terminal?
Apr
20
comment My debian-menu.xml is missing
openbox only suggests menu. I'd be interested in seeing how such a bug report to request a depends would be triaged as one could argue that openbox is still useful without the Debian menu. (I have never looked at the auto-generated Debian menu except to see what was in it out of curiosity.) The error messages seen by the OP are probably caused by the combination of openbox not depending on menu yet still including debian-menu in its default configuration files.
Apr
20
answered Keyboard Shortcut To Send Text Strings To Program
Apr
18
awarded  Enlightened
Apr
18
awarded  Nice Answer
Apr
18
comment Is there a way to detect null bytes (␀, NUL, \0) in sed?
It should be mentioned that \x is a non-standard sed extension, but GNU sed does provide it.