Reputation
3,916
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
7 26
Newest
 Nice Answer
Impact
~162k people reached

1d
comment Select and sort IP address keeping the whole line
in your example field one is add method1 a (for first record).
1d
revised Select and sort IP address keeping the whole line
fix grammar, translate french word et to english and
1d
comment Unable to get actual row counts because of Carriage return values:
@Karthik what are you looking for, amend you question, to be clearer.
1d
comment Unable to get actual row counts because of Carriage return values:
do you need some quotes here?
1d
comment Fastest way to delete duplicates in large wordlist?
Incrementing the value in that array, will be at best O(log n) (if a hashed b-tree), and you do that n times. That is O(n log n). Therefore both are at best O(n log n).
1d
comment Fastest way to delete duplicates in large wordlist?
Big O notation is about what happens when input length approaches infinity: it tells you it an algorithm scales with big input. Some algorithms work better on small input size.
1d
comment echo and command substitution
I can not find the docs, but ls will output same as ls -x when to a tty, and like ls -1 when not. Therefore use ls -x to get what you want.
1d
comment GNU Makefile surprise
If you forget the bit about dummy-files, will the -include do that. You may need to experiment. I recommend you do the first bit of my answer as it will make it simpler. Then you may figure it out, without the recursion. I can not remember what the final answer was when I did it, I no longer have the code.
1d
comment GNU Makefile surprise
It is doing what you asked it to do. You give it a makfile (program) it runs this program.
1d
revised echo and command substitution
added 107 characters in body
1d
answered echo and command substitution
1d
comment What's wrong with these file permissions?
Use groups, do not allow access to all.
1d
comment What's wrong with these file permissions?
The permissions of the directory are not inherited by the files within (unless you use FACL's with default permissions).
1d
comment What's wrong with these file permissions?
Directory permissions are about the directory not the files in it. r read: allow reading of file-name from within the directory, x execute : allow access to files in directory, w write: allow adding and removing of files in directory.
1d
comment What's wrong with these file permissions?
chmod a+X TEMPFILES is safer it will only add execute bits where needed (only for directories and files that already have it, for user).
1d
revised Why doesn't the sudo command need the root password?
added 1 character in body
1d
answered GNU Makefile surprise
Aug
26
comment What's the difference between sudo su vs just su?
@ElectricCoffee Both are unsafe: Having a root shell is unsafe; One slip of the fingers can cause a lot of damage. sudo is more secure that su, as sudo uses users password (note only those with appropriate privileges can use sudo), therefore we do not have to distribute a new root password every time someone leaves the group.
Aug
25
answered What's the difference between sudo su vs just su?
Aug
25
comment How to execute source command from sh file
@fiximan In english grammar the word before but should be followed by a comma (,). The phrase before the comma, should may sense on its own: be a valid sentence.