Reputation
118,835
Next tag badge:
98/100 score
37/20 answers
Badges
19 150 297
Newest
 Nice Answer
Impact
~4.8m people reached

Jul
22
answered Change strings in multiple files to current subdirectory name
Jul
21
revised Is there a command to see where a disk is mounted?
added 243 characters in body
Jul
21
comment Is there a command to see where a disk is mounted?
There now are findmnt and lsblk dedicated commands that do the hard work (more robustly) for you
Jul
21
answered Is there a command to see where a disk is mounted?
Jul
21
revised How to pass argument with char ( in remote path?
added 62 characters in body
Jul
21
revised Can bash write to its own input stream?
added 243 characters in body
Jul
21
revised How to pass argument with char ( in remote path?
added 844 characters in body
Jul
21
comment How to pass argument with char ( in remote path?
That will only work if the login shell of the user on the remote host understands backslash as a quoting operator. Which will be the case in the majority of the cases, but would not be for instance if that shell is rc where the only quoting operator is single quote. Best is to use -s|--protect-args here to have a shell-agnostic solution.
Jul
21
revised How to pass argument with char ( in remote path?
added 100 characters in body
Jul
21
revised How to pass argument with char ( in remote path?
added 100 characters in body
Jul
21
comment How to pass argument with char ( in remote path?
Note that it assumes the login shell of user on server.com is Bourne/csh/fish-like. It won't work if the login shell is rc for instance where backslash is not a quoting character. Best is to use -s|--protect-args instead here.
Jul
21
answered How to pass argument with char ( in remote path?
Jul
21
comment How to deallocate extents of physical volume? lvm, encrypted
The output of lsblk and dmsetup table would help. You mean the PV for the "hostname" VG is on a LUKS-encrypted sda5? Do you mean xen domain instead of xen OS?
Jul
21
revised How to deallocate extents of physical volume? lvm, encrypted
formatting
Jul
21
revised How to search files where two different words exist?
added 67 characters in body
Jul
21
comment Execute only if it is a bash function
Not sure what you mean. declare +X var removes the X attribute to the variable. For F, it doesn't make sense. With my version of bash (4.3.11), it doesn't work at all, it returns true for everything that is a valid variable name, and false for functions that don't have a valid variable name (like :).
Jul
21
revised Execute only if it is a bash function
-F, not +F. Missing --. typo.
Jul
20
comment How can the standard input of one program be passed as an arg to another?
pdftotext like many (but not all) other utilities support - for that as well (which would work even on systems that don't support /dev/stdout, or where /dev/stdout don't work as expected like on Linux where stdout is not a pipe). pdftotext file.pdf - | wc -c
Jul
20
revised Can grep return true/false or are there alternative methods
clarify
Jul
20
revised Convert ls -l output format to chmod format
added 1313 characters in body