Reputation
20,997
Next tag badge:
88/100 score
30/20 answers
Badges
3 37 75
Newest
 Copy Editor
Impact
~876k people reached

5h
comment Perl package not found with apt
Hmm. OK. I'm not sure where this is needed but will it let you reinstall it? Try sudo apt-get install --reinstall libxml-libxml-perl. Also, please don't add extra information in comments. When someone asks you for more info, edit your question and include it there. Comments can be deleted without warning and are much harder to read. Once you have edited, you can leave a comment telling the commenter that you have done so (ping them by name: @terdon).
10h
comment Perl package not found with apt
Does sudo dpkg-reconfigure libxml-libxml-perl help? Also, you can get errpr messages in English by running the command with LC_ALL=C. For example: LC_ALL=C sudo apt-get install gedit.
16h
comment How move the biggest file in each subdirectory to current directory?
@redanimalwar of course not, I doubt anyone would create one on purpose. On the other hand, you should never underestimate the ability of random users to screw up a system and it is good practice to always make your scripts robust and capable of dealing with all possible file names.
1d
comment How move the biggest file in each subdirectory to current directory?
@redanimalwar the latter. Try touch foo$'\n'bar. The only characters not allowed in file names are / and \0.
1d
comment How move the biggest file in each subdirectory to current directory?
@Rmano (scratch the last version if you saw it), yes, you're quite right.
1d
comment How move the biggest file in each subdirectory to current directory?
@Rmano because that will break if the file names contain spaces, tabs, newlines, shell glob characters or backslashes. find is a much better approach.
1d
comment Clickable file that adds code in terminal and runs it automatically?
@heemayl that won't work, the sudo needs a password. Your answer is, of course, the right way.
1d
comment Lastlog grows to 4.2G after SSH logout
What is printed? It sounds like you have an error that is producing a lot of output. Have you actually checked the logs?
1d
comment antlr4 alias not persisting
@ForceGaia nobody says not to edit .bashrc. If anyone does, they don't know what they're talking about. .profile is not read by most shells (for more detail than you probably want, see here), the correct file to edit is ~/.bashrc.
1d
comment Unable to login after playing with rc.local file
Have you undone your changes? Did you edit /etc/init.d/rc.local or /etc/rc.local?
1d
comment How to open in terminal directory in opened in the most current nautilius window?
Yes, but I doubt that is possible. You would have to export the directory nautilus is looking at as an environmental variable. Finder is much more integrated into OSX than nautilus is in Unity so I'm not sure that would be possible without hacking nautilus's code. Won't this do as a workaround?
1d
comment How to open in terminal directory in opened in the most current nautilius window?
Are you looking for this?
1d
comment sudo password in terminal not accepted
What keyboard layout are you using? What language? Try echo "password" | sudo -S whoami and add the output to your question. Does that work? Does it print root? Make sure that password is your actual password.
Apr
30
comment How can I extract text between parentheses containing a specific word?
@user264974 I take that back. I hadn't realized that sed can deal with non-grouping parentheses but apparently it can.
Apr
30
comment How can I extract text between parentheses containing a specific word?
@A.B. the awk call was wrong, you need awk -f to run the script. Try the updated version.
Apr
29
comment How can I extract text between parentheses containing a specific word?
@user264974 Perl was preferred first and foremost because I prefer Perl, so it's much easier for me. That said, yes, while you could play around with the hold space and try to match the different strings in sed, that would make for a very long and cryptic sed command. Awk would be even worse since it really is not designed for this kind of thing. It wants its data in columns.
Apr
29
comment How can I extract text between parentheses containing a specific word?
I'm not sure I understand. Do you want to keep all text that is not in parentheses and, of the strings in parentheses, keep only those that start with blat or bar? What if blat or bar is somewhere else in the parenthesis? Can there be spaces between the parentheses and the strings?
Apr
29
comment Is running Burg on 15.04 possible?
Please edit your question and explain what you've tried and how it failed. That way, we won't be suggesting the same solutions.
Apr
29
comment How to show the list of shortcuts produced by super key using command line
Why would there be one? That's an internal Unity feature, I doubt there is any CLI command behind it.
Apr
29
comment Is there any specific reason why Gnome Terminal Emulator uses Shift+Ctl+V and not the typical Ctrl+V?
The easiest way, of course, is to just select the text (which copies it automatically) and then middle-click to paste.