Skip to main content

System information

Overview

Since we will use many different Linux systems, we need to learn the structure and the information about the system, its processes, network configurations, users, directories, user settings, and the corresponding parameters.

Common tools

CommandDescription
whoamiDisplays current username.
idReturns users identity
hostnameSets or prints the name of current host system.
unamePrints basic information about the operating system name and system hardware.
pwdReturns working directory name.
ifconfigThe ifconfig utility is used to assign or to view an address to a network interface and/or configure network interface parameters.
ipIp is a utility to show or manipulate routing, network devices, interfaces and tunnels.
netstatShows network status.
ssAnother utility to investigate sockets.
psShows process status.
whoDisplays who is logged in.
envPrints environment or sets and executes command.
lsblkLists block devices.
lsusbLists USB devices
lsofLists opened files.
lspciLists PCI devices.