Learn Unix from the Best Tutors
Search in
Asked by Raja Lekshmi Last Modified
Unix commands play a crucial role in managing and extracting information from the system. Two commonly used commands, 'w' and 'who,' serve distinct purposes, providing insights into user activities. In Unix training, it's essential to grasp the nuances of these commands.
Functionality:
Key Syntax:
w [options]
Usage:
w -h # Display header only w -u # Display information in a user-friendly format
Example Output:
10:42 up 2 days, 1:32, 5 users, load averages: 0.45 0.67 0.82 USER TTY FROM LOGIN@ IDLE WHAT jdoe pts/0 192.168.1.2 08:30 2:15 vim
Functionality:
Key Syntax:
who [options]
Usage:
who -q # Display only the number of logged-in users who -a # Show information about all users, including system users
Example Output:
jdoe pts/0 2022-01-10 08:30 (192.168.1.2)
The 'w' command provides detailed information about user activities, including processes, load averages, and idle times, whereas the 'who' command focuses on presenting a concise list of logged-in users.
'w' is more comprehensive and suitable for monitoring active user sessions and their ongoing tasks, making it a preferred choice in scenarios where in-depth insights are required.
'who,' on the other hand, is simpler and provides a quick snapshot of logged-in users, making it efficient for a brief overview of the system's user status.
Understanding the distinctions between the 'w' and 'who' commands in Unix is crucial for effective system administration and monitoring. Incorporating both commands in your Unix training will empower you to navigate and manage user activities seamlessly.
Related Questions
Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com
Ask a QuestionRecommended Articles
Learn Hadoop and Big Data
Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...
Read full article >
Make a Career in Mobile Application Programming
Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...
Read full article >
Why Should you Become an IT Consultant
Information technology consultancy or Information technology consulting is a specialized field in which one can set their focus on providing advisory services to business firms on finding ways to use innovations in information technology to further their business and meet the objectives of the business. Not only does...
Read full article >
Learn Microsoft Excel
Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...
Read full article >
Looking for Unix Training?
Learn from the Best Tutors on UrbanPro
Are you a Tutor or Training Institute?
Join UrbanPro Today to find students near youThe best tutors for Unix Classes are on UrbanPro
The best Tutors for Unix Classes are on UrbanPro