18
R-C-D
6y

Today I had my first :
root@DEC:~# echo "hello World"
in my linux terminal ! :)
Just knew some commands but finally wanna master that !

Comments
  • 1
    Why as root though? 🤔
  • 1
    @Electrux i'm just the owner
  • 1
    Welcome to Linux then.
    If your have any questions there are people here which are happy to help.

    One thing though: the root account is dangerous. Only do stuff as root that really needs root.
  • 6
    Now you can do the advanced hello world

    sudo echo "Hello World" > /dev/sda

    (Don't actually do that)
  • 3
    In the beginning it might feel like you need root a lot. You don't. Learn to love the sudo and best practices!

    Welcome to the club.
  • 0
    @disco Been a Linux user for a few years now and 'sudo -i' is what I almost always use. Bad practice, I know.
  • 0
    @WhAtEvErYoUmEaN why is it dangerous? Because of the access?
    You mean I creat one limited account for daily use?
  • 1
    @R1100 Most distros won't even let you log in as root. You don't really need root privileges most of the time anyway. So yes, you use another username to log in but your user is part of the sudoers group which allows you to use sudo.
  • 0
    @olback so what is the difference between rood and other sudoers?
  • 1
    @R1100 well, root is root. When you're logged in you never need to enter your password again. If you're a regular user in the sudoers group, you have to run every "admin command" with sudo. Sudo will ask for a password unlike when you're root.

    user@host$ reboot now
    Permissions denied

    user@host sudo reboot now
    [sudo] password for user: <enter password>
    Rebooting...
  • 1
    @olback thanks a LOTTT!
  • 0
    @olback don't reboot and poweroff usually work without sudo?
  • 0
    @host127001 nope, on Windows it does.
  • 0
    @olback because I always shut down my arch with `poweroff`. No need for sudo there
  • 0
    @host127001 maybe U R the root :D
  • 0
    @R1100 no, definetly not :D
Add Comment