Posts by r~~
In Bash, you could use the $COLUMNS environment variable to detect the width of your terminal and truncate each line to that length in your sed script. Something like this should work: sed "s/^\(....
Is this what you want? Edit: Credit to Kamil Maciorowski for catching an unsafe interpolation in the previous draft; it will work for non-adversarial inputs but this newer version is safer and a ...
I wasn't there two decades ago when the spec was first being developed, but based on other parts of the spec they're clearly attempting to establish a parallel with /usr/local. The intended minimal...
That bar is part of GNOME Shell, and user applications don't get to mess around with the shell. You need to look into writing shell extensions to modify that in a general way. One common thing for...
ERR is not a signal, so there is no signal code to get. From man bash: If a sigspec is ERR, the command arg is executed whenever a pipeline (which may consist of a single simple command), a list...
You might be looking for the Magic SysRq feature, which has many functions. One of the most useful is Alt+SysRq+f, which triggers the kernel's out-of-memory process killer. On Ubuntu, you may need...
You can fake out git as long as you have some empty Git repository available somewhere. git --git-dir=path-to-empty-repo/.git \ ls-files --others --exclude-standard
You can't, without patching readline. What counts as a word character is hard-coded in the readline library, as of this writing. See: https://git.savannah.gnu.org/cgit/readline.git/tree/vi_mode...
Answering your question as written, this is a hardware-specific question. Since solid-state storage chips typically keep the details of which cells are being used to write data hidden from the OS, ...
- ← Previous
- 1
- 2
- Next →
