5,628 reputation
520
bio website timkennedy.net
location Virginia
age 42
visits member for 3 years, 2 months
seen Apr 10 at 16:23
Father, Husband, SysAdmin, Brother, Son. In reverse chronological order.

Oct
25
comment Switch VI to use backspace key instead of Control+H for backspace?
posted below, with the entries to map the arrow keys as a bonus. :)
Oct
25
answered Switch VI to use backspace key instead of Control+H for backspace?
Oct
25
comment Switch VI to use backspace key instead of Control+H for backspace?
try setting :map! ^? ^H in your .exrc file. note that ^? is not simply a ^ (shift+6) and a question mark, it's character created by pressing control+v control+shift+backspace, and ^H is created by pressing control+v control+h.
Oct
25
comment For loops in zsh and bash
@intrpc both are zsh specific. zsh was specifically designed to support both bourne, korn, and c-shell syntax, as it's a hybrid of all three.
Oct
25
comment For loops in zsh and bash
for the example that "doesn't work", which is a csh style for loop, you're missing the parentheses. for x ($d); do print $x; done will work, and it will match the first syntax that you have enumerated at the beginning of your question.
Oct
25
comment How to keep a line from being remembered in the history?
please clarify what you mean by "single line", "command", and "single command"? The better you phrase your question, the more likely you will be to get a good answer. as it is, this question is somewhat vague.
Oct
24
comment what level of the network stack does tcpdump get its info from?
the pcap man page that i linked above speaks more about network interfaces. tcpdump only presents the data. it's libpcap that captures the data, and interfaces to the network devices.
Oct
24
comment Switch VI to use backspace key instead of Control+H for backspace?
check your terminal settings. vi will use your TERM type, and use the termcap database to determine what the default capabilities of your terminal are. If you are using putty, you can change edit the ssh profile for that server and set it to send Control-? for backspace, instead of Control-H.
Oct
24
answered How to install packages to a custom location in centos6
Oct
22
awarded  Nice Answer
Oct
22
answered what level of the network stack does tcpdump get its info from?
Oct
22
comment Match regex in ksh
100% agreed. i try to always use scripts/programs/perl modules that are installed by default. keeps things portable.
Oct
22
comment Combination of ls, xargs and zcat leads to duplicate file name suffixes?
the zcat that is part of the gzip package is a binary file, not a shell script. the binary zcat is functionally identical to gunzip -c. On systems that have a compress package installed, in there is already a zcat program that reads .Z files, so the gzip edition of zcat is installed as gzcat (which you noted below you don't have. can you modify your script to use ls -t1 ssl-access*.gz | xargs -n 1 gunzip -c ?
Oct
22
answered How can I check if swap is active from the command line?
Oct
20
answered process works without ampersand but doesn't work with ampersand
Oct
20
awarded  Citizen Patrol
Oct
20
comment Slow performance when copying files to and from USB devices
check that the USB ports are USB 2.0 capable. some USB ports, particularly on the front of desktops used to be USB 1.0 only. Also check that your BIOS settings are optimal for USB performance. There may be some USB speed settings, and/or USB legacy settings that may affect your performance.
Oct
20
awarded  Critic
Oct
20
comment Match regex in ksh
sometimes Solaris will have GNU Egrep installed as well, as gegrep. Either from the Companion CD, or from SunFreeWare, and usually in /opt/sfw/bin or /usr/local/bin.
Oct
19
comment Screen: Resuming most recent screen? Making selection easier?
i'm actually using this myself now. :) Thanks for asking this question.