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!
  • Наука та технологія

КОМЕНТАРІ • 53

  • @zerotheory941
    @zerotheory941 4 роки тому +31

    If only they taught this in school.

  • @Gotaksimon
    @Gotaksimon 4 роки тому +27

    "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)

    • @darkinferno4687
      @darkinferno4687 4 роки тому +1

      xD he said dont do those things if u arent sure of what ur doing

  • @marioschroers7318
    @marioschroers7318 4 роки тому +12

    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!

    • @DistroTube
      @DistroTube  4 роки тому +5

      gitlab.com/dwt1/wallpapers/blob/master/0195.jpg

  • @Little-bird-told-me
    @Little-bird-told-me Рік тому

    You will go down in the history as someone who _brought_ the complex world of linux to the _masses_ . God bless you DT

  • @IanSantosBR
    @IanSantosBR 4 роки тому +13

    You can use *stat -c "%a %n" /directory* if you want to see numbers instead of rwx, can be useful sometimes.

  • @MstanhopeTX
    @MstanhopeTX 4 роки тому +1

    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!

  • @potatolord2858
    @potatolord2858 4 роки тому +4

    was literally reading about it exactly an hour ago, right when this video got uploaded, bruh

  • @KevinBReynolds
    @KevinBReynolds 4 роки тому +1

    Informative and interesting, as usual. Thanks again DT!

  • @albankaperi2961
    @albankaperi2961 4 роки тому +1

    Appreciate these kinds of videos, precise and straight to the point.

  • @kaerithmallock
    @kaerithmallock 4 роки тому +1

    I've spent few years without really understanding chmod XXX and drwxrwxrwx, thank you.

  • @markoruzic3568
    @markoruzic3568 4 роки тому +3

    compression algorithm is going crazy on that shirt :D, love your channel DT,

    • @DistroTube
      @DistroTube  4 роки тому +4

      It's why I keep that shirt in the rotation! :D

  • @mylinuxgr5050
    @mylinuxgr5050 4 роки тому +1

    Great video. Very informative in a simple way!

  • @tpasi2020UG
    @tpasi2020UG 4 роки тому +3

    Damn DT you are dropping some knowledge here!

  • @andrewpalm2103
    @andrewpalm2103 4 роки тому +1

    Great refresher, Derek. Thanks!

  • @dmmeteo
    @dmmeteo 4 роки тому +2

    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!

  • @diegocastillo6470
    @diegocastillo6470 4 роки тому +3

    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"

  • @maxsiem77
    @maxsiem77 27 днів тому

    Thanks, DT! This is really useful.

  • @shrutivtuber
    @shrutivtuber Рік тому

    This was a very helpful video!

  • @norman5324
    @norman5324 Рік тому

    Thanks, bro. It was worth watching.

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 4 роки тому +1

    Thank you, Derek.

  • @rdh537
    @rdh537 4 роки тому +1

    Super helpful thank you

  • @Lyunpaw
    @Lyunpaw 4 роки тому +1

    Well I'll Be... DT, thanks for the info. Thumbs up!!

  • @N0zer0
    @N0zer0 4 роки тому +3

    You forgot to mention suid

  • @rbrasch101
    @rbrasch101 4 роки тому +3

    Use ls -Alh for the same results but without the "." and ".." directories.

  • @curtprasky3440
    @curtprasky3440 4 роки тому +3

    I would suggest 'alias ls="ls -lAh"' instead, since there is no real need to display the current '.' and parent '..' .

  • @FantabulousNoise
    @FantabulousNoise 4 роки тому +1

    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.

  • @sirsuse
    @sirsuse 4 роки тому +2

    EXCELLENT VIDEO!!

  • @GrantSweatshirt
    @GrantSweatshirt 4 роки тому +3

    One thing I was confused about was the user he was using for the terminal? It wasn’t DT was it?

  • @dazoedave
    @dazoedave 4 роки тому +1

    I never thought about bit Fields as a point system.

  • @arcooke
    @arcooke 4 роки тому

    What are you using for your shell prompt decorations? (not sure the correct title for this)

  • @georgeofhamilton
    @georgeofhamilton 2 роки тому

    10:06 He starts explaining the permission symbols.

  • @rubenoganesyan1669
    @rubenoganesyan1669 Рік тому

    😍

  • @RonnieNissan
    @RonnieNissan 4 роки тому +3

    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 😉

    • @RonnieNissan
      @RonnieNissan 4 роки тому +2

      @@epsi thanks for the info :-)

  • @caubert
    @caubert 4 роки тому

    you should make a video about differences "flag vs switch" in command line

  • @alexstone691
    @alexstone691 4 роки тому +2

    THIRD but confident

  • @TheDrunkenAlcoholic
    @TheDrunkenAlcoholic 4 роки тому +1

    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

    • @DistroTube
      @DistroTube  4 роки тому

      Arco does a really nice awesome edition. I think you will like it. Awesome is a great first tiling window manager.

  • @mikeischangingplaces
    @mikeischangingplaces 4 роки тому +2

    Just wondering, what's your day job?

    • @DistroTube
      @DistroTube  4 роки тому +1

      I work in retail. I don't do anything with computers at work.

  • @master_f
    @master_f 4 роки тому

    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?

    • @DistroTube
      @DistroTube  4 роки тому +1

      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.

  • @MstanhopeTX
    @MstanhopeTX 4 роки тому +1

    I rather run a 775 than a 777!

    • @ashutoshsamal4287
      @ashutoshsamal4287 4 роки тому +2

      Same but I prefer 755 than 777 unless I'm sure that the file actually needs root access.

  • @drenee7849
    @drenee7849 4 роки тому +1

    an old hard drive plus suicide linux.....one way of learning terminal commands.....lol

  • @DescendantsOfEnoch
    @DescendantsOfEnoch 4 роки тому

    ll

  • @urugulu1656
    @urugulu1656 4 роки тому +1

    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...