You are here: Home / Topics / Page / 3

User Information and Management Top Linux Commands

Filed under: Linux on 2024-04-26 12:49:59
# Display the user and group ids of your current user.id# Display the last users who have logged onto the system.last# Show who is logged into the system.who# Show who is logged in and what they are doing.w# Create a group named "test".groupadd test# Create an account named john, with a comment of "

Performance Monitoring and Statistics Top Linux Commands

Filed under: Linux on 2024-04-26 12:49:19
# Display and manage the top processestop# Interactive process viewer (top alternative)htop# Display processor related statisticsmpstat 1# Display virtual memory statisticsvmstat 1# Display I/O statisticsiostat 1# Display the last 100 syslog messages  (Use /var/log/syslog for Debian based syste

Hardware Information Top Linux Commands

Filed under: Linux on 2024-04-26 12:48:22
# Display messages in kernel ring bufferdmesg# Display CPU informationcat /proc/cpuinfo# Display memory informationcat /proc/meminfo# Display free and used memory ( -h for human readable, -m for MB, -g for GB.)free -h# Display PCI deviceslspci -tv# Display USB deviceslsusb -tv# Display DMI/SMBIOS (h

System Information Top Linux Commands

Filed under: Linux on 2024-04-26 12:47:52
# Display Linux system informationuname -a# Display kernel release informationuname -r# Show operating system information such as distribution name and versioncat /etc/os-release# Show how long the system has been running + loaduptime# Show system host namehostname# Display all local IP addresses of

Program to explain Generic Interfaces in Java

Filed under: Java on 2024-04-13 09:09:43
//  Program to explain Generic Interfaces.interface MinMax<T extends Comparable<T>> {T min();T max();}class MyClass<T extends Comparable<T>> implements MinMax<T> {T[ ] vals;MyClass(T[ ] o) { vals = o;}public T min() { T v = vals[0