DEV Community

Cover image for Linux: Getting system info
Mariam Reba Alexander
Mariam Reba Alexander

Posted on

3 1 1 2 1

Linux: Getting system info

One needs to be familiar with certain shell commands to investigate system and network configurations and identify vulnerabilities in a Linux system and other processes.

Some of the useful ones are:

  • whoami - to find out the current user, and who to identify logged-in users, particularly useful during reverse shell access on a host.
  • uname - prints system information, which is helpful for gathering details about the machine's hardware, kernel release version and operating system.
  • netstat- provides network status.

There are many more commands that can reveal a wealth of information about the user, system, and network. These commands also expose vulnerabilities that can be exploited by either an attacker or a security tester to close security gaps.

Top comments (0)

Jetbrains Survey

Calling all developers!

Participate in the Developer Ecosystem Survey 2025 and get the chance to win a MacBook Pro, an iPhone 16, or other exciting prizes. Contribute to our research on the development landscape.

Take the survey

👋 Kindness is contagious

Explore this insightful post in the vibrant DEV Community. Developers from all walks of life are invited to contribute and elevate our shared know-how.

A simple "thank you" could lift spirits—leave your kudos in the comments!

On DEV, passing on wisdom paves our way and unites us. Enjoyed this piece? A brief note of thanks to the writer goes a long way.

Okay