Basic System Commands¶
System Information¶
A list of useful system commands:
Command | Description |
---|---|
whoami |
Displays current username |
id |
Returns users identity |
hostname |
sets or prints the name of current host system |
uname |
Prints basic information about the OS and hardware |
pwd |
Returns working directory name |
ifconfig |
Used to assign or view an address to a network interface |
ip |
ip is a utility to show or manipulate routing, network devices, interface and tunnels |
netstat |
Shows network status |
ss |
Another utility to investigate sockets |
ps |
Shows process status |
who |
Displays who is logged in |
env |
Prints environment variables or sets and executes command. |
lsblk |
List block devices |
lsusb |
Lists USB devices |
lsof |
Lists opened files |
lspci |
Lists PCI devices. |
cat /etc/*release |
Show the system's operating system version |
Manual Pages¶
man
sections:
Section | Description |
---|---|
1 |
Executable programs or shell commands |
2 |
System calls (C functions provided by the kernel) |
3 |
Library calls (functions within program libraries) |
4 |
Special files (usually found in /dev) |
5 |
File formats and conventions eg /etc/passwd |
6 |
Games |
7 |
Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7) |
8 |
System administration commands (usually only for root) |
9 |
Kernel routines [Non standard] |