answersLogoWhite

0


Best Answer

#/bin/bash

export UNAME=`whoami`

export USERID=`id -u $UNAME`

echo $USERID

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you provide a Linux shell script that prints the current user ID?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command prints the full name of the current day in Linux?

date -u +%A


Why is Linux important?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


What command prints text to the screen in Linux?

echo "This is my text."


What is the current full- featured version of Linux?

The current Linux kernel version is 3.9.


How do you execute shell script under Linux?

Eithersh shellscript.shor./shellscript.sh


What is Nash in Linux?

nash is a very small and simple script interpretor.


What is a script file in Linux?

A script is a file that contains a set of commands to be performed. Instead of you manually entering all of the commands into the console, the script is run and does it automatically.


How do you add two matrices using Linux shell script?

write ashell script to add awo matrix using array.


Are Linux script files the same as Windows dos batch files?

More or less.


How do you add an alias to an initialization script file in Linux?

There might be some properties file


What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.


What is using current operating system?

linux