Reputation
1,017
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
10 16
Newest
 Guru
Impact
~243k people reached

Apr
27
comment Is there a way to restore Nautilus' split screen (F3) feature?
Another argument against using two windows: Nautilus in 14.04 has problems displaying the "File Operation" progress dialog when the operation is performed between two windows.
Apr
22
comment How do I install 32-bit libraries when they keep having uninstallable dependencies?
On updated 64-bit Ubuntu 14.04.4 I had to do this instead: apt-get download overlay-scrollbar-gtk2:i386 ; sudo dpkg --force-depends -i overlay-scrollbar-gtk2_*_i386.deb.
Feb
26
awarded  Guru
Feb
10
comment Is there a way to create multiple directories at once with mkdir?
It is worth mentioning that brace expansion in not defined in the POSIX shell: pubs.opengroup.org/onlinepubs/9699919799/utilities/… For example it will not work in dash which is the default /bin/sh on Ubuntu.
Jan
20
comment Adobe Reader for Linux discontinued
The latest version - Adobe Reader 9.5.5 is still available on the Adobe's servers through a direct link: ardownload.adobe.com/pub/adobe/reader/unix/9.x/9.5.5/enu/…
Nov
30
comment List all recently changed files (recursive)
Also it is more appropriate to use find ... -exec ls -l {} + which executes ls -l much more efficiently - fewer times with multiple parameters. This is a standard option of find specified by POSIX.
Nov
29
comment How to save brightness settings?
The directory with the brightness setting could have a different name. In my case (ThinkPad T540p, Ubuntu 14.04.3) it is: /sys/class/backlight/intel_backlight/.
Nov
23
comment How do I find out which repository a package comes from?
This is the correct answer! The commands in the answer by mac9416 need tedious interpretation + guessing based on their output. For more information about apt-cache policy see also superuser.com/a/236605/61370
Nov
12
comment What's the deal with the “.” and “..” in the directories?
@spectras: Thank you! I originally thought that but thomasrutter's answer was so convincing :) --- I have corrected my reply and I added demonstration that in ext4 . and .. are real directory entries stored in the file system.
Nov
12
revised What's the deal with the “.” and “..” in the directories?
corrected mistakes and expanded
Nov
11
answered What's the deal with the “.” and “..” in the directories?
Oct
26
comment What is the 'ptrace_scope' workaround for Wine programs and are there any risks?
Here is a description linked from a PlayOnLinux pop-up error message which aborts installation of .Net 4.5 unless the ptrace_scope is set to 0: playonlinux.com/en/…
Oct
26
comment What is the 'ptrace_scope' workaround for Wine programs and are there any risks?
I do not think that sudo setcap cap_sys_ptrace=eip ... is more secure because according to the description (man capabilities, capability.h) this capability allows the program to trace any process (like if it was running with root privileges) not just processes of the same user. Please correct me if I am wrong.
Oct
23
awarded  Nice Question
Oct
23
comment How can I use the grep command to extract line which is the next line of greping line?
+1 for POSIX-compliant solutions.
Oct
23
comment How can I use the grep command to extract line which is the next line of greping line?
Also please note that neither -P nor -A are options specified by POSIX (pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html) so they may not work on some Unix-like systems.
Oct
23
comment How can I use the grep command to extract line which is the next line of greping line?
The second filter (instead of grep -v) could be: tail -n+2 (from the second line to the end) or tail -n1 (last line). Which is 1. simpler, 2. without need to repeat the regex, 3. a little bit faster
Oct
22
comment Adding a number to a text file with a loop
I noticed just one considerable disadvantage: multiple values on a single line will result in multiple lines on the output. Try: echo 1 2 3 | xargs printf "%.2d\n". This can be somehow resolved using -d\\n otption to xargs.
Oct
22
comment Adding a number to a text file with a loop
I really like this solution. 1. It uses xargs which is often being forgotten. 2. It takes advantage of the possibility of printf to format multiple arguments using a single formatting expression. 3. printf allows it to accept multiple input formats of numbers like for example hexadecimal 0x1a. 4. printf tests the input to be a number and sensibly reports problems to stderr.
Oct
21
answered Adding a number to a text file with a loop