If you want to learn a lot more, watch the Linux Basics for Hackers video series with OTW. First video: • Linux for Hackers Tuto... #linux #kalilinux #windows
Also, typically you will see a dollar sign ($) at the prompt when you are in a normal user shell without privileges and hashtag (#) when you can execute commands with privileges, as shown here when su is successfully run.
The su command is rather of switching users. Executing su without any arguments calls onto root, but if you pass on another user (we have kali1 running and we call for kali2), then we will try to connect to the kali2 user.
su allows you to 'switch user' and your excluding - for environment variables. You can su to any user, but su - is traditional and sudo su - or most common as root is disabled is distros, such as Ubuntu.
Nope its there😂😂😂 each distro has their own way of doing these these days it used to be that you did su apt-get "command" but since 2008 Ubuntu changed it done sudo apt "command" or sudo, su is still there.
I just checked and was able to use sudo su on two versions of Ubuntu, 22.04 and 23.04, and they both worked fine. Not sure what you mean that it's disabled.
Love your content David. Your visuals on your videos are looking great and the editing deserves credit. Thanks for all your wonderful videos spreading free knowledge!
I have moved from windows to Linux over the past 4 years and I have a nice Dell workstation with Window 11 Pro. Hasn't been touched once in over a year. Linux has done every i need and more.
Wanted to use crt in some video edits but didn’t know anything about Linux or terminal. Grabbed iSH and a-Shell on iOS and apparently the former runs an emulation of Alpine Linux. After familiarizing myself with that was able to jump right on mac terminal or use open-ssh from phone/iPad. Ur vids helped a bunch so thanks.
Great, Sir please kindly upload lots of videos on Linux tutorials shorts like this one for troubleshooting Networking, servers and everything else in Linux environment
su actually just allows you to switch to other users.. Unix is a multi user system - this is the fundamental difference between Unix and early versions of DOS, windows or even what Apple was delivering with their early hardware.
I was mainly talking about the Classic Mac OS with a GUI, it has no command line. Still that Apple DOS was not a true DOS it was a control program.@@thegingerpowerranger
@@dieselsoggydog6299 try again! The original apples ran a very simple CLI operating system that was stored in read only memory. Apple DOS came along later, DOS stands for Disk Operating System - it was an expanded amount of functionality as the external medium offered a significantly increased amount of storage over the internal ROM.
Best reason to learn Linux: get to use a command to show you the username that is already very visible. Jokes aside thank you for spreading more knowledge and helping make loonux more popular
just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
su command provide the ability to "switch user" now there can be more than 1 users so in that case you will have to specify the name of user that you want to log in as ans the password too. In this video there is no other user than it's root privileges so it automatically showed only option for root. Don't try only su command where machine has more than 1 user. You shall always specify the name of user that you want to login as.
There the root user is locked, so root doesn't have a password. Which is a security feature. Instead use the sudo(8) command as prefix to command you want to escalate priviliges to root. whoami sudo whoami whoami
That's why I was scared to use Linux... People like showing terminal and those commands acting like that how we use Linux... Until I tried Ubuntu and Mint I realise that for basic use there is no need for terminal
Always check facts, and it is easy. Just use the man(1) command on the su(8) command. Just type man su Yes, the man(1) command also have a man page. man man
Don’t ever su unless it is necessary just use sudo for temporary privilege escalation. Which is way less worse than typing a damn windows admin password at every prompt.
If you want to learn a lot more, watch the Linux Basics for Hackers video series with OTW. First video: ruclips.net/video/YJUVNlmIO6E/видео.html
Video not available!
Loving these shortcuts 😅 here I thought I had to use sudo su this whole time 🤦🏻♂️🤷🏻♂️
Мужик, да ты просто капитан очевидность...
and use (ctrl +d ) to go back to your user
I would love it if you can be my mentor giving me a step to step guide am a slow learner and am having challenges
"I AM ROOT" - deep voiced plant
Ha. You beat me to it.
Yeah, I had to check the comments this second I thought of that! When he said, I am rude. Yeah, I immediately went to the comments
I AM GROOT
Also, typically you will see a dollar sign ($) at the prompt when you are in a normal user shell without privileges and hashtag (#) when you can execute commands with privileges, as shown here when su is successfully run.
Pound sign.
@@NinjaSushi2 OCTOTHORPE!
whoami also works on Windows. Reportedly su will also work in a recent Win11 update too.
The su command is rather of switching users. Executing su without any arguments calls onto root, but if you pass on another user (we have kali1 running and we call for kali2), then we will try to connect to the kali2 user.
So the overall command would be "su" with parameter "kali2"?
@@rockhaze Yes, with `su kali2`. Probably should have explained better, but yeah
@@rockhazethink of it as “switch user”
@@rockhazeyes, you can read all about it in the manual. Just type
man su
man whoami
man man
man sudo
etc
Use the man command with | more to view it by page
man su | more
And this is the kind of thing you don't learn on tv. Thank you very much David, I learn something new every day
you don't learn anything on tv now.
@@1eddardstarkthansk i want to say same😂
Go to w3schools
@@1eddardstark Exactly. When I learned this command and many more it was not by watching TV.
You can also use the command `logname`, this shows the name of the logged in user in case you switched to another user from your current session.
su allows you to 'switch user' and your excluding - for environment variables. You can su to any user, but su - is traditional and sudo su - or most common as root is disabled is distros, such as Ubuntu.
Nope its there😂😂😂 each distro has their own way of doing these these days it used to be that you did su apt-get "command" but since 2008 Ubuntu changed it done sudo apt "command" or sudo, su is still there.
I just checked and was able to use sudo su on two versions of Ubuntu, 22.04 and
23.04, and they both worked fine. Not sure what you mean that it's disabled.
Love your content David. Your visuals on your videos are looking great and the editing deserves credit. Thanks for all your wonderful videos spreading free knowledge!
SU allows you to be be ANY user, not just root…
Same command works with Windows cmd.
‘whoami’
Un rappel des basiques... parfait... merci !
Thank you David you have helped me more than you can even imagin
I have moved from windows to Linux over the past 4 years and I have a nice Dell workstation with Window 11 Pro. Hasn't been touched once in over a year. Linux has done every i need and more.
Instructions unclear...multiple minds appeared in my head
David I really appreciate you, you are best mentor whom I ever seen(video) on inet
Wanted to use crt in some video edits but didn’t know anything about Linux or terminal. Grabbed iSH and a-Shell on iOS and apparently the former runs an emulation of Alpine Linux. After familiarizing myself with that was able to jump right on mac terminal or use open-ssh from phone/iPad. Ur vids helped a bunch so thanks.
Great David, the best. Thank you.
Thank you! Glad you enjoyed the video 😀
The best OS I've learned about through google course.
Thank You, Please Continue I'm Eager To Learn From You
Thank you ,, you are a great teacher.
Nice simple explanation sir..keep digging sir.🎉
Great, Sir please kindly upload lots of videos on Linux tutorials shorts like this one for troubleshooting Networking, servers and everything else in Linux environment
14:38 "They don't do it anymore.." -El Mencho would like a word
I like the w command myself. It gives more info and requires less typing.
su actually just allows you to switch to other users.. Unix is a multi user system - this is the fundamental difference between Unix and early versions of DOS, windows or even what Apple was delivering with their early hardware.
The early Apple OS didn't even have a command line. You are correct that su is used to switch users but if no user is specified, it defaults to root.
@@dieselsoggydog6299 think you need to scrub up on your history, earliest apples were all command line based running basic!
I was mainly talking about the Classic Mac OS with a GUI, it has no command line. Still that Apple DOS was not a true DOS it was a control program.@@thegingerpowerranger
@@dieselsoggydog6299 try again! The original apples ran a very simple CLI operating system that was stored in read only memory. Apple DOS came along later, DOS stands for Disk Operating System - it was an expanded amount of functionality as the external medium offered a significantly increased amount of storage over the internal ROM.
Best reason to learn Linux: get to use a command to show you the username that is already very visible. Jokes aside thank you for spreading more knowledge and helping make loonux more popular
O m g I absolutely adore kali it’s the best release ever
Thank you again
Es usted un gran maestro. Saludos
Kali is just à debian like ubuntu with a lot of programms for security, pentesting. Thanks David,
woah dude this is like so existential mannn
kali linux is based on ubuntu linux, so it would be the same on both operating systems.
I use Linux all the time. I think you mean learn "shell commands" in linux as you were using the terminal in this video. Great video. 👍❤️
Yes, but he's sacrificing accuracy for general comprehension.
just like to interject for a moment. What you're referring to as
Linux, is in fact, GNU/Linux, or as I've recently taken to calling it,
GNU plus Linux. Linux is not an operating system unto itself, but rather
another free component of a fully functioning GNU system made useful by
the GNU corelibs, shell utilities and vital system components
comprising a full OS as defined by POSIX.
I am brand new i i going to learn lennox to unhack my stuff thanks u put me on the path
my favorite teacher
su command provide the ability to "switch user" now there can be more than 1 users so in that case you will have to specify the name of user that you want to log in as ans the password too.
In this video there is no other user than it's root privileges so it automatically showed only option for root.
Don't try only su command where machine has more than 1 user.
You shall always specify the name of user that you want to login as.
In the garden, I am Groot!
Thx David
i just started this virtual machine and ubuntu OS again, it's been awhile
There the root user is locked, so root doesn't have a password. Which is a security feature.
Instead use the sudo(8) command as prefix to command you want to escalate priviliges to root.
whoami
sudo whoami
whoami
I think I am pretty sure who I am.
I am root
That's why I was scared to use Linux... People like showing terminal and those commands acting like that how we use Linux... Until I tried Ubuntu and Mint I realise that for basic use there is no need for terminal
I need Linux course from you please. Thx. ❤
Thank you david 😊
Can you make a video about how can we use cruch and aircrack-ng to break 4 way handshake
If I could learn one command every minute I'd be there by now.
Thank you. These videos might seem a bit benign, but they HELP!!! Please keep em coming!!!!!
Awesome, now with linux I can learn my own name :-)
My summer child, it's to figure out which of the target users is currently logged in (for privilege sake if nothing else).
"I am Rooot"
The terminal app is for experts like David .
I totally disagree. Even beginners can use it. I would encourage it.
using the terminal is trivial
Ahh alright... Looks good
Would you do tutorials about Linux commands
Wow, your bash configuration for your kali linux vm is so nice, are your dotfiles open source anywhere?
it interesinting that cmd commands still work considerring all the upgrades
You want su - so you pick up root's environment.
'Sudo su' to do everything as root
whoami?
I am Groot.
What happens when your laptop is stolen..who am I? A guy who just got his linux stolen?
I always assumed SU meant super user
Always check facts, and it is easy. Just use the man(1) command on the su(8) command.
Just type
man su
Yes, the man(1) command also have a man page.
man man
sudo means "super user do"
I love everything you do I have a question I want to learn more about coding. What's the best way to proceed without going to college.
I am a student of RUclips University. It is free.
Don’t ever su unless it is necessary just use sudo for temporary privilege escalation. Which is way less worse than typing a damn windows admin password at every prompt.
True, but I already knew it. Good video anyways.
I'm for Groot to speak
Will part 2 go over how you can use “su” to pivot as a different user other than root? ;) 😊
su - [user]
su [username]
whoami works just as well on windows
Who am I! I'm not a cat, 😮
Back door baby!!
I always thought it was sudo...
This works on Windows too (in cmd or powershell). Whoami shows the username and also the domain if you use one. Su does not work...
Whoami? I asked myself this question many times
Who am I? I need to know who I am! I have this condition... Wait... who are you? 😁
whoami also works on windows
Me writes SUiiiiiiiiii
Ubunti: Ronaldo
Linux users: use sudo!
"w" shows all users currently logged in
I AM GROOT
tysm
Sudo -i
I am root!
su allows you to substitute a user
su - george
Is it possible to set up a Linux set up to require a hardware 2FA before it will allow privilege escalation?
Yes😊
Anyone knows the effects of the neon blue line while he is typing??
🙏🙏
How did you get that nice blowing underscore on the bash terminal?
It’s edited in the video
su followed by a username allows for user change even if not root
sudo -i
yea
😊 good
Keep in mind: Don't drink and root ;)
👍🏻
Hmm, username is kali, I wonder what the password might be. 😂
What the situation with the password? Is there a default one or is it different for each distribution? How can the password be changed?
Kali like the demon?
su = superuser
imagine being debian user
How do you install ubuntu on your laptop? I have Kali Linux everything and i am finding it difficult to install it.
How to power off i am stuck😂😂😂
Unix
su - short for super user
short for switch user or substitute user. even though "sudo" is for "super user do", su has a different function.
David ....is Linux safe
But you are still logged in as Kali/David 😮at least I think so.
nope. In the Wayland graphical user interface, yes.