Reputation
14,833
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
3 39 74
Newest
 Fanatic
Impact
~1.4m people reached

May
2
comment Memory not used any more but still allocated
Could you please provide free output in a couple of minutes after the moment when Zimbra is stopped and system is still using a log of memory?
Apr
24
comment Schedule on boot persistent reverse SSH tunnel on Mac OSX
are you sure your script is launched within the correct user? ssh keys and connection settings are stored in user home dir and may not be available in user who is used for launchctl/launchd.
Apr
24
comment Find position of matched word in a line in bash (not position of character)
yep, you are write. sorry I read the question a bit inattentively. the answer is updated.
Mar
31
comment Replace using VIM, reuse part of the search pattern
@yunfeng, it should with curly braces, cause this is exactly what OP whants. please read the question more carefully.
Mar
28
comment redhat + how to download rpm from red-hat site
yes, it should be so. I've updated the answer.
Mar
14
comment Different output of `find | xargs ls` for the same command on different Ubuntu versions
@AdamMichalik , can you try to execute find | xargs construction, but specify full path to binaries? e.g. /usr/bin/find ... | /usr/bin/xargs -0 ls?
Feb
6
comment downloading images from webpage with different links
@privetDruzia regex is case sensitive. are you sure it's not your case?
Feb
5
comment Command to detect if internet connection is wired or wireless
@Marcel it is because grep returns 2 lines and construction in brackets doesn't work in correct way. probably it returned wired and you're just lucky to use wired connection now. Did you try to switch to wireless and run the command?
Feb
5
comment Command to detect if internet connection is wired or wireless
@Costas, it will not work. e.g. I have 2 default.*dev rows in ip r l on my laptop which apparantely breaks your command. and also interface can be renamed (eg. I had default eht3 as wireless interface on my dell laptop) which will break the logic.
Jan
24
comment Problem with ssh connection
Are you able to try on the remote machine connect via ssh to your_user@localhost? Does it work?
Jan
23
comment How to move (image) files to other directories based on files' dates
By "image date" you mean information from EXIF or file modification timestamp?
Jan
22
comment evaluation of arithmetic expansion in bash
Are you sure you're running bash? I tried it in bash (4.3), it works as expected (echo $i in the end returns 6). Though in sh it works exactly as in your example.
Jan
22
comment How can I filter out current directory ('.') in bash?
! means not. therefore find . -type f ! -iname "*.flac" means find all files with name not matching to .flac (i before name means case insensitive)
Jan
22
comment How can I filter out current directory ('.') in bash?
well, maybe you're right. thx for comment. answer is updated.
Jan
22
comment Replace non-ASCII characters with space in a file
are sed and operation systems in test and dev envs identical?
Jan
21
comment Replace non-ASCII characters with space in a file
I don't think you can easily increase processing time. sed -i copies original file to a new one and then simply replaces the original one. this means the whole process takes approximately the same time as simple copy. 12 files with average size 3GB (from 1 to 6 :)) will make 36GB to copy. So it's fine to take about 20 minutes.
Jan
16
comment How to regenerate 70-persistent-net.rules without reboot?
--action=changed is the default value. no need to specify it. did you try --action=add? are you running the system as VM (sometimes there are rules to skip a lot of things there)? did you check generation rules in /lib/udev/rules.d/ ?
Sep
17
comment apt-get via ssh-tunnel if only port 22 is allowed
compression helps on slow channels. though it's not necessary here. I use ctrl+c to close the connection.
Jun
15
comment Exclude user from OOM killer in unix
Good point. Updated. Thx.
Apr
28
comment ssh secure shell: “connection closed by remote host”, not acquiring the key
also in addition to @Archemar points, may be something is wrong with your remote user .profile or .bash/ksh/whtvershell_rc files. try to login as ssh -t exec sh to avoid .profile execution and verify that the problem is not here. also sometimes that happens when user exceeds disk space quotas limits. -t exec sh should also help here.