Top new questions this week:
|
When you're editing a file in vim, it generates a swapfile with the same name as your current file, but with a .swp extension.
If .swp is already taken, then it generates one a .swo one. If that's ...
|
Each shell has an environment variable $HOME set (ex: /Users/lotolo). If I'm under csh I can unsetenv HOME and still if I do cd I'll be in my home. I've tested this also on bash (unset HOME) and ...
|
As I have a Hyper-Threading capable CPU, I wonder, is it a bad idea to assign more virtual CPU cores than number of physical CPU cores as the following warning suggests:
Transcript:
More ...
|
At first, the question seems to be a little bit silly/confusing as the OS does the job of managing process execution.
However, I want to measure how much some processes are CPU/IO-bound and I feel ...
|
I have a large file and I would like print from each sequential 50 lines , the 15th and 25th lines.
sed -n '15,25p' inputfile
How to modify this command to print only lines 15 and 25 and to loop ...
|
I own a Debian laptop with KDE (although, I have had this problem with other desktop environments too). Occasionally, after I close and re-open my laptop, text starts to appear like this:
The text ...
|
I have a textfile like:
Adam
Bob
Cevin
David
Evan
If I "paste - -" it, I get:
Adam Bob
Cevin David
Evan
But I need that the lower half will be added as a new column:
Adam David
Bob Evan
...
|
Greatest hits from previous weeks:
|
When administering Linux systems I often find myself struggling to track down the culprit after a partition goes full. I normally use du / | sort -nr but on a large filesystem this takes a long time ...
|
What's the most concise way to resolve a hostname to an IP address in a Bash script? I'm using Arch Linux.
|
Can you answer these?
|
I would like to get a list of all the places in a large file where the keys decrease from a previous line.
I can check if the file is sorted using sort:
sort -cns -k1.14,1.15 -k1.1,1.10 file.txt
...
|
I've added keyboard shortcuts to set the global keyboard layout, but how do I set it for a single application? The reason I'd like to do this is that I'm used to QWERTY for gaming, and I'd rather not ...
|
Environment:
debian jessie inside a virtualbox VM
using root account in guest and in containers
lxc container inside the VM
lxc container root file system on btrfs
works fine when running in the VM ...
|