19,007 reputation
23971
bio website
location United States
age
visits member for 2 years, 11 months
seen 3 hours ago

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


1d
awarded  Nice Answer
Jul
11
comment Symbolic link permission changes
I don't think you can change it. The permissions on a symbolic link don't matter, and are always displayed as 777. Only the permissions on the file it points to matters.
Jul
10
revised How do back-references match in sed?
added 90 characters in body
Jul
10
revised How do back-references match in sed?
added 90 characters in body
Jul
10
comment How do back-references match in sed?
@dpinvidic :1111 and :2222 are very similar. You should be able to easily see that the pattern matches both strings. Your question should not be "why does this pattern match :2222", because that should be obvious (it's almost the same string as :1111), but rather "why does this pattern NOT match :1111 when :1111 comes before :2222". I explained that in my answer. I have edited my answer a bit. Please reread the entire answer carefully.
Jul
10
revised How do back-references match in sed?
added 27 characters in body
Jul
10
revised How do back-references match in sed?
deleted 47 characters in body
Jul
10
reviewed Edit suggested edit on How do back-references match in sed?
Jul
10
revised How do back-references match in sed?
formatting
Jul
10
answered How do back-references match in sed?
Jul
10
comment Copy all files except those that are executable
If you are just trying to rename some files, how is the script you posted relevant? I don't see any mention of program.out in the script anyways.
Jul
2
comment SSH AuthorizedKeysCommand and SELinux
Try the restorecon command from here: wiki.centos.org/HowTos/Network/SecuringSSH
Jul
1
comment How do I “cat and follow” a file?
@Vi. Yes, tail just works on bytes, which means binary files are fine.
Jun
27
comment Change a value in a config file, or add the setting if it doesn't exist?
It is simpler to use if grep -q 'pattern' file instead of if [ $(grep -c ...) -eq 0 ].
Jun
27
reviewed Approve suggested edit on Get the last minute dated lines from list
Jun
27
comment Is getline in awk command safe to use?
I don't think there is anything wrong with awk's getline function per se. It can be a code smell though as it is easily misused, either (a) in un-idiomatic constructions when awk already supports line-by-line pattern-action operation, or (b) in attempting tasks too complicated for awk. I would liken it to the much debated goto statement in C in these respects: potentially useful, easily abused.
Jun
27
revised Make firefox command run downloaded firefox instead of iceweasel
Pruning, clarification
Jun
27
revised Make firefox command run downloaded firefox instead of iceweasel
added 233 characters in body
Jun
27
answered Make firefox command run downloaded firefox instead of iceweasel
Jun
27
comment Make firefox command run downloaded firefox instead of iceweasel
This /usr/bin/firefox script is provided by Debian so that users who try to use firefox get something functionally equivalent instead of a "command not found" error. Since it is provided by Debian, it is generally advised to not edit the file, as there are cleaner and easier ways to go about it. The answer depends on how did you install firefox and where did you install it to?