0% found this document useful (0 votes)
6 views

Linux

The document outlines commands for user and group management in a system, including adding, modifying, and deleting users and groups, as well as changing passwords. It also provides commands for system information and monitoring, such as displaying system information, memory usage, and hardware configuration. Additionally, it details archiving and compression commands using tar, including creating and extracting tarballs.

Uploaded by

Vishal Maheshuni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Linux

The document outlines commands for user and group management in a system, including adding, modifying, and deleting users and groups, as well as changing passwords. It also provides commands for system information and monitoring, such as displaying system information, memory usage, and hardware configuration. Additionally, it details archiving and compression commands using tar, including creating and extracting tarballs.

Uploaded by

Vishal Maheshuni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

6.

User and Group Management


 useradd – Add a user to the system
 usermod – Modify a user account
 userdel – Delete a user account
 groupadd – Add a group to the system
 groupdel – Delete a group
 passwd – Change user password
 chage – Change user password expiry information
 whoami – Print the current logged-in user
 who – Show who is logged in
 w – Show who is logged in and what they’re doing
 id – Display user and group information
 groups – Show user’s groups
7. System Information and Monitoring
 uname – Print system information
 hostname – Show or set the system’s hostname
 uptime – How long the system has been running
 dmesg – Boot and system messages
 free – Display memory usage
 top – Display Linux tasks
 vmstat – Report virtual memory statistics
Page | 4
 lscpu – Display information about the CPU architecture
 lsusb – List USB devices
 lspci – List PCI devices
 lshw – List hardware configuration
8. Archiving and Compression
 tar – Archive files
o tar -czf archive.tar.gz /path/to/directory – Compress files
using gzip
o tar -xzf archive.tar.gz – Extract gzipped tarball
o tar -cf archive.tar /path/to/directory – Create a tarball
o tar -xf archive.tar – Extract tarball

You might also like