Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (9.5k points)

I tried to run ‘echo UID is $UID’  and ‘ EUID is $EUID’ on Ubuntu 12.04 LTS which had given me the output as space. Can anyone tell me what’s the difference between EUID and UID? 

1 Answer

0 votes
by (19.7k points)

The main difference between EUID and UID is ‘UID’ refers to the original user and EUID refers to the user you have changed into.

Before running the scripts, make sure you’ve configured bash as a default shell with the command below: 

bash script.sh

If you want to run it from the bash, run the command below: 

#!/bin/bash

 If you want to learn more about Linuxthen go through this Linux tutorial by Intellipaat for more insights.

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Dec 13, 2020 in Linux by blackindya (18.4k points)
0 votes
1 answer
asked Nov 20, 2020 in Linux by blackindya (18.4k points)

Browse Categories

...