Welcome -
Guest!
Login
/
Register Now
|
Search:
Home
Articles
Forum
Interview FAQ
Activities
News
Videos
Poll
Links
People
Groups
Unix / Linux / Ubuntu Articles
Submit Article
Home
»
Articles
»
Unix / Linux / Ubuntu
»
Commands
RSS Feeds
Print user and group IDs and names - id
Posted By:
Jasmine Brown
Category:
Unix / Linux / Ubuntu
Views:
3910
This article explains about id command with an example in unix.
id command is used to print user and group IDs and names in unix.
Syntax of id Command
id
Example of id Command
Example 1 : To Display the current user and group data
id
Share:
Previous Post:
Set or display name of current host system - hostname
Next Post:
Display the already mounted file system - mount
Didn't find what you were looking for? Find more on
Print user and group IDs and names - id
Or get
search suggestion and latest updates
.
Jasmine Brown
author of Print user and group IDs and names - id is from London,
United Kingdom
.
View All Articles
Related Articles and Code:
Program to find process id and parent process id
Program to create user defined fork function and create 2 child process, print their process ids
Program to fork a child and print the process id of parent and child process
Program to create a shared memory and print the id of the shared memory
Shell script to display all users names, or users names of a particular group, or name of users who are currently working in the system
Display invoice items of invoice id I010
Program to simulate process synchronization, call wait function so that the executing process gets blocked and then print their process ids
Write a menu driven program to display message, user name, terminal name, login date and time
Grouping Rows with GROUP BY clause
Program to accept a name from the user and check whether the name is present in the defined table, If not present then insert the name in the table
Program to accept N names from the user and sort them in descending order
Program to perform binary search on student name and print roll number
Program to print name 25 times
Shell script that prints names of all sub-directories present in the current directory
Shell script that prints names of all sub-directories present in the current directory
Execute the command which display login name, the name of your terminal and date and time of since user logged in
Write a shell script to ask your name, program name and enrolement number and print it on the screen.
Write a shell script to ask your name, program name and enrolement number and print it on the screen
PROGRAM OF EVALUATE GENDER FROM USER AND PRINT ACCORDINGLY
Program to print triangle of numbers and take number value from user
Other Interesting Articles in Unix / Linux / Ubuntu:
Write a shell program to concatinate two strings and find the length of the resultent string
Explain two functionality of “mv” command with example?
Program to perform all ADDITION on two operands : (decimal, binary, octal,hexadecimal)
Suppose four filenames are supplied then the first file should get copied into second file, the third file should get copied into four
Write a shell program to exchange the values of two variables
How would you display the calendar of 2007?
Write a shell script for renaming each files in the directory such that it will have the current shell PID as an extension
Word Navigation in unix
Write a shell program to add, subtract and multiply the 2 given numbers passed as command line arguments
Add a new group to the system - groupadd
Shell script to take LOGNAME or the UID an an input and find how many terminals has this user logged in
Shell Script to make a menu driven calculator using case
Shell script that prints names of all sub-directories present in the current directory
Shell Script to separate the colon from the given item
Write a shell script to find the sum, the average and the product of the four integers entered
Write a shell program to concatenate the contents of 2 files
Write a menu driven program to display message, user name, terminal name, login date and time
Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit
Program to count length of user input string
Copy abc.txt into xyz
Please enter your Comment
*
*
Comment should be atleast 30 Characters.
Please put code inside [Code] your code [/Code].
Please login to post comment
No Comment Found, Be the First to post comment!
Unix / Linux / Ubuntu
View All
Advance
Basics
Commands
Homework Help
Interview FAQ
Terms and Terminology
Assembly Language
Artificial Intelligence
C Programming
C++ Programming
Visual C++
OOAD
Cobol
Java
SQL Server
Asp.net MVC
Rest and WCF Services
Entity Framework
Knockout.Js
Networking
OOPs Concept
HTML
Dos
SQL
System Analysis & Design
Gadgets
Internet
CSS
Javascript
.Net Framework
Asp.net
C#
VB.Net
Python
Perl
Oracle
Software Engineering
RDBMS Terms
AJAX Framework
Design Pattern
UML
WPF
WCF
SEO
PowerShell
Visual Studio
WWF
BizTalk Server
Azure
General
Testing
Online Certifications
PHP
My SQL
LinQ
Project Management
Silverlight
XML
MS Office
Windows OS
DHTML
Sharepoint