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:
3933
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:
Find out how many users are currently working.
How to find out common lines between two files?
Shell Script combine file in one file horizontally and vertically
Write a shell script to convert a file to lower case or upper case as specified by user.
Program to perform all ADDITION on two operands : (decimal, binary, octal,hexadecimal)
Shell Script to read data from a file
Write a Script to Broadcast a message to a specified user when the user loged on any terminal
Configure network interface parameters - ifconfig
List all hidden files in current directory
Which command display version of the UNIX?
Write a shell script to find the average of the numbers entered in command line
Display your current working directory
Print message a shown in description
Unix Commands and description of ls,logout,mkdir,rmdir,rm,cd,man,talk,write,pico,pine,more,sz,rz,telnel,ftp,archie,irc,lynx,gopher,tin,trn,passwd etc
Write a script to find the value of one number raised to the power of another
Input mode command in unix
Shell Script to create a Menu Driven program : Hard Link, Soft Link, Counting each of the links for a specific link and Display the soft-links
Display information about all the current programs running
Changing current directory - cd
Write a shell program to exchange the values of two variables
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