Skip to content
Technical solutions
  • Home
  • HTML
  • CSS
    • Introduction to Bootstrap
    • Bootstrap Components
  • Javascript
  • PHP
  • Project Management
    • What is Project Management
    • Improve team leadership skills
    • Strategies for Building High-Performing Teams
  • Cyber Security
    • What is cyber security
    • Cyber security best practices
    • Token-based authentication
  • Latest tech news
  • Blog
    • Development
    • Docker
    • Testing
    • JAVA
    • Domain
    • Laravel
    • ECommerce
    • Interview Questions
    • Website Design
Search

Check if script is run as root user

/ Scripting
child theme

#Check if script is run as root user

#! /bin/bash

echo $EUID

if [[ $EUID -eq 0 ]]
then
echo "You are root user";
else
echo "You are not root user";
fi

$ whoami

whoami will give the name of the current user

← Previous Post
Next Post →

Recent Posts

  • DeepSeek AI: The Future of Artificial Intelligence
  • The Power of Design Systems: Bridging Product and Tech
  • What tree shaking in front-end development?
  • How to improve performance of a website?
  • Accessibility for developers and designers – checklist of development
  • How to make websites accessibility – importance of images and alt tags
  • Designing for diversity
  • What is accessibility and why it’s important for a website?
  • Boosting web development efficiency with VITE javascript build tool
  • Cookies vs. Sessions: What’s the Difference?

Categories

  • AWS
  • CSS
  • Design System
  • Development
  • Docker
  • Domain
  • ECommerce
  • Hosting
  • HTML
  • Interview Questions
  • JAVA
  • Javascript
  • Laravel
  • NODE
  • PHP
  • Scripting
  • Testing
  • Vue
  • Website Design
  • Wordpress

Australian Hosting Provider – Ventraip

Would You Like To Start A Project With Me?

Contact Me

Find best solutions for your technical problems on my website.

If you need website design, development and support services, visit my portfolio here.

Linkedin-in Envelope Github Stack-overflow

If I helped you solve your technical problem and you would like to thank me, you can buy me a coffee here. :)

Links

  • Home
  • About
  • Blog
  • Contact
  • Disclaimer

Get In Touch

  • Brisbane, Australia
  • [email protected]

learningwithmanjeet.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.

Copyright © 2025 Technical solutions. Site by Website Design Brisbane