10,380 reputation
12654
bio website
location
age
visits member for 2 years, 11 months
seen yesterday

11h
awarded  Good Answer
1d
awarded  Nice Answer
2d
answered How to prevent `mv` from moving a collection of files into a single regular one?
Nov
19
comment unlimited tmpfs
Then your system will seize up. Without either RAM or swap your system is unable to operate. You should prevent that from happening by limiting the size of the tmpfs. As @Mat already mentioned, since you appear to aim for something strange you should describe the problem you're trying to solve.
Nov
19
comment unlimited tmpfs
The system will swap out the data to the disk.
Nov
19
comment unlimited tmpfs
What do you mean by “limited to its small size”? You can make the tmpfs as large as it needs to be, even larger than your RAM, if required.
Oct
23
comment grep on a variable
Since the OP wants to count the number of occurrences of a string you can add a wc to complete the task: grep -o <string> <<< "$variable" | wc -l
Oct
23
answered Simultaneously calculate multiple digests (md5, sha256)?
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
If you're worried about the disk cache, you can read in the file just once: for i in file1 file2 …; do tee < "$i" >(sha256sum) | md5sum ; done Then you have to add additional code to mark the file name, because it is sent as standard input to md5sum and sha256sum.
Oct
23
comment Simultaneously calculate multiple digests (md5, sha256)?
You can just start one instance in the background, then both hashes run in parallel: for i in file1 file2 …; do sha256 "$i"& md5sum "$i"; done
Oct
21
awarded  Enlightened
Oct
21
awarded  Nice Answer
Oct
20
comment Compile Latex source automatically on creation/change
Here's an answer that uses inotify and might solve your problem: Continuously compile/watch source files
Oct
15
comment How do I use vim on the command line to add text to the middle of a file?
You should have a look if sed or awk might not be more suited for this task. Vim was designed for interactive use in contrast to sed and awk. Nonetheless, this can surely be accomplished with vim.
Oct
14
answered Reverse ssh tunnel in config
Oct
10
awarded  Enlightened
Oct
10
awarded  Nice Answer
Oct
7
comment The pool cannot be imported, because is formatted using an incompatible version
Your pool uses a newer version than your current version of ZFS or the pool uses features not available in your ZFS version. zfs upgrade doesn't help, you would need a zfs downgrade which is not implemented (and probably never will). Try using the same software that created the pool (e.g. FreeNAS, SmartOS, FreeBSD, etc.) and you'll have more luck. Or wait until Debian's version gets updated to support your pool's features.
Oct
6
comment Recommended file system for cloning AUR-mirror?
Can you provide a reference for the EXT4 limit of 64k directories? A short test with mkdir {1..70000} seems to work.
Oct
6
awarded  Popular Question