Reputation
689
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
5 11
Newest
 Civic Duty
Impact
~21k people reached

  • 0 posts edited
  • 0 helpful flags
  • 306 votes cast
Aug
24
comment Why doesn't the sudo command need the root password?
I haven't explored this, but I understand one of the features of sudo that su does not have is that it (is able to?) keep a log of what commands were run by which user to make it easier to trace problems back to their sources. I just looked on my kubuntu system and do not see such a log, so maybe this is not a default behavior.
Aug
12
comment How does Linux choose which application to open a file?
+1 for mentioning the file utility. It's very handy when things don't make sense.
Aug
6
comment How to write bash script to configure my displays when HDMI is plugged in or unplugged
I just upgraded from kubuntu 12.04 to 14.04.1. I was waiting to comment because I was hoping that would help, but nothing has changed. I still have to switch audio manually. I think I'll open a new question on SE Ask Ubuntu. I don't think any audio switches. I just tried vlc, dragonplayer, and amarok.
Aug
6
comment How to write bash script to configure my displays when HDMI is plugged in or unplugged
I just upgraded from kubuntu 12.04 to 14.04.1. I was waiting to comment because I was hoping that would help, but nothing has changed. I still have to switch audio manually. I think I'll open a new question on SE Ask Ubuntu. I don't think any audio switches. I just tried vlc, dragonplayer, and amarok.
Aug
3
comment How to delete this undeletable directory?
+1 for persistence! And for thorough documentation of everything you tried. We don't usually get to see what didn't work, but it's often very valuable to know.
Jul
18
comment Is it possible to define a command in bash?
Not an expert at this, but shouldn't something like this (hopefully, something more useful) be put in /usr/local/bin?
Jun
14
comment How is file owner and group remembered for an external drive?
+1 for the chmod technique I hadn't thought of - in addition to being correct otherwise.
Jun
1
comment “tree” command output with “pure” (7-bit) ASCII output
Thanks for the question. I needed this so I could pipe the output of tree into enscript to get contol of the print formatting (using dprint/dprintm from my duplexpr package sourceforge.net/projects/duplexpr/.)
May
25
comment An alternative to `xdotool type`
Since you were using xdotool, you are in a gui, but it would help to know what distro and desktop environments you are using.
May
24
comment Why does selecting text only “copy” it (as in copy and paste) circumstantially?
Not an answer, but using Ctrl-C and Ctrl-V will do as a workaround in many situations (except in a terminal like konsole where Ctrl-Shift-C and Ctrl-Shift-V are used.)
May
16
comment Is it OK to use “.” to run files instead of source - in .bashrc in Ubuntu and OS X?
Although this answer explains why using . is usually "better" than using source, as @abonet says, source is a lot easier to search for. Since periods are punctuation in many languages, it's easy for the eye to just skip over them. That's why I prefer to use source.
May
16
comment Automatically printing images with added captions
That doesn't help me with my current task, but it's lovely as a quick viewer in a directory. I'm not sure how I would use the saved arguments from history though.
May
14
comment Automatically printing images with added captions
Never saw that one before (as usual!). It's kind of awkward to use, but it does work without any scripting. I can tell it to generate an index print jpeg with file name captions and then print that. It has a lot of options, so it may take awhile to figure out the best ones. My distro had an old version. The new one was easy to compile and install. Thanks for answering such an old question!
May
6
comment How can force my screen to unblank?
No idea, but I assume you've gone into your power management setup and turned off the scenarios that turn the screen off after a period of time of inactivity to save power.
Mar
9
comment Quoting within $(command substitution) in Bash
Yes. What are we going to do with those "other people"? <G>
Mar
8
comment Quoting within $(command substitution) in Bash
This is a good question, but given all the issues with embedded blanks, why would you make life hard on yourself by using them on purpose?
Feb
3
comment How to access Win7 on a dual boot machine?
You might want to consider trying grub-customizer. It's a gui app that does most of this for you. grub2 is a bit harder to hand edit than grub was. It constructs a bunch of entries on the fly when you configure it. launchpad.net/~danielrichter2007/+archive/grub-customizer
Jan
20
comment What are the legitimate uses of the `touch` command?
+1 for all the stuff I learned from reading all the answers.
Jan
20
comment What are the legitimate uses of the `touch` command?
1) If I see touch in a script, I don't have to think about shell redirection, etc.. It expresses intent more clearly IMHO. 2) touch only updates the time stamp if a file already exists. This could be used as a quick way to record an event time while leaving the contents of the file available for other uses.
Dec
20
comment Root access that can't change root password?
How did you do that cool reference to a comment? I looked at the source for your answer and saw () surrounding it. Cool secret hat!