Skip to main content

Linux terminal

Additional packages

NameDetails
wgetGNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols

Shortcuts

ShortcutAction
Ctrl+RSearch a command in the history

Commands

Machine and OS

Display system information (e.g., kernel version, OS type):

uname

View memory information:

cat /proc/meminfo

View CPU information:

cat /proc/cpuinfo

Display kernel and distribution version information

cat /proc/version

Display kernel name and release:

uname -or

System check

Monitor live system processes:

top

Look at drive disk space:

df -h

Display memory usage:

free

Network

Configure and displays network interfaces:

ip

Display the network node hostname:

hostname
uname -n

Interact with the dynamic firewall management tool (when installed):

firewalld

Services

Interact with services (like firewalld):

systemctl <stop|disable|start|status> <service_name>

Manage services, boot processes, and system states:

systemd

Display logging system events:

journald

User managament

Review sudo config:

cat /etc/sudoers

Display user and group information for the current or specified user:

id

Add a new user (account is locked until a password is set):

useradd xxx

Updates a user's password:

passwd

User settings

Extend or validate the sudo credentials timestamp (typically for 5 minutes):

sudo -v

Switch between keyboard layouts:

loadkeys fr

Processes

Look for specific processes:

ps -ef | grep <process_name>

Kill a process and its children:

kill -TERM -- -<process_id>