Skip to main content
12 events
when toggle format what by license comment
Apr 26, 2023 at 20:42 comment added Martin Braun @ still_dreaming_1 Yes, this answer confuses things when thinking the GNU way: When speaking about links "target" is the item that the link points to (based on GNU doc), so the first argument is the "target". Think about it in this way: ln -s $HOME creates a link to your home directory in the current directory. So optional second parameter defines where the link will be created at. I argue this answer is wrong, although it was made with the right intention in mind. It's a pitfall to compare a linked item to a copied item, because it makes thinks unclear depending how to think about "target".
Mar 23, 2021 at 21:14 comment added DivergentSpaceTimeWanderer Answers like this are why I waste so much time looking this up over and over again. The term "source" still leaves me questioning which one is which. Which one is just a link, and which one is the real thing being linked to?
Sep 17, 2019 at 15:34 comment added OrangeDog @s1lv3r the arguments to tar are not positional. The path to the archive file is the parameter to the f(ile) option.
Sep 17, 2019 at 13:34 comment added s1lv3r Too bad this isn't universal ... if you just remember "The source needs to come first", when in a hurry, you'll easily go for: tar cvzf myImportantFileWitoutABackup.txt backup.tgz. And gone it is .... happened to me more than once. :-(
Sep 17, 2019 at 12:39 comment added user @ArkadiuszDrabczyk On the other hand, something like memcpy(dest,src,n); maps very well to dest = src;. In other words, set (the first n bytes of) dest equal to (the first n bytes of) src.
Sep 15, 2019 at 16:03 comment added Hans-Martin Mosner @ilkkachu You're right. No rule without exception :-)
Sep 15, 2019 at 15:35 comment added ilkkachu @Hans-MartinMosner, except that when you create a symbolic link, it doesn't have to be an existing file...
Sep 15, 2019 at 13:53 comment added Arkadiusz Drabczyk It's a shame that memcpy, strcpy etc. work the other way around.
Sep 15, 2019 at 11:49 history edited Hermann CC BY-SA 4.0
fixed typo
Sep 15, 2019 at 7:44 comment added Hans-Martin Mosner ...and like mv. mv, cp and ln all take an existing file as first argument, and the intended destination file or directory name as second argument.
Sep 15, 2019 at 1:55 review Low quality posts
Sep 15, 2019 at 4:05
Sep 15, 2019 at 1:37 history answered Hermann CC BY-SA 4.0