Reputation
154,892
Next tag badge:
768/1000 score
208/200 answers
Badges
23 238 422
Newest
 Good Answer
Impact
~8.4m people reached

Mar
14
revised What is the difference between virbr# and vnet#?
added 42 characters in body
Mar
13
awarded  Good Answer
Mar
12
revised Create a test file with lots of zero bytes
added 139 characters in body
Mar
12
revised How to create a large file in UNIX?
added 1 character in body
Mar
12
comment How to create a large file in UNIX?
@robertotomás, why would it be typical or lazy? It's longer to type than the truncate or fallocate or dd seek=xxx ones, so less lazy in terms of human effort and also a lot less lazy in terms of computer effort.
Mar
12
comment tput setaf color table? How to determine color codes?
Note that at least in my version of xterm the \e[0;%s8;2;%s;%s;%sm doesn't give me 16M colours, just the colour in the 240 colour palette that's closest to the requested rgb.
Mar
12
revised tput setaf color table? How to determine color codes?
added 88 characters in body
Mar
12
comment How to create a large file in UNIX?
@robertotomás, again, if it's to create a large file filled with zeroes, see Create a test file with lots of zero bytes linked in the answer, where dd if=/dev/zero is the least efficient.
Mar
12
comment How to create a large file in UNIX?
@tac, you mean if the file is 5TB large, type is going to load it whole in memory before display? After all it's Microsoft, why would I be surprised...
Mar
12
comment tput setaf color table? How to determine color codes?
@Gilles, you want the query to be sent via the prompt after the terminal discipline echo is disabled. See edit.
Mar
12
revised tput setaf color table? How to determine color codes?
revert Gilles' edit, add equivalent bash variant
Mar
12
awarded  Nice Answer
Mar
12
awarded  rm
Mar
11
awarded  Nice Answer
Mar
11
answered Strings - Extract File Version Recursive
Mar
11
answered tput setaf color table? How to determine color codes?
Mar
11
comment how to cut fields of a directory name?
Note that strickly speaking, cut -d _ -f3 <<< "$dir" returns the 3rd field of every line of $dir not the third field in $dir (which would make a different would $dir contain a newline character).
Mar
11
comment How can I escape special characters in a sed “sub-command”?
A common problem with ex in scripts is that if there's a problem, like the first file has fewer than 2 lines, or one of the file is not readable or writable, ex will end up hanging waiting for user input. The error handling with ed or ex is generally tricky.
Mar
11
revised How to create a large file in UNIX?
added 97 characters in body
Mar
11
comment How to create a large file in UNIX?
@DougO'Neal, see Create a test file with lots of zero bytes