You can actually do chmod +777,u+rwx,go-w foo to make the logic easier if you want to force a starting assumption.
quarrel4you
- 0 Posts
- 6 Comments
- quarrel4you@piefed.socialtolinuxmemes@lemmy.world•It's all about those little file mode bitsEnglish3·30 days ago
- quarrel4you@piefed.socialtolinuxmemes@lemmy.world•It's all about those little file mode bitsEnglish2·30 days ago
Careful:
chmod -Xalso looks for any existing exec bits:$ umask 0 $ >foo >bar $ ls -al foo bar -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar -rw-rw-rw- 1 user group 0 Sep 10 00:00 foo $ chmod o+x foo $ ls -al foo bar -rw-rw-rw- 1 user group 0 Sep 10 00:00 bar -rw-rw-rwx 1 user group 0 Sep 10 00:00 foo $ chmod u=rwX,g=rX,o=rX foo bar $ ls -al foo bar -rw-r--r-- 1 user group 0 Sep 10 00:00 bar -rwxr-xr-x 1 user group 0 Sep 10 00:00 foo
- quarrel4you@piefed.socialtoscience@lemmy.world•Neuroscience’s Case Against Free Will Is Falling ApartEnglish31·30 days ago
I can choose to do a thing that I neither want nor have to do. I can also choose to not do a thing that I want or need to do. Can I prove that to you though? Does my desire to be contrarian countermand my free will? It very well might.
I can rewind a video and watch it again. That is no different from your time travel example. I don’t think we can convincingly argue either way if a quantum field collapse will always happen the same way, even if we were to start save-scumming reality. I kind of hope we will never be able to.
None of this precludes me from having free will in the present. I don’t even think I need quantum dice contently rolling around in my consciousness. Even if I am completely deterministic, I can still make choices. My brain is a computational device made of meat. I can only have so much faith in what a choice even means, but I sure think I know one when I see one.
- quarrel4you@piefed.socialtoAsk Lemmy@lemmy.world•Linux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?English3·1 month ago
I like the way you think! Too bad a I replied to a seaming empty post some 26 min after you. I always disliked this about Reddit. Seeing someone rewording the top reply for karma.
- quarrel4you@piefed.socialtoAsk Lemmy@lemmy.world•Linux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?English27·1 month ago
You may want to learn about the shell’s “history expantion” functions. as an example:
~$ ls ~/Documents/taxes/tax_year_2012/2012-12-01.txt /home/tom/Documents/taxes/tax_year_2012/2012-12-01.txt ~$ cd !!$:h cd ~/Documents/taxes/tax_year_2012 ~/Documents/tax_2012$ pwd /home/tom/Documents/taxes/tax_year_2012Here the string “
!!$:h” is basically the last command’s [!!] last argument [], stripped of its last path component [:h].
Or there is ETIAS or, ESTA, ETA, K-ETA, etc.