Chown, Chmod and Shell Aliases
Вставка
- Опубліковано 14 січ 2020
- I will give a brief overview of Linux file ownership and permissions with the chown and chmod commands.
REFERENCED:
► linux.die.net/man/1/chown
► linux.die.net/man/1/chmod
WANT TO SUPPORT THE CHANNEL?
💰 Patreon: / distrotube
💳 Paypal: www.paypal.com/cgi-bin/webscr...
🛍️ Amazon: amzn.to/2RotFFi
👕 Teespring: teespring.com/stores/distrotube
SOCIAL PLATFORMS:
🗨️ Mastodon: mastodon.technology/@distrotube
💬 IRC: irc://freenode #distrotube
👫 Reddit: / distrotube
📽️ LBRY: lbry.tv/$/invite/@DistroTube:2
DT ON THE WEB:
🕸️ Website: distrotube.com/
🐿️ Gopherhole: gopher://distro.tube
📁 GitLab: gitlab.com/dwt1
FREE AND OPEN SOURCE SOFTWARE THAT I USE:
🌐 Brave Browser - brave.com/dis872
📽️ Open Broadcaster Software: obsproject.com/
🎬 Kdenlive: kdenlive.org
🎨 GIMP: www.gimp.org/
🔊 Audacity: www.audacityteam.org/
💻 VirtualBox: www.virtualbox.org/
Your support is very much appreciated. Thanks, guys! - Наука та технологія
If only they taught this in school.
"Never use chmod recursively" - DT (Never do this is linux video)
**DT switches to badass mode**
"I'm gonna give it the R flag here, for recursively" - DT (This video)
xD he said dont do those things if u arent sure of what ur doing
Interesting and important topic. I was never aware of the relationship between the chmod numbers and the ls permissions list. Thanks for explaining this, Derek! ☺️
Edit: What a beautiful wallpaper by the way!
gitlab.com/dwt1/wallpapers/blob/master/0195.jpg
You will go down in the history as someone who _brought_ the complex world of linux to the _masses_ . God bless you DT
You can use *stat -c "%a %n" /directory* if you want to see numbers instead of rwx, can be useful sometimes.
I've been a Linux user since the days of Ubuntu 7.10 and I am amazed how much easier Linux has gotten since then!
was literally reading about it exactly an hour ago, right when this video got uploaded, bruh
Informative and interesting, as usual. Thanks again DT!
Appreciate these kinds of videos, precise and straight to the point.
I've spent few years without really understanding chmod XXX and drwxrwxrwx, thank you.
compression algorithm is going crazy on that shirt :D, love your channel DT,
It's why I keep that shirt in the rotation! :D
Great video. Very informative in a simple way!
Damn DT you are dropping some knowledge here!
Great refresher, Derek. Thanks!
Oh man, thanks for it! Usually I us some convertors in web to find right number for my needs, but now I really understand how it works!:) Thanks allot!
Thanks, Dmitry.
Call it test... The always go-to answer to a folder you're just creating to test something. Or as we would say it in spanish "La vieja confiable"
Thanks, DT! This is really useful.
This was a very helpful video!
Thanks, bro. It was worth watching.
Thank you, Derek.
Thanks, Anzan!
Super helpful thank you
Well I'll Be... DT, thanks for the info. Thumbs up!!
You forgot to mention suid
Use ls -Alh for the same results but without the "." and ".." directories.
I would suggest 'alias ls="ls -lAh"' instead, since there is no real need to display the current '.' and parent '..' .
This is a good new series of videos. It's a little bit more general but what about trying to encourage users to configure things within their dotfiles. New users may not realise how powerful this is, and many less good tutorials encourage users to do things in the /etc and /usr directories.
Arguably this has its place, but I hate this and would rather install a gtk theme in my home directory than drop it into /usr if it isn't packaged by my distro.
EXCELLENT VIDEO!!
Thanks! :D
One thing I was confused about was the user he was using for the terminal? It wasn’t DT was it?
I never thought about bit Fields as a point system.
What are you using for your shell prompt decorations? (not sure the correct title for this)
10:06 He starts explaining the permission symbols.
😍
You always need root privilege for using chown and chmod, wether the file is owned by the root user or another user. Just to make it clear 😉
@@epsi thanks for the info :-)
you should make a video about differences "flag vs switch" in command line
THIRD but confident
how are you liking the acrolinux awesome WM? I have the iso and nearly ready to install it as my laptop daily driver, just been putting it off for the last few weeks. it is my attempt to try a wm and from research awesome wm will be the best fit for me. btw you fucked up on 14:02 to 14:14
Arco does a really nice awesome edition. I think you will like it. Awesome is a great first tiling window manager.
Just wondering, what's your day job?
I work in retail. I don't do anything with computers at work.
1:17 "..the next column is the owner.." - No it's not :)
I can see some strange numbers between attributes and owner. Did you skip this column because it is too advanced or not important at all?
It's not important. That column is "link count". Basically, the number of links created that point to that file/directory. And the link count takes symbolic links into account as well.
I rather run a 775 than a 777!
Same but I prefer 755 than 777 unless I'm sure that the file actually needs root access.
an old hard drive plus suicide linux.....one way of learning terminal commands.....lol
ll
your striped shirt and your video compression algorithm do not go well with each other. just a thing to consider.
also you could explain your "point system" easier by just saying that the rwx are bits and that they form a three bit unsigned integer in that specific order and then its all said...