Reputation
219
Top tag
Next privilege 250 Rep.
View close votes
Badges
2 8
Newest
 Yearling
Impact
~33k people reached

  • 0 posts edited
  • 0 helpful flags
  • 36 votes cast
Feb
4
comment Force Bash 4 'globstar' option to ignore symlinks
Wonder why the downvote....I'm not bashing bash.
Jan
28
asked Why doesn't 'sudo' skip hostname-checking when the command can be run on 'ALL' hosts?
Jan
6
comment What does yes $(yes yes) do?
@strugee You can get "infinity infinite times" using xargs: yes yes | xargs -P 0 yes (or without -P 0 for single-process infinity)
Jan
5
comment Advantages of using set -o vi
I don't work on hundreds of servers, but I do use sshrc to keep my bash setup similar between different computers when sshing. Of course, that doesn't help when I'm using a machine locally that doesn't have my .bashrc stuff on it.
Dec
16
comment Is there ever a good reason to run sudo su?
@terdon Huh, I was unaware of the -u flag for sudo. Semantically, though, I still prefer sudo su -- "as a super user (su-), run (-do) a single command: switch users (su)." Plus it's simpler to type on a standard QWERTY keyboard.
Dec
15
comment Is there ever a good reason to run sudo su?
I assume you're only asking about cases where you want to become the root user, correct? sudo su is extremely useful for becoming a non-root user.
Nov
28
awarded  Yearling
Nov
3
comment What is the difference between tput's 'setf' and 'setaf'?
Actually, that could be just a quirk of my environment; for me the outputs from tput setf 2 and tput setaf 2 are both .[32m.
Nov
3
comment What is the difference between tput's 'setf' and 'setaf'?
tput doesn't appear to actually use the available ANSI color-sequence ranges, though. For any n > 7, tput setaf n has no effect on the text in my terminal.
Aug
27
awarded  Necromancer
Aug
4
comment Force Bash 4 'globstar' option to ignore symlinks
Finally. Thanks for noticing that.
Jun
18
revised Copy specific file type keeping the folder structure
added 5 characters in body
Jun
8
comment Issue an error when using empty shell variables
"It is very long"? You should not be looking for a convenient way to manually perform dangerous operations. Instead, you should create a function, alias, or script to do what you want; in this case, making in an alias from @PSkocik's suggested command will be both safe and convenient.
Jun
5
comment Sometimes-but-not-always tiny font via VNC?
@lcd047 It appears that xdpyinfo tries to use the DISPLAY variable unless you specify -display in the command. My local display, :0, is at 96 dpi, but I expect that's because that's the connected-monitor's native res. (It's not a great monitor.) The vnc server display is also at 96 dpi--is this not determined by the command used to start the server, though?
Jun
5
comment Sometimes-but-not-always tiny font via VNC?
@lcd047 Doesn't that just return the resolution it's running with? What extra information does it provide? I don't think that actually implies anything about what the "correct" resolution should be.
Jun
5
revised Sometimes-but-not-always tiny font via VNC?
added 70 characters in body
Jun
5
asked Sometimes-but-not-always tiny font via VNC?
Jun
5
answered Sometimes-but-not-always tiny font via VNC?
Jun
1
comment Linaro toolchain libstdc++.so.6 missing
... But that's presumably built for x86, not ARM, so I'm surprised that would work... @ChristianStewart are you sure this solved your problem?
Feb
10
comment Why is `[` a shell builtin and `[[` a shell keyword?
As a simple demonstration of one difference between the two: if "[" $x -eq 3 ] works as expected (because Bash looks for the command called [, and this exists), but if "[[" $x -eq 3 ]] does not work (because once again Bash searches for a command of the appropriate name, but there is no [[ command).