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:
3943
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:
Display your current working directory
Write a shell program to concatinate two strings and find the length of the resultent string
Write a shell script to find the smallest of three numbers
Write a shell script, which displays a list of all files in the current directory to which you have read, write and execute permissions
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
Write a shell program to find the position of substring in given string
Shell script that prints names of all sub-directories present in the current directory
Count no.of lines in file abc?
Write a menu driven shell script for Copy a file, Remove a file, Move a file
Script to print all prime numbers from 1 to 300
Write a shell script to find how many terminals has this user logged in
Display the already mounted file system - mount
Write a shell script to reverse the contents of a file
How to create a directory and remove a directory?
Shell Script to separate the colon from the given item
Calculate 9/5
Write a shell script to ask your name, program name and enrolement number and print it on the screen.
Move or Rename file and directories - mv
Find all lines in a file with words longer than 4 characters, assuming that words are separated by spaces except at the beginning or end of line
Write a shell program to convert all the contents into the uppercase in a particular file
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