Lil' Linux Lesson - Sudo for beginners!

  Рет қаралды 24,442

Veronica Explains

Veronica Explains

Күн бұрын

Ever want to know a little about sudo, the Linux/Unix command to elevate user privileges?
Well, finally, here's a little video for you! This is the first installment in my new series, "Lil' Linux Lessons"! These bite-sized videos are designed to be short introductions to a complex topic for Linux beginners.
And if you want to help me make more Linux content:
🪙 / veronicaexplains
👕 vkc.sh/merch
Chapters:
00:00 - What is "root" anyway?
01:34 - Introducing sudo!
02:23 - How to use sudo
03:28 - A bit of advanced sudo concepts
04:34 - Sudo Summary
#linux #terminal #commandline

Пікірлер: 170
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Want to help me decide the next "Lil` Linux Lesson" topic? I'll be putting a poll out to Patrons before doing the next one, so make sure to check that out- it's a great way to help support the channel. And thank you! patreon.com/veronicaexplains
@happysprollie
@happysprollie Жыл бұрын
I like this short form. Great for filling an idle 5 minutes.
@sherrilltechnology
@sherrilltechnology Күн бұрын
Great video Veronica!! Linux is awesome and so are you!
@markbenedict1295
@markbenedict1295 Жыл бұрын
I saw on the right side of the screen that you are teaching yourself machine language. Good for you. My first machine language programming experience was on a Univac mainframe back in 1974. Most fun I've ever had on a computer to this day.
@ignabelitzky
@ignabelitzky Жыл бұрын
A little tip that i didn't know a few months ago... If you type a command like "cd /etc/sudoers.d/" and press enter but you forgot about sudo... You can type "sudo !!" press enter and !! replace the last typed command... hope it helps someone!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
There are quite a few other history substitutions, e.g. “!!” to substitute the last command “!«n»” to substitute command number «n» from your history “!«prefix»” to substitute the last command beginning with “«prefix»” “!?«substr»?” to substitute the last command containing “«substr»”.
@neilbrideau8520
@neilbrideau8520 Жыл бұрын
I've been using sudo since 1995. At this point I give it no thought. I'm only here for your impeccable dictation.
@burning_KFC
@burning_KFC Жыл бұрын
As always writing a comment to support the channel
@paulg3336
@paulg3336 Жыл бұрын
0:37 The high quality graphics are what makes the concepts this channel presents understandable
@happysprollie
@happysprollie Жыл бұрын
As for other Lil' Linux Lessons - I always forget how to use 'find'.
@JohnGMeadows
@JohnGMeadows Жыл бұрын
Me too!! I was going to suggest that one :-)
@noahark4832
@noahark4832 Жыл бұрын
+1 on this
@LadyTink
@LadyTink 3 ай бұрын
I swear, so often, when I first started my linux journey, I would run across a topic that was part of some community debate. Like Sudo vs Su, and I would not know it was an update, and I would just hear someones aggressive opinion about sudo, and how bad it is. So while using ubuntu, I would feel like a inferior user. But now in the last years, I've heard more of the debate, and now I feel like the whole "debates" that occur in linux can be an issue for new users. It's hard to know who to listen to. SO far, your channel has been often helpful, and thank you for that :)
@Nikolai508
@Nikolai508 Жыл бұрын
On Debian you gotta install it yourself I've found, also on Debian running "su" doesn't set your path right, so you can't run usermod. You have to enter "su -" instead and then you can run usermod as root. I'm not sure if this would be a lil lesson, and more of a longer one, but what about a video on apt and dpkg. And how to fix issues like "broken dependencies" and things like that. How to force specific versions of programs or how to package and install a program compiled from source into a .deb file potentially using checkinstall.
@bennihtm
@bennihtm Жыл бұрын
If you don't set a root password during the install, it does configure sudo for you afaik
@mikehosken4328
@mikehosken4328 Жыл бұрын
@@bennihtmcertainly does
@srivathsannayak
@srivathsannayak Жыл бұрын
The Lil' Linux Lesson is a great format! I would definitely watch more videos like these. That being said, the in-depth, longer videos/reviews are dope too (I use Arch btw)
@tvsmed
@tvsmed Жыл бұрын
That guitar riff at the beginning sounds really nice!
@JohnDoe-pq5fu
@JohnDoe-pq5fu Жыл бұрын
Intro to package managers would be an apt subject for a lil` Linux lesson topic.
@VeronicaExplains
@VeronicaExplains Жыл бұрын
I see what you did there!!
@Xagroth
@Xagroth Жыл бұрын
A small and great pill of knowledge! If I may add a sugestion (as a non-patreon), SSH is a very important program for most system management, and we can use it to play remotely with a raspberry pi (which is another interesting piece to learn with in itself)
@andrewgrafe7026
@andrewgrafe7026 Жыл бұрын
Tmux would be a great for Lil' format.
@BitesBeyondBorders
@BitesBeyondBorders 3 ай бұрын
Thanks so much for this. I have an exam on Sudo this morning!
@Mr_L1n4x
@Mr_L1n4x Жыл бұрын
Thanks for this Veronica this explains why some distros ask you a different password for root
@oceanz55
@oceanz55 Жыл бұрын
Great as ever Veronica! Thank you for this! I use Omni-OS as a file server (with Napp-it) and a lot of the commands are very similar with Linux... As I fumble through using it, lessons like this are very useful! :) See you in the next one!
@simonvannarath
@simonvannarath Жыл бұрын
Oooh OmniOS! I run it as a VM/container host. You’re probably running pfexec instead of sudo?
@walterwinnipeg7350
@walterwinnipeg7350 Жыл бұрын
Thanks for a very well-explained video! I've just added myself to your subscriber list. And, I really like that T-shirt! Took me about 30 seconds to "get" the colour list reference.
@travisb1757
@travisb1757 Жыл бұрын
I love your videos! Great job Veronica!
@chischis4666
@chischis4666 Жыл бұрын
Just recently came across your channel. Super educational and informative. Also love your humour, amazing work!
@GrahamAtDesk
@GrahamAtDesk Жыл бұрын
I want one of those shirts… Genius
@enkiimuto1041
@enkiimuto1041 Жыл бұрын
You are incredibly clear on your topics, keep your good work
@Karla_Finch-Cluff
@Karla_Finch-Cluff Жыл бұрын
And YOU are awesome!
@tvsmed
@tvsmed Жыл бұрын
You should do much more of this. Fantastic voice and way of explaining things!
@noel_curray
@noel_curray Жыл бұрын
i love this small explanations. Thanks Veronica.
@ricardocortes8247
@ricardocortes8247 Жыл бұрын
Love your SHIRT !!
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Thank you! I designed it myself! :) It's for sale on the website if you'd like one- all proceeds help support the channel! vkc.sh/product-tag/t568b-cheat-sheet/
@ricardocortes8247
@ricardocortes8247 Жыл бұрын
@@VeronicaExplains Veronica, keep the good work...and the good design. You are awesome !!!
@Esteban7GT
@Esteban7GT Жыл бұрын
I definitely love the amount of content in these short form videos. Would be great to turn it into a playlist that covers different commands.
@modembuddy
@modembuddy Жыл бұрын
Love the no nonsense explanation!
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
3:13 The key difference between “su” and “sudo”, as far as I’m concerned, is that “su” prompts for the root password, while “sudo” prompts for _your_ password. “su” lets you become any user for which you know the password, not just root. It also allows the root user to become any user without knowing their password. “sudo” gives you more fine-grained control over what users are allowed to do. Many admins prefer it because it doesn’t require the root user to have a valid password. Linux _faux pas_ I see too often: people using sudo to run su. Tisk.
@Jon_Oates
@Jon_Oates Жыл бұрын
Brilliant. As a beginner/returner to Linux, I'm looking forward to many more Lil' Linux lessons on the terminal, VIM, good housekeeping, and useful shortcuts.
@pingramnet
@pingramnet Жыл бұрын
Love your videos, I work in the data cabling industry and got the shirt immediately
@clav7711
@clav7711 11 ай бұрын
Thanks a lot. Simply and right explanation
@SoCBrain
@SoCBrain Жыл бұрын
Very nice!!, love your vids!! 👍
@BoyceBailey
@BoyceBailey Жыл бұрын
That was handy. This windows end of life jump is looking up.
@jeffreypeters5578
@jeffreypeters5578 Жыл бұрын
Great vid veronica
@ivanlawrence2
@ivanlawrence2 Жыл бұрын
Thank you Veronica for making such awesome nerdy content. I was just using GNU Screen and was seeing a lack of good explanations of what a tty is etc. So I thought I would just suggest it. No matter what, keep making great content and thank you!
@VeronicaExplains
@VeronicaExplains Жыл бұрын
That's a great idea! Thank you! And thank you for watching!
@lmachado788
@lmachado788 Жыл бұрын
I am new to Linux and have watched dozens of tutorials. I would love to see "LLL" on the most popular terminal commands. Your explanations are well done and more understandable to the noobs (me). Thanks for the content.
@elmestguzman3038
@elmestguzman3038 Жыл бұрын
Great video.... love to see more on sudo user group segmentation..
@fernando-loula
@fernando-loula 5 ай бұрын
Great video, You are definetely the coolest nerd aroud!!!
@vladislavkaras491
@vladislavkaras491 Жыл бұрын
Great video!
@catreunion
@catreunion Жыл бұрын
Thank you Veronica 🙏🏻
@dannygarden2292
@dannygarden2292 Жыл бұрын
I would like to see one of your excellent videos on grep. Thank you for doing great content.
@penchanter6194
@penchanter6194 Жыл бұрын
I like this format, too! :) Maybe some of the more in-depth video topics could be available on your Patreon?
@bretgreen5314
@bretgreen5314 Жыл бұрын
Thank you; nice explanation
@kevinchastain727
@kevinchastain727 Жыл бұрын
just watched all your videos, got myself an old sever and some switches so I was going to try to build a sever for a home network. Your videos are will done and informative, this should be easier as I started using Linux when windows stopped support for XP. Because I have real hardware it should be more like real world experience, except for the internet as the best I can get right now is 15MB per second, there is also still a dial up that I can use. As far as the terminal I started with dos and win 3.1 and wrote subroutines in basic. your videos will be a great help to get started.
@duduonyu5810
@duduonyu5810 Жыл бұрын
Excellent!!!
@ohwow2074
@ohwow2074 Жыл бұрын
Thanks. I learned a lot.
@The_Penguin_City
@The_Penguin_City Жыл бұрын
Very good video.
@CarneSagrado
@CarneSagrado Жыл бұрын
. Oh my! A fellow dead language speaker! COBOL! Used it on MVS and other older machines. Also with Imbedded C 😜 You got C64? I had a ZX-81 (Sinclair equiv) with a whopping 16K pak RAM! 🤣🤣🤣🤣 Had lots of fun playing with the Z80 assembler! . PS: Love your contralto voice! Brings back lots of good memories with my big sister! 💖💖💖 .
@kevingary7018
@kevingary7018 20 күн бұрын
I always thought sudo was some kind of martial arts until I discovered Linux.
@locnar1701
@locnar1701 Жыл бұрын
Great and powerful concept. Well done. Next commands to contemplate: cron/crontab/etc and its "newer" incarnations. OR, the at/batch system. OR, even better: how to use man pages. "man crontab" v. "man 5 crontab"
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Oooooo that's all really good. I was thinking about man pages specifically for an upcoming video because there's so much confusion!
@abbas1872
@abbas1872 Жыл бұрын
@@VeronicaExplains Hey! it's 2022, you can't say man pages, it's person pages. LOL
@Storm_.
@Storm_. Жыл бұрын
You know I always loved sudo, then I started playing around with Unix systems that I needed to install and configure sudo... Enter visudo!!! Damn, have to learn vi all over again just to configure sudo lol.
@BryanLaw
@BryanLaw Жыл бұрын
Love the shirt!
@harshrajsingh8969
@harshrajsingh8969 Жыл бұрын
I bet you will be on top of the KZfaq algorithms.
@MikeWood
@MikeWood Жыл бұрын
sudo apt-get more Lil' Linux Lesson. ;) If you are going to cover the sudoers file, then perhaps some sudo syntax too?
@Mikesco3
@Mikesco3 Жыл бұрын
Tar or rsync would be a good command, it could help newbies start thinking about backup
@jorgeperez7672
@jorgeperez7672 Жыл бұрын
I recently discovered your channel and I’m loving it I do have a question tho, could you make a video on how to make a Linux installation media with personalized packages? Starting to like Linux, jeje
@zawye9844
@zawye9844 Жыл бұрын
Thank you
@Mr.Finkel
@Mr.Finkel Жыл бұрын
i like the shirt. better than fumbling around with little cheat sheets when splicing ethernet. good outro song too.
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Thank you- I designed that shirt! I thought it was pretty fun. If you'd like one for yourself, I sell them from my web shop at vkc.sh/merch!
@xfox360
@xfox360 Жыл бұрын
How can i set the parameter for how long the root password is cached? And what is the standard setting?
@nephisto2
@nephisto2 Жыл бұрын
Hey Veronica! Beautiful content! I'm a seasoned programmer (15+ years of experience) and I have reasonable understanding on using command line for day to day navigation and js/npm cli commands, and other tools that are useful to my workflow. However, I never had any core Linux foundation. If I were to study that in a somewhat structured manner what should I be looking for? Is that a topic for one of those Lil Linux lessons? Cheers!
@ZijZijnZijnZoons
@ZijZijnZijnZoons 6 ай бұрын
Phil Collins likes sudo too. He just says the word.
@pureflashhacks
@pureflashhacks Жыл бұрын
Try "doas", which is an alternative for sudo, originally written for OpenBSD.
@anthonyrussano
@anthonyrussano Жыл бұрын
We would love to hear you go over how to edit the sudoers file....
@w200iandres
@w200iandres Жыл бұрын
Hello, I'm new here, that's pretty cool!, I'm from Uruguay and in school and high school everyone was getting computers with Gnu/linux installed already, it what was called "plan ceibal" I remember changing mine to windows Xp just to be able to play some video games that ran only on windows, or else you needed to know how to use wine. Always loved to mess around with the different distros, this was 10+ years ago so I don't remember exactly all of them, they where customized by the organization that gave away those laptops. Now I use windows in my personal and work environment (I'm an analyst) But I'm looking for a distro to change to, Linux is fun :) thank you for your videos!
@marcosdroid1
@marcosdroid1 Жыл бұрын
Hello greetings. . Thanks for your input and tutorials. The the video. Which I think is the last you did of Linux Mint 21 installed on a MacBook. I asked you a question. Please. If you can answer.
@emberavenge7162
@emberavenge7162 Жыл бұрын
Great video! Unrelated note, but I think that using doas for most end users is better, a majority of users who aren't power users should use doas as you only rarely need the terminal to install your occasional app, and to update your system for simple stuff like that I consider doas better.
@GAVollink
@GAVollink Жыл бұрын
sudo is very important on macOS, too!
@ignabelitzky
@ignabelitzky Жыл бұрын
Suggestion for the next video ... "awk" PS: I love your videos...
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Thank you! Only problem with awk is that I'd need to get better with awk! (nervously looks side-to-side)
@ignabelitzky
@ignabelitzky Жыл бұрын
@@VeronicaExplains I understand... I only know that is a powerful tool... maybe grep suits better but in the end is up to you to decide... there are awesome commands out there
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
I never bothered with awk. I found Perl did everything awk could do and more, and do it just as concisely.
@LinuxKoernel
@LinuxKoernel Жыл бұрын
Great Video thank you… Next explain about BorgBackup maybe?
@treakzy_9594
@treakzy_9594 Жыл бұрын
hey can you publish the outro song somewhere? it sounds so catchy and i really like it but haven't found it on your about tab nor if i searched for "littlest punk" on your chanel. cool videos and website you got! :)
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Thanks for the compliment! Patrons got a link when it first published, otherwise I'm hoping to put out the channel songs on Bandcamp sometime this year.
@ariel_chess
@ariel_chess 10 ай бұрын
I installed debian and accidentally made my primary user not root by providing a root password in the installer (I thought I had to repeat the password of my account). Now i have a root and a primary user. I'm so confused I edited that file to get sudo permissions. So what's the point on having that root user now?
@El_Bartto
@El_Bartto 5 ай бұрын
3:11 which password is that one? I enter the login password and it says "wrong password", I enter the superuser password and it says the same
@ubuntujackson9133
@ubuntujackson9133 Жыл бұрын
4:46 "Which command would you like to see a lesson on in future videos" That question does not make much sense to ask, because I think there are a lot of people that does not even know which commands exist. So any commands would be good.
@pmccarthy001
@pmccarthy001 Жыл бұрын
What kinds of things can you do as root that you might not be able to do simply as a member of the sudo group? Is there anything? Or, can members of the sudo group generally do everything root can do?
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
That group is just one of the ways of controlling access to sudo.
@juang_
@juang_ Жыл бұрын
4:30 So you tell the user in which group they are? Or you tell the group which users they have?
@vashishthmehra
@vashishthmehra Жыл бұрын
MA'AM IS WSL2 GATEWAY TO LINUX OR STOPIN' USERS MIGRATE TO LINUX......YOUR THOUGHTS PLEASE ?¿ AND PLEASE...HELP ME CHOOSING MY FIRST DISTRO
@Mikesco3
@Mikesco3 Жыл бұрын
Don't use all caps while commenting, it is like shouting. Good first distro can be Linux mint
@JarrodCoombes
@JarrodCoombes Жыл бұрын
You should do a video on the sudoedit command, which is a much better and secure way to edit files as root. You probably should also make a point to mention that editing the sudoer files should be done via the visudo command and not your text editor of choice. visudo is designed to help make sure you don't do something wrong and basically remove all root level privileges from everyone, including the root account (don't ask me how I know this, that was a very bad day for me, and I'd rather not talk about it :D ).
@johntaylor8582
@johntaylor8582 Жыл бұрын
Is SUDO kinda like run as Administrator?.
@carriecorreaArtist
@carriecorreaArtist Жыл бұрын
Yes!!!
@amoenus_dev
@amoenus_dev Жыл бұрын
Would love a lesson on 'sed' command
@ridaosprint5075
@ridaosprint5075 Жыл бұрын
is there a setting Called Program*, its default is set to *Agressive TEwNice tutorialch is making that sNice tutorialtty static soft, change that one, once to
@Jon_Oates
@Jon_Oates Жыл бұрын
Thanks
@VeronicaExplains
@VeronicaExplains Жыл бұрын
Thank you so much!
@vandorb12
@vandorb12 Жыл бұрын
Let's do grep with a little bit of regex next!
@MisterConscio
@MisterConscio Жыл бұрын
I like to use "sudoedit" instead of "sudo vim", cause than it will use the user's .vimrc and not root's vimrc. Could you make a video about "doas" and compare it with sudo?
@syrus3k
@syrus3k 6 ай бұрын
All I needed to know about sudo was this: sudo su - bwahaha!!
@raphaelcardoso7927
@raphaelcardoso7927 Жыл бұрын
I just realized that it sounds like "pseudo" which makes sense considering what it does
@XDSebskiXD
@XDSebskiXD Жыл бұрын
You are my favorite teacher. Im 35 and just learning to code. Its a bit disheartening cause you know, I was in High School when skeet skeet was put in the dictionary. Should have started earlier....... Poppy cock!!! Better late than never! Thanks for your awesome videos!
@aron6814
@aron6814 Жыл бұрын
veronica which is your Favorite Linux distro?? { of everyday use]
@mikehosken4328
@mikehosken4328 Жыл бұрын
I enjoy your videos on the shell and it’s commands. For sudo in my Debian servers sudo is disabled. I don’t see the need for anyone else to run as root. I get that some off shoots of Debian don’t add a root user and therefore everything must be configured by sudo. It comes down to personal preference at the end of the day but I use su -
@VeronicaExplains
@VeronicaExplains Жыл бұрын
If you know what you're doing with a root user and are the only user on the machine, I think that's just fine! I figure the audience for "let's learn X" is one that is new- new users are less likely to know that stuff. Plus, in corporate systems, there's typically a group of users with assorted extra privileges, and sudo makes that pretty easy- I figure those wanting to learn it have an interest in working with it professionally at some point. :)
@BradleyBrown
@BradleyBrown Жыл бұрын
My favorite sudo command is "sudo !!" as in, 'Crap, I forgot to put sudo in front of that last command.' It repeats the previous command with sudo priveleges... I really wish Windows had this. I don't know how many times I get the feedback that the terminal or PowerShell isn't running as Administrator. 🤦‍♂
@voodooyam
@voodooyam Жыл бұрын
I always add Defaults insults in visudo file just for fun 🙂
@keltyll
@keltyll Жыл бұрын
Great video, but I want to add that doas > sudo :)
@stevenanderson3205
@stevenanderson3205 Жыл бұрын
Great power comes with great responsiblity.
@travisb1757
@travisb1757 Жыл бұрын
Off the topic here Veronica, but have you every played the windows 95 game called The Neverhood?? It is a claymation style game and it is old and incredible. Also, have you every messed with SDR radio for linux??
@potametalero
@potametalero Жыл бұрын
Excelente contenido! Por favor podrías agregar subtítulos en español?
@michaelpezzulo4413
@michaelpezzulo4413 Жыл бұрын
When are are doing grep?
@nitinkathait5635
@nitinkathait5635 Жыл бұрын
is this the Last version
OpenSSH for Absolute Beginners
23:00
Veronica Explains
Рет қаралды 95 М.
Red Hat: why I'm going all in on community-driven Linux distros.
12:56
Veronica Explains
Рет қаралды 189 М.
Miracle Doctor Saves Blind Girl ❤️
00:59
Alan Chikin Chow
Рет қаралды 38 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 40 МЛН
Why "sudo" when you can just "su"?
10:39
DistroTube
Рет қаралды 29 М.
Learn "fuser", a little-known Linux workhorse command!
7:23
Veronica Explains
Рет қаралды 123 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4 МЛН
Debian is 30 this year. Here's why it's still worth using.
10:22
Veronica Explains
Рет қаралды 171 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
Is the terminal still worth learning?
9:40
Veronica Explains
Рет қаралды 37 М.
Installing Linux Like It's 1992
17:47
Old Computers Sucked
Рет қаралды 28 М.
60 Linux Commands you NEED to know (in 10 minutes)
10:50
NetworkChuck
Рет қаралды 1,3 МЛН
There's more to learn about the "cd" command. Lil' Linux Lesson!
4:33
Veronica Explains
Рет қаралды 18 М.
OpenSSH is about to change. (For the better.)
10:00
Veronica Explains
Рет қаралды 138 М.
XL-Power Best For Audio Call 📞 Mobile 📱
0:42
Tech Official
Рет қаралды 772 М.
Топ-3 суперкрутых ПК из CompShop
1:00
CompShop Shorts
Рет қаралды 248 М.
Fiber kablo
0:15
Elektrik-Elektronik
Рет қаралды 8 МЛН
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,9 МЛН
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 20 М.