Where's my disk space?
Why do du and df return different values?
We seem to generally close these Qs as dupes of this one:
Why is there a discrepancy in disk usage reported by df and du?
For example these:
`du -sh` reports different used size than `df -h`
df vs. du: why so much difference?
I suggest we close as dupes of this one instead, I feel the ...
Unilaterally closing a question as a duplicate of one you asked and answered yourself is a bit iffy. Doing it after a discussion in chat is perfectly fine. I agree with your judgement that it is a duplicate. Posting a new question was warranted because the original question focused on a special case and it makes sense to have a more general canonical ...
It would be nice if we had a positive resource to point people at, that showed an alternative to installing Kali on bare metal. I think installing Kali on bare metal tends to give users the wrong idea. And then we get questions about e.g. botched updates and broken sound output (!) for Kali; lots of questions that we're not really interested in. (...
Compiled list of questions
This list is compiled mostly from the answers below and some of my own, and is intended to be a quick reference for these questions.
where to set environmental variables
How to permanently set environmental variables
script runs from command line but not cron
why you must quote - Gilles
why you must quote - Stephane
I am not quite sure the problem of dealing directly/doing passthrough of USB Wifi dongles is quite specific to Kali, it affects any kind of VM; nonetheless, we do indeed get a lot of Kali questions on trying to use external WiFi devices on Kali VMs.
However, in Kali, OPs are more interested in using a specific external WiFi chipset for hacking, and those ...
I'm going to try and answer in a general way such that this could itself be a canonical Q&A, if you had asked "How can we create generalized, canonical questions out of a series of localized ones?"
Can we have a single, canonical question...
Some people write their own Q&A when they notice something that hasn't been covered, which is great. I ...
Search for files satisfying a specific criterion. E.g. file type.
locate vs find: usage, pros and cons of each other
Locating files and displaying their owner
How to find inode number using “find” command?
Getting all files that have been modified on a specific date
List all files containing a specific string
Script to find files with a specific extension ...
I don't see much point. “Canonical” isn't so much of a binary thing: there are questions written to be canonical, but also naturally-arising questions with widely-applicable answers. What I prefer, both as a categorizer of canonical questions and a poster of canonical question links, is to record canonical questions in the applicable tag wiki(s). Linking ...
Searching and replacing strings in files.
There are a fair number of questions asked about this with variations, and it would be good if there was a meta answer pointing to the different variations.
Search and replacing a string on specific file extensions
Replacing string based on line number
Recursively replace string in files
Search and replace full line ...
Having a reference question with a solid answer is always a good thing.
The reference question should be clearly linked from the relevant tag wiki. That's how we can agree to use it as a duplicate target.
That doesn't mean that every vaguely related question is a duplicate! For example How to create a customized distribution based on Debian? is not about ...
How can I fix/install/reinstall grub?
I just edited my answer to make it more generic but it might be a good idea to modify the title if we're going to use this one.
Transform/Extract info from a set of CSV files
Is there a robust command line tool for processing csv files?
An additional question/answer pair could be created.
The answer(s) should include regex/sed, awk based for those simpler CSVs, as well as Perl/Python based for when simple does not work.
A few good small example CSVs in the text that clearly ...
Should we close those other questions as a duplicate of mine or should we instead choose one of the existing ones, broaden it and I should repost my answer there?
IMHO, close others as a dupe of yours. Broadening existing questions risks rendering many answers irrelevant.
What do you think is the best way of dealing with similar cases in the future?
I am not commenting on whether the original question should be closed or left open. But I am a strong supporter of canonical question/answers for our community.
It is worth noting that if a question gets 1k views in 2 days, it obviously means that the question has a much more wider audience and a good reach. So, in this context, if it attracts more views, ...
My script runs from the commandline, but not from cron
I was sure I had answered this before but could not find it or another generic answer (but I probably overlooked this).
Not able to run shell script using cron
Using packages from more recent versions of a OS on earlier versions of that OS.
This question is probably most relevant on binary-based OSs like Debian/Fedora, and less relevant for source-based OSs like Gentoo/FreeBSD.
In these cases, one could give some hints about backporting, perhaps? For Debian, talk about backports, for ubuntu, PPAs, and so forth. ...
How does perl regexp and bash pattern work ?
This would need a basic description of different specific symbols and would need to explain the differences between the two - mode pattern vs perl regexp. This question could be linked with tag related to perl/sed/string replacement...
That's one of the most important things to master as it is used in almost any ...
Handling filenames with space and unusual characters
So many answers can be simplified and easier understood, when these edge cases are omitted. So the question Why does my shell script choke on whitespace or other special characters? provides a canonical method to handle filenames with uncommon characters. #()%^*space* *newline* ;'@:<>,.
I have no problem with closing duplicates; the more vigorously it is done now, the better the long term prospects of the wiki in maintaining the interest of the community that has coalesced around it. Anyone really want to see another bulk rename question?
With respect to actions characterised as "unilateral"; the simplest and most transparent ...
It doesn't seem like much of a problem to me. I like the first answer you linked to, from Gilles; it looks already semi-canonical, though it has other info pertinent to that specific question mixed in with general data about command substitution.
Command substitution is more of a common solution than a common question; often people who ask questions which ...
Please go for it!
Typically such questions asking for an overview of a topic are mostly useful to serve as references in other answers. If you find yourself explaining the same general principles over and over again, it's convenient to have a reference answer with generic explanations. Then, when someone asks a general question “what is X?”, you can close ...