20,676 reputation
34577
bio website
location United States
age
visits member for 3 years, 4 months
seen 4 hours ago

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


Feb
10
comment How can I remove GRUB2 entries in Fedora 16?
If your distribution auto generates the grub config, the easiest thing to do is to uninstall the older kernels.
Feb
10
comment Wake-on-LAN with BusyBox?
wakeonlan, although it seems to require perl which probably isn't in your busybox.
Feb
10
comment ping -c1, wait for all responses from broadcast
@houbysoft That's correct, -W is not -w: it specifies a timeout and exits with the first packet or when the timeout is reached.
Feb
10
comment ping -c1, wait for all responses from broadcast
Some versions of ping have a -w option to specify a length of time to wait, regardless of how many reply packets have been received.
Feb
10
comment Script to create files in a template
Looks like @HaiVu posted an answer already, so need for me to make another :)
Feb
10
comment Script to create files in a template
It'd probably be easier to save your templates in some directory site_template/, and just do a recursive copy from the template folder to the new site folder, followed by whatever cd and vim commands you want.
Feb
10
comment Where does the -i option in sed store the lines matching a regex?
In general, sed -i is non-standard so if in-place file modification is desired, ed(1) is recommended over sed -i instead.
Feb
9
comment grep: Trailing backslash
This is a rather misleading oversimplification. grep only requires 1 backslash to escape another backslash, but the shell also requires backslashes to be quoted. Double quotes (") do NOT quote backslashes, but backslash does, which is why the double quotes in your example do nothing and the 4 backslashes are needed instead.
Feb
9
comment I can't delete a file that I have write permissions for as a group member
@JörgWMittag that analogy made me chuckle, but it does effectively explain the concept. I might borrow it in the future :)
Feb
9
comment I would like to grep all files except some file types?
This doesn't answer the question: the OP is trying to run grep on files, not get a list of files. ls should never be a starting point for any script that deals with lists of files.
Feb
9
comment Linux: Kill process based on arguments
@MichaelMrozek ok nvm then :) I wonder if unix.SE has a higher proportion of zsh users than elsewhere - I only seem to find zsh users here.
Feb
9
comment removing or clearing stack of popd/pushd paths
BTW, the complete bash manual is over at gnu.org. If you use the all on one page version, it may be easier to find stuff there.
Feb
9
comment How to expand tabs based on content?
The Debian version of column(1) appears to have been patched with an additional -n flag that addresses this (runs of consecutive column delimiters). If you don't have that, I've edited an alternate approach into my answer.
Feb
9
comment How to expand tabs based on content?
Just a question: do you have tab characters in your files or literal \t's?
Feb
8
comment Did all of the Requests for Comments directly affect the design of Unix networks?
RFC's are mostly about networking and the Internet, which is only one part of and applies to most OS's. If you're going to read RFC's, stick with the standard / standards track ones. For more about Unix and Linux standards, look into publications like POSIX or other ones mentioned in the standards(7) man page if your system has it. Since POSIX is implementation-driven, the rationale sections would probably be of interest to you.
Feb
8
comment Did all of the Requests for Comments directly affect the design of Unix networks?
"I want to more about Linux" -- this reminds me of the time "I accidentally 93 MB of rar files" :). You may want to retrieve the verb that went missing.
Feb
8
comment Quick directory navigation in the terminal
It should be mentioned that in general, you'll want the first entry in $CDPATH to be . (an explicitly entry, i.e. : also works). Otherwise you'll end up with the odd behavior where CDPATH dirs take precedence over directories in the current working directory, which you probably do not want.
Feb
7
comment Windows shell Escape key (delete whole line) equivalent in Bash
A while back I posted a list of useful readline keyboard shortcuts on superuser. You may find them useful as well. (Readline is the library that bash uses for line-editing.)
Feb
7
comment Windows shell Escape key (delete whole line) equivalent in Bash
@Blrfl to extend your comment, most of these keybindings have been abstracted into the readline library, which a large number commandline programs use and which is why they all have similar line editing keys.
Feb
7
comment In Bash, when to alias, when to script, and when to write a function?
Take a look at my answer as well for more concrete differences between functions and scripts. Basically, functions and aliases are for frequently used simple things that you want to be stored in memory, while scripts are for more rarely used commands that you don't mind reading from disk every time. Whether or not a new forked process is needed also makes a slight difference if you run a command several thousand times in a for loop.